[03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:50]ConnectInit Can't connect to host [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:02]recv_with_timeout no data received [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:55]recv_with_timeout no data received [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]recv_with_timeout no data received [03:05:06]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:16]recv_with_timeout no data received [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:52]recv_with_timeout no data received [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:11]recv_with_timeout no data received [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:22]recv_with_timeout no data received [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:23]recv_with_timeout no data received [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:34]recv_with_timeout no data received [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:05]recv_with_timeout no data received [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:35]recv_with_timeout no data received [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:21]recv_with_timeout no data received [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:07]recv_with_timeout no data received [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:44]recv_with_timeout no data received [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:25]recv_with_timeout no data received [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]recv_with_timeout no data received [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:29]recv_with_timeout no data received [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:21]recv_with_timeout no data received [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]recv_with_timeout no data received [03:25:03]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:21]recv_with_timeout no data received [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:32]recv_with_timeout no data received [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:56]recv_with_timeout no data received [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:42]recv_with_timeout no data received [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:22]recv_with_timeout no data received [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:32]recv_with_timeout no data received [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:56]recv_with_timeout no data received [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:06]recv_with_timeout no data received [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:36]recv_with_timeout no data received [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:28]recv_with_timeout no data received [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:17]recv_with_timeout no data received [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:57]recv_with_timeout no data received [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:08]recv_with_timeout no data received [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:33]recv_with_timeout no data received [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]recv_with_timeout no data received [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:22]recv_with_timeout no data received [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:16]recv_with_timeout no data received [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:49]recv_with_timeout no data received [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:06]recv_with_timeout no data received [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:07]recv_with_timeout no data received [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:18]recv_with_timeout no data received [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:18]recv_with_timeout no data received [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:01]recv_with_timeout no data received [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:16]recv_with_timeout no data received [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:26]recv_with_timeout no data received [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:37]recv_with_timeout no data received [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:54]recv_with_timeout no data received [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:41:56]recv_with_timeout no data received [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:22]recv_with_timeout no data received [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]recv_with_timeout no data received [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:23]recv_with_timeout no data received [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:34]recv_with_timeout no data received [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:46]recv_with_timeout no data received [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:03]recv_with_timeout no data received [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:24]recv_with_timeout no data received [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:07]recv_with_timeout no data received [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:54]accept exits with 10 [03:45:54]New connection [03:45:54]New thread 3066969444 created [03:45:54]Thread 3067112804 joined [03:45:54]Waiting for new connection... [03:45:54] Sock 10.Parse request [03:45:54]Sock 10.Check first char [03:45:54]Sock 10.First char is OK [03:45:54]request: POST /json_proto HTTP/1.0 [03:45:54]Method: POST [03:45:54]URL: /json_proto [03:45:54]Method is POST - this is cgi request [03:45:54]url: /json_proto [03:45:54]query_string will be loaded in cgi processing [03:45:54]execute_cgi json_proto POST (null) [03:45:54]execute_cgi path=json_proto method=POST [03:45:54]POST find Content-Length [03:45:54]Host: 172.17.43.195:8080 [03:45:54]Content-Length: 805 [03:45:54]Content-Type: application/json [03:45:54] [03:45:54]POST finish read [03:45:54]Found Content-Length = 805 [03:45:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952326", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4364014", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:45:54]execute_script... [03:45:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952326", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4364014", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:45:54]POST & json_proto [03:45:54]process_json_proto [03:45:54]json parsed OK: [03:45:54]protocol is kg_v1.0 [03:45:54]action value=close_receipt [03:45:54]process_action close_receipt [03:45:54]cmd_close_receipt [03:45:54]MH_GetDate [03:45:54]Write to MH i2c: F0 00 00 7A 01 6A [03:45:54]Write i2c OK [03:45:54]MH_I2C_Read... [03:45:54]Read from MH i2c: F0 [03:45:54]MH_I2C_Read... [03:45:54]Read from MH i2c: F0 09 00 [03:45:54]MH_I2C_Read... [03:45:54]Read from MH i2c: F0 09 00 7A 01 00 F4 AB 21 67 74 2C AD 66 4D [03:45:54]GetLastDocTimeStamp 1730257179 [03:45:54]current date 1730259956 [03:45:54]FM_GetShiftState [03:45:54]SAM_PROTO_GetShiftState [03:45:54]wFMCommunicate request_size=4 [03:45:54]MH_SAM_APDU [03:45:54]CAPDU: 80 13 01 00 [03:45:54]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [03:45:54]Write i2c OK [03:45:54]MH_I2C_Read... [03:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:45:54]Read from MH i2c: E2 [03:45:54]MH_I2C_Read... [03:45:54]Read from MH i2c: E2 0E 00 [03:45:54]MH_I2C_Read... [03:45:54]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 CB [03:45:54]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [03:45:54]wFMCommunicate OK [03:45:54]SAM_PROTO_GetShiftState done [03:45:54]FM_GetShiftState done [03:45:54]opened in 1730247109 [03:45:54]opened+sec_in_day 1730333509 [03:45:54]quantity*price = 0 [03:45:54]sum+1 = 1 [03:45:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 7 30.10.2024 03:45 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливные Талоны 4364014 ФМ: 0000000000874662 ФД: 72770 ФПД: 113200638596765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034556&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72770&fm=113200638596765&tin=02508201610067®Number=0000000000091644&sum=0 [03:45:56]StoreToDocumentArchive [03:45:56]shift 556 fd 72770 [03:45:56]save to /storage/0556/doc_00072770 [03:45:56]save last doc name /storage/0556/doc_00072770 to /storage/kkm_last_doc_name [03:45:56]save OK [03:45:56]Clear old archive folders... [03:45:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:45:56]tlvbuf is 01AD5750 [03:45:56]SAM_PROTO_ClearQueue [03:45:56]wFMCommunicate request_size=4 [03:45:56]MH_SAM_APDU [03:45:56]CAPDU: 80 09 00 00 [03:45:56]Write to MH i2c: E2 08 00 88 01 80 09 00 00 00 00 00 00 FB [03:45:56]Write i2c OK [03:45:56]MH_I2C_Read... [03:45:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:45:56]Read from MH i2c: E2 [03:45:56]MH_I2C_Read... [03:45:56]OFD Sender: No OFD packet to send [03:45:56]Read from MH i2c: E2 03 00 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [03:45:56]RAPDU: 90 00 [03:45:56]wFMCommunicate OK [03:45:56]SAM_PROTO_ClearQueue done [03:45:56]KKMCreateOFDPacket [03:45:56]OFDProtocolAddRootSTLVToBuf [03:45:56]FM_MakeSignedData [03:45:56]FM_MakeSignedData [03:45:56]SAM_PROTO_SignData [03:45:56]wFMCommunicate request_size=4 [03:45:56]MH_SAM_APDU [03:45:56]CAPDU: 80 0D 01 02 [03:45:56]Write to MH i2c: E2 08 00 89 01 80 0D 01 02 00 00 00 00 03 [03:45:56]Write i2c OK [03:45:56]MH_I2C_Read... [03:45:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:45:56]Read from MH i2c: E2 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 03 00 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [03:45:56]RAPDU: 90 00 [03:45:56]wFMCommunicate OK [03:45:56]wFMCommunicate request_size=255 [03:45:56]MH_SAM_APDU [03:45:56]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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F4 AB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1C 01 00 35 04 06 00 [03:45:56]Write to MH i2c: E2 02 01 8A 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F4 AB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1C 01 00 35 04 06 00 00 00 71 [03:45:56]Write i2c OK [03:45:56]MH_I2C_Read... [03:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:45:56]Read from MH i2c: E2 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 03 00 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [03:45:56]RAPDU: 90 00 [03:45:56]wFMCommunicate OK [03:45:56]wFMCommunicate request_size=11 [03:45:56]MH_SAM_APDU [03:45:56]CAPDU: 80 0D 02 02 06 66 F4 93 DA 16 9D [03:45:56]Write to MH i2c: E2 0E 00 8B 01 80 0D 02 02 06 00 66 F4 93 DA 16 9D 00 00 8C [03:45:56]Write i2c OK [03:45:56]MH_I2C_Read... [03:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:45:56]Read from MH i2c: E2 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 03 00 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [03:45:56]RAPDU: 90 00 [03:45:56]wFMCommunicate OK [03:45:56]wFMCommunicate request_size=4 [03:45:56]MH_SAM_APDU [03:45:56]CAPDU: 80 0D 03 02 [03:45:56]Write to MH i2c: E2 08 00 8C 01 80 0D 03 02 00 00 00 00 08 [03:45:56]Write i2c OK [03:45:56]MH_I2C_Read... [03:45:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:45:56]Read from MH i2c: E2 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 0B 00 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 0B 00 8C 01 00 48 70 14 98 F2 AB 8B 8B 90 00 20 [03:45:56]RAPDU: 48 70 14 98 F2 AB 8B 8B 90 00 [03:45:56]wFMCommunicate OK [03:45:56]SAM_PROTO_SignData done [03:45:56]FM_MakeSignedData done [03:45:56]CreateOFDProtocolMessage [03:45:56]wFMCommunicate request_size=4 [03:45:56]MH_SAM_APDU [03:45:56]CAPDU: 80 11 00 00 [03:45:56]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [03:45:56]Write i2c OK [03:45:56]MH_I2C_Read... [03:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:45:56]Read from MH i2c: E2 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 17 00 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [03:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:45:56]wFMCommunicate OK [03:45:56]CreateOFDProtocolMessage done [03:45:56]OFDSenderStorePacket 72770 [03:45:56]StoreOFDPacket docnum=72770 [03:45:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 A4 0F 08 01 5F 20 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F4 AB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1C 01 00 35 04 06 00 66 F4 93 DA 16 9D 48 70 14 98 F2 AB 8B 8B [03:45:56]CheckFolder [03:45:56]dirname=/storage/ofd_packets [03:45:56]CheckFolder done [03:45:56]ProducePacketName [03:45:56]name=ofd_packets/00072770 [03:45:56]NVStorageSaveData ofd_packets/00072770 [03:45:56]File name is /storage/ofd_packets/00072770 [03:45:56]Write 302 bytes [03:45:56]NVStorageSaveData done [03:45:56]OFDSenderStorePacket done [03:45:56]KKMCreateOFDPacket done [03:45:56]NVStorageSaveData kkm_last_timestamp [03:45:56]File name is /storage/kkm_last_timestamp [03:45:56]Write 4 bytes [03:45:56]NVStorageSaveData done [03:45:56]ExternCall_PrintAddStr [03:45:56]wPrintStart [03:45:56]Write to MH i2c: 01 00 00 8E 01 8F [03:45:56]Write i2c OK [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: 01 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: 01 07 00 [03:45:56]MH_I2C_Read... [03:45:56]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [03:45:56]RasterBufferAndPrint [03:45:56]line Счет N : (1)952326 [03:45:56]line ИНН: 02508201610067 [03:45:56]line Контрольно-Кассовый Чек [03:45:56]line ПРОДАЖА [03:45:56]line ТРК (МРК, ГНК) : 43 [03:45:56]line Товар: 2710194210 [03:45:56]line ДТ(л)-К-5 [03:45:56]line 20.000 * 0.00 [03:45:56]line = 0.00 [03:45:56]line НДС 12% НСП 1% [03:45:56]line > о реализуемом товаре [03:45:56]line ИТОГО: 0.00 [03:45:56]line НСП 1% : 0.00 [03:45:56]line НДС 12% : 0.00 [03:45:56]line Наличными: 0.00 [03:45:56]line Безнал.: 0.00 [03:45:56]line Место: АЗС № 113 "Партнер Нефть" [03:45:56]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [03:45:56]line СНО: Общий режим [03:45:56]line Чек 7 30.10.2024 03:45 [03:45:56]line Смена: 556 ФФД: 1.0 [03:45:56]line ЗНМ: 0300000087 [03:45:56]line РНМ: 0000000000091644 [03:45:56]line Версия ККМ: 001 [03:45:56]line Талоны: Топливные Талоны [03:45:56]line 4364014 [03:45:56]line ФМ: 0000000000874662 [03:45:56]line ФД: 72770 [03:45:56]line ФПД: 113200638596765 [03:45:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034556&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72770&fm=113200638596765&tin=02508201610067®Number=0000000000091644&sum=0 [03:45:56]written 0, free lines is 4095 [03:45:56]OFD Sender: Processing packet 72770 [packets to send 278, broken 277] [03:45:56]ProducePacketName [03:45:56]name=ofd_packets/00072770 [03:45:56]OFD Sender: To server: pG, [03:45:56]CommunicateWithHost lk.salyk.kg:30040 [03:45:56]ConnectInit lk.salyk.kg [03:45:57]Write to MH i2c: 01 00 00 B8 01 B9 [03:45:57]Write i2c OK [03:45:57]MH_I2C_Read... [03:45:57]Read from MH i2c: 01 [03:45:57]MH_I2C_Read... [03:45:57]Read from MH i2c: 01 07 00 [03:45:57]MH_I2C_Read... [03:45:57]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 E3 0C AF [03:45:57]RasterBufferAndPrint [03:45:57]line [03:45:57]line [03:45:57]line [03:45:57]line [03:45:57]line [03:45:57]written 0, free lines is 3305 [03:45:57]MH_Cut [03:45:57]Write to MH i2c: D1 01 00 BF 01 01 92 [03:45:57]Write i2c OK [03:45:57]MH_I2C_Read... [03:45:57]Read from MH i2c: D1 [03:45:57]MH_I2C_Read... [03:45:57]Read from MH i2c: D1 01 00 [03:45:57]MH_I2C_Read... [03:45:57]Read from MH i2c: D1 01 00 BF 01 00 91 [03:45:57]Write to MH i2c: 01 00 00 C0 01 C1 [03:45:57]Write i2c OK [03:45:57]MH_I2C_Read... [03:45:57]Connected sock=9 [03:45:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 A4 0F 08 01 5F 20 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F4 AB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1C 01 00 35 04 06 00 66 F4 93 DA 16 9D 48 70 14 98 F2 AB 8B 8B [03:45:57]*** Cut start [03:45:57]*** Partial cut [03:45:57]*** CUTSNS_PIN = 1 [03:45:57]*** CUTSNS_PIN = 0 [03:45:58]*** Brake cut motor [03:45:58]Read from MH i2c: 01 [03:45:58]MH_I2C_Read... [03:45:58]*** Stop cut motor [03:45:58]*** Cut end [03:45:58]Read from MH i2c: 01 07 00 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 FF 0F D6 [03:45:58]process_action close_receipt done [03:45:58]requested_data is exist [03:45:58]produce_requested_data [03:45:58]requested_item fm.sn is exist - process it [03:45:58]wFMCommunicate request_size=4 [03:45:58]MH_SAM_APDU [03:45:58]CAPDU: 80 11 00 00 [03:45:58]Write to MH i2c: E2 08 00 C1 01 80 11 00 00 00 00 00 00 3C [03:45:58]Write i2c OK [03:45:58]MH_I2C_Read... [03:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:45:58]Read from MH i2c: E2 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: E2 17 00 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: E2 17 00 C1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 90 [03:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:45:58]wFMCommunicate OK [03:45:58]requested_item fd.num is exist - process it [03:45:58]SAM_PROTO_GetFieldsCounters [03:45:58]wFMCommunicate request_size=4 [03:45:58]MH_SAM_APDU [03:45:58]CAPDU: 80 13 00 00 [03:45:58]Write to MH i2c: E2 08 00 C2 01 80 13 00 00 00 00 00 00 3F [03:45:58]Write i2c OK [03:45:58]MH_I2C_Read... [03:45:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:45:58]Read from MH i2c: E2 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: E2 62 00 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: E2 62 00 C2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 42 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [03:45:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 42 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:45:58]wFMCommunicate OK [03:45:58]SAM_PROTO_GetFieldsCounters done [03:45:58]requested_item shift.num is exist - process it [03:45:58]requested_item shift.opened is exist - process it [03:45:58]req_shift_opened [03:45:58]FM_GetShiftState [03:45:58]SAM_PROTO_GetShiftState [03:45:58]wFMCommunicate request_size=4 [03:45:58]MH_SAM_APDU [03:45:58]CAPDU: 80 13 01 00 [03:45:58]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [03:45:58]Write i2c OK [03:45:58]MH_I2C_Read... [03:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:45:58]Read from MH i2c: E2 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: E2 0E 00 [03:45:58]MH_I2C_Read... [03:45:58]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 13 [03:45:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [03:45:58]wFMCommunicate OK [03:45:58]SAM_PROTO_GetShiftState done [03:45:58]FM_GetShiftState done [03:45:58]req_shift_opened done [03:45:58]requested_item shift.open_date is exist - process it [03:45:58]req_shift_open_date [03:45:58]req_shift_open_date done [03:45:58]produce_requested_data done [03:45:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72770,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [03:45:58]process_action_free close_receipt [03:45:58]json_value_free [03:45:58]json_value_free done [03:45:58]process_json_proto returns [03:45:58]Send response to host [03:45:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72770,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [03:45:58]free response buf [03:45:58]execute_script done [03:45:58]execute_script returns [03:45:58]free content buf [03:45:58]Sock 10.Close socket [03:45:58]Sock 10.Thread stoped [03:45:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 93 2E 47 00 48 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1C 01 00 F4 03 04 00 AE 56 21 67 B6 04 01 00 00 42 AF 08 1C A9 95 72 10 [03:45:59]CommunicateWithHost err = 0 [03:45:59]CheckOFDResponse [03:45:59]1017 (14) - 77093643461234 [03:45:59]1041 (16) - 0000000000874662 [03:45:59]1040 (4) - 72770 [03:45:59]1012 (4) - 29.10.2024 21:42 [03:45:59]1206 (1) - 0 [03:45:59]OFD Sender: Remove packet 72770 [03:45:59]ProducePacketName [03:45:59]name=ofd_packets/00072770 [03:45:59]NVStorageDeleteData [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:38]accept exits with 7 [03:46:38]New connection [03:46:38]New thread 3067112804 created [03:46:38]Thread 3066969444 joined [03:46:38]Waiting for new connection... [03:46:38] Sock 7.Parse request [03:46:38]Sock 7.Check first char [03:46:38]Sock 7.First char is OK [03:46:38]request: POST /json_proto HTTP/1.0 [03:46:38]Method: POST [03:46:38]URL: /json_proto [03:46:38]Method is POST - this is cgi request [03:46:38]url: /json_proto [03:46:38]query_string will be loaded in cgi processing [03:46:38]execute_cgi json_proto POST (null) [03:46:38]execute_cgi path=json_proto method=POST [03:46:38]POST find Content-Length [03:46:38]Host: 172.17.43.195:8080 [03:46:38]Content-Length: 682 [03:46:38]Content-Type: application/json [03:46:38] [03:46:38]POST finish read [03:46:38]Found Content-Length = 682 [03:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952327", "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" : 6.250, "sum" : 476.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 476.00, "total" : 476.00, "payments": [ { "type": 0, "sum" : 476.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:38]execute_script... [03:46: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)952327", "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" : 6.250, "sum" : 476.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 476.00, "total" : 476.00, "payments": [ { "type": 0, "sum" : 476.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:38]POST & json_proto [03:46:38]process_json_proto [03:46:38]json parsed OK: [03:46:38]protocol is kg_v1.0 [03:46:38]action value=close_receipt [03:46:38]process_action close_receipt [03:46:38]cmd_close_receipt [03:46:38]MH_GetDate [03:46:38]Write to MH i2c: F0 00 00 C4 01 B4 [03:46:38]Write i2c OK [03:46:38]MH_I2C_Read... [03:46:38]Read from MH i2c: F0 [03:46:38]MH_I2C_Read... [03:46:38]Read from MH i2c: F0 09 00 [03:46:38]MH_I2C_Read... [03:46:38]Read from MH i2c: F0 09 00 C4 01 00 1F AC 21 67 74 2C AD 66 C3 [03:46:38]GetLastDocTimeStamp 1730259956 [03:46:38]current date 1730259999 [03:46:38]FM_GetShiftState [03:46:38]SAM_PROTO_GetShiftState [03:46:38]wFMCommunicate request_size=4 [03:46:38]MH_SAM_APDU [03:46:38]CAPDU: 80 13 01 00 [03:46:38]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [03:46:38]Write i2c OK [03:46:38]MH_I2C_Read... [03:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:38]Read from MH i2c: E2 [03:46:38]MH_I2C_Read... [03:46:38]Read from MH i2c: E2 0E 00 [03:46:38]MH_I2C_Read... [03:46:38]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 15 [03:46:38]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [03:46:38]wFMCommunicate OK [03:46:38]SAM_PROTO_GetShiftState done [03:46:38]FM_GetShiftState done [03:46:38]opened in 1730247109 [03:46:38]opened+sec_in_day 1730333509 [03:46:38]quantity*price = 47625 [03:46:38]sum+1 = 47626 [03:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 476.00 Внесено: 476.00 СДАЧА: 0.00 НСП 1% : 4.21 НДС 12% : 50.57 Наличными: 476.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 8 30.10.2024 03:46 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72771 ФПД: 150040037234127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034639&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72771&fm=150040037234127&tin=02508201610067®Number=0000000000091644&sum=47600 [03:46:39]StoreToDocumentArchive [03:46:39]shift 556 fd 72771 [03:46:39]save to /storage/0556/doc_00072771 [03:46:39]save last doc name /storage/0556/doc_00072771 to /storage/kkm_last_doc_name [03:46:39]save OK [03:46:39]Clear old archive folders... [03:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:46:39]tlvbuf is 01AD7090 [03:46:39]SAM_PROTO_ClearQueue [03:46:39]wFMCommunicate request_size=4 [03:46:39]MH_SAM_APDU [03:46:39]CAPDU: 80 09 00 00 [03:46:39]Write to MH i2c: E2 08 00 D2 01 80 09 00 00 00 00 00 00 45 [03:46:39]Write i2c OK [03:46:39]MH_I2C_Read... [03:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:46:39]Read from MH i2c: E2 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 03 00 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [03:46:39]RAPDU: 90 00 [03:46:39]wFMCommunicate OK [03:46:39]SAM_PROTO_ClearQueue done [03:46:39]KKMCreateOFDPacket [03:46:39]OFDProtocolAddRootSTLVToBuf [03:46:39]FM_MakeSignedData [03:46:39]FM_MakeSignedData [03:46:39]SAM_PROTO_SignData [03:46:39]wFMCommunicate request_size=4 [03:46:39]MH_SAM_APDU [03:46:39]CAPDU: 80 0D 01 02 [03:46:39]Write to MH i2c: E2 08 00 D3 01 80 0D 01 02 00 00 00 00 4D [03:46:39]Write i2c OK [03:46:39]MH_I2C_Read... [03:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:46:39]Read from MH i2c: E2 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 03 00 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [03:46:39]RAPDU: 90 00 [03:46:39]wFMCommunicate OK [03:46:39]wFMCommunicate request_size=255 [03:46:39]MH_SAM_APDU [03:46:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 6A 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 13 00 00 00 00 07 04 06 00 F0 B9 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 1F AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1C 01 00 35 04 06 00 [03:46:39]Write to MH i2c: E2 02 01 D4 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 6A 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 13 00 00 00 00 07 04 06 00 F0 B9 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 1F AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1C 01 00 35 04 06 00 00 00 6D [03:46:39]Write i2c OK [03:46:39]MH_I2C_Read... [03:46:39]OFD Sender: No OFD packet to send [03:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:39]Read from MH i2c: E2 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 03 00 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [03:46:39]RAPDU: 90 00 [03:46:39]wFMCommunicate OK [03:46:39]wFMCommunicate request_size=11 [03:46:39]MH_SAM_APDU [03:46:39]CAPDU: 80 0D 02 02 06 88 75 EB 1F 15 CF [03:46:39]Write to MH i2c: E2 0E 00 D5 01 80 0D 02 02 06 00 88 75 EB 1F 15 CF 00 00 47 [03:46:39]Write i2c OK [03:46:39]MH_I2C_Read... [03:46:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:39]Read from MH i2c: E2 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 03 00 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [03:46:39]RAPDU: 90 00 [03:46:39]wFMCommunicate OK [03:46:39]wFMCommunicate request_size=4 [03:46:39]MH_SAM_APDU [03:46:39]CAPDU: 80 0D 03 02 [03:46:39]Write to MH i2c: E2 08 00 D6 01 80 0D 03 02 00 00 00 00 52 [03:46:39]Write i2c OK [03:46:39]MH_I2C_Read... [03:46:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:46:39]Read from MH i2c: E2 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 0B 00 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 0B 00 D6 01 00 B3 88 46 1E 96 2C 8A CA 90 00 08 [03:46:39]RAPDU: B3 88 46 1E 96 2C 8A CA 90 00 [03:46:39]wFMCommunicate OK [03:46:39]SAM_PROTO_SignData done [03:46:39]FM_MakeSignedData done [03:46:39]CreateOFDProtocolMessage [03:46:39]wFMCommunicate request_size=4 [03:46:39]MH_SAM_APDU [03:46:39]CAPDU: 80 11 00 00 [03:46:39]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [03:46:39]Write i2c OK [03:46:39]MH_I2C_Read... [03:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:39]Read from MH i2c: E2 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 17 00 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [03:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:46:39]wFMCommunicate OK [03:46:39]CreateOFDProtocolMessage done [03:46:39]OFDSenderStorePacket 72771 [03:46:39]StoreOFDPacket docnum=72771 [03:46:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 7C 17 08 01 E2 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 6A 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 13 00 00 00 00 07 04 06 00 F0 B9 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 1F AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1C 01 00 35 04 06 00 88 75 EB 1F 15 CF B3 88 46 1E 96 2C 8A CA [03:46:39]CheckFolder [03:46:39]dirname=/storage/ofd_packets [03:46:39]CheckFolder done [03:46:39]ProducePacketName [03:46:39]name=ofd_packets/00072771 [03:46:39]NVStorageSaveData ofd_packets/00072771 [03:46:39]File name is /storage/ofd_packets/00072771 [03:46:39]Write 302 bytes [03:46:39]NVStorageSaveData done [03:46:39]OFDSenderStorePacket done [03:46:39]KKMCreateOFDPacket done [03:46:39]NVStorageSaveData kkm_last_timestamp [03:46:39]File name is /storage/kkm_last_timestamp [03:46:39]Write 4 bytes [03:46:39]NVStorageSaveData done [03:46:39]ExternCall_PrintAddStr [03:46:39]wPrintStart [03:46:39]Write to MH i2c: 01 00 00 D8 01 D9 [03:46:39]Write i2c OK [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: 01 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: 01 07 00 [03:46:39]MH_I2C_Read... [03:46:39]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [03:46:39]RasterBufferAndPrint [03:46:39]line Счет N : (1)952327 [03:46:39]line ИНН: 02508201610067 [03:46:39]line Контрольно-Кассовый Чек [03:46:39]line ПРОДАЖА [03:46:39]line ТРК (МРК, ГНК) : 43 [03:46:39]line Товар: 2710194210 [03:46:39]line ДТ(л)-К-5 [03:46:39]line 6.250 * 76.20 [03:46:39]line = 476.25 [03:46:39]line НДС 12% НСП 1% [03:46:39]line > о реализуемом товаре [03:46:39]line ОКРУГЛЕНИЕ: -0.25 [03:46:39]line ИТОГО: 476.00 [03:46:39]line Внесено: 476.00 [03:46:39]line СДАЧА: 0.00 [03:46:39]line НСП 1% : 4.21 [03:46:39]line НДС 12% : 50.57 [03:46:39]line Наличными: 476.00 [03:46:39]line Безнал.: 0.00 [03:46:39]line Место: АЗС № 113 "Партнер Нефть" [03:46:39]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [03:46:39]line СНО: Общий режим [03:46:39]line Чек 8 30.10.2024 03:46 [03:46:39]line Смена: 556 ФФД: 1.0 [03:46:39]line ЗНМ: 0300000087 [03:46:39]line РНМ: 0000000000091644 [03:46:39]line Версия ККМ: 001 [03:46:39]line ФМ: 0000000000874662 [03:46:39]line ФД: 72771 [03:46:39]line ФПД: 150040037234127 [03:46:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034639&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72771&fm=150040037234127&tin=02508201610067®Number=0000000000091644&sum=47600 [03:46:40]OFD Sender: Processing packet 72771 [packets to send 278, broken 277] [03:46:40]ProducePacketName [03:46:40]name=ofd_packets/00072771 [03:46:40]OFD Sender: To server: pG, [03:46:40]CommunicateWithHost lk.salyk.kg:30040 [03:46:40]ConnectInit lk.salyk.kg [03:46:40]written 0, free lines is 4095 [03:46:40]Write to MH i2c: 01 00 00 03 02 05 [03:46:40]Write i2c OK [03:46:40]MH_I2C_Read... [03:46:40]Read from MH i2c: 01 [03:46:40]MH_I2C_Read... [03:46:40]Read from MH i2c: 01 07 00 [03:46:40]MH_I2C_Read... [03:46:40]Read from MH i2c: 01 07 00 03 02 00 00 00 00 00 D4 0C EC [03:46:40]RasterBufferAndPrint [03:46:40]line [03:46:40]line [03:46:40]line [03:46:40]line [03:46:40]line [03:46:40]written 0, free lines is 3288 [03:46:40]MH_Cut [03:46:40]Write to MH i2c: D1 01 00 0A 02 01 DE [03:46:40]Write i2c OK [03:46:40]MH_I2C_Read... [03:46:40]Read from MH i2c: D1 [03:46:40]MH_I2C_Read... [03:46:40]Read from MH i2c: D1 01 00 [03:46:40]MH_I2C_Read... [03:46:40]Read from MH i2c: D1 01 00 0A 02 00 DD [03:46:40]Write to MH i2c: 01 00 00 0B 02 0D [03:46:40]Write i2c OK [03:46:40]MH_I2C_Read... [03:46:41]*** Cut start [03:46:41]*** Partial cut [03:46:41]*** CUTSNS_PIN = 1 [03:46:41]*** CUTSNS_PIN = 0 [03:46:41]*** Brake cut motor [03:46:42]Read from MH i2c: 01 [03:46:42]MH_I2C_Read... [03:46:42]*** Stop cut motor [03:46:42]*** Cut end [03:46:42]Read from MH i2c: 01 07 00 [03:46:42]MH_I2C_Read... [03:46:42]Read from MH i2c: 01 07 00 0B 02 00 00 00 00 00 FF 0F 22 [03:46:42]process_action close_receipt done [03:46:42]requested_data is exist [03:46:42]produce_requested_data [03:46:42]requested_item fm.sn is exist - process it [03:46:42]wFMCommunicate request_size=4 [03:46:42]MH_SAM_APDU [03:46:42]CAPDU: 80 11 00 00 [03:46:42]Write to MH i2c: E2 08 00 0C 02 80 11 00 00 00 00 00 00 88 [03:46:42]Write i2c OK [03:46:42]MH_I2C_Read... [03:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:42]Read from MH i2c: E2 [03:46:42]MH_I2C_Read... [03:46:42]Read from MH i2c: E2 17 00 [03:46:42]MH_I2C_Read... [03:46:42]Read from MH i2c: E2 17 00 0C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [03:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:46:42]wFMCommunicate OK [03:46:42]requested_item fd.num is exist - process it [03:46:42]SAM_PROTO_GetFieldsCounters [03:46:42]wFMCommunicate request_size=4 [03:46:42]MH_SAM_APDU [03:46:42]CAPDU: 80 13 00 00 [03:46:42]Write to MH i2c: E2 08 00 0D 02 80 13 00 00 00 00 00 00 8B [03:46:42]Write i2c OK [03:46:42]MH_I2C_Read... [03:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:46:42]Read from MH i2c: E2 [03:46:42]MH_I2C_Read... [03:46:42]Read from MH i2c: E2 62 00 [03:46:42]MH_I2C_Read... [03:46:42]Read from MH i2c: E2 62 00 0D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 43 1C 01 00 0E 04 04 00 2C 02 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 52 [03:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 43 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:46:42]wFMCommunicate OK [03:46:42]SAM_PROTO_GetFieldsCounters done [03:46:42]requested_item shift.num is exist - process it [03:46:42]requested_item shift.opened is exist - process it [03:46:42]req_shift_opened [03:46:42]FM_GetShiftState [03:46:42]SAM_PROTO_GetShiftState [03:46:42]wFMCommunicate request_size=4 [03:46:42]MH_SAM_APDU [03:46:42]CAPDU: 80 13 01 00 [03:46:42]Write to MH i2c: E2 08 00 0E 02 80 13 01 00 00 00 00 00 8D [03:46:42]Write i2c OK [03:46:42]MH_I2C_Read... [03:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:42]Read from MH i2c: E2 [03:46:42]MH_I2C_Read... [03:46:42]Read from MH i2c: E2 0E 00 [03:46:42]MH_I2C_Read... [03:46:42]Read from MH i2c: E2 0E 00 0E 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 5F [03:46:42]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [03:46:42]wFMCommunicate OK [03:46:42]SAM_PROTO_GetShiftState done [03:46:42]FM_GetShiftState done [03:46:42]req_shift_opened done [03:46:42]requested_item shift.open_date is exist - process it [03:46:42]req_shift_open_date [03:46:42]req_shift_open_date done [03:46:42]produce_requested_data done [03:46:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72771,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [03:46:42]process_action_free close_receipt [03:46:42]json_value_free [03:46:42]json_value_free done [03:46:42]process_json_proto returns [03:46:42]Send response to host [03:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72771,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [03:46:42]free response buf [03:46:42]execute_script done [03:46:42]execute_script returns [03:46:42]free content buf [03:46:42]Sock 7.Close socket [03:46:42]Sock 7.Thread stoped [03:46:47]Connected sock=11 [03:46:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 7C 17 08 01 E2 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 6A 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 13 00 00 00 00 07 04 06 00 F0 B9 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 1F AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1C 01 00 35 04 06 00 88 75 EB 1F 15 CF B3 88 46 1E 96 2C 8A CA [03:46:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 81 FF 47 00 DA CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1C 01 00 F4 03 04 00 E0 56 21 67 B6 04 01 00 00 45 56 71 EA 50 0A AF 07 [03:46:47]CommunicateWithHost err = 0 [03:46:47]CheckOFDResponse [03:46:47]1017 (14) - 77093643461234 [03:46:47]1041 (16) - 0000000000874662 [03:46:47]1040 (4) - 72771 [03:46:47]1012 (4) - 29.10.2024 21:42 [03:46:47]1206 (1) - 0 [03:46:47]OFD Sender: Remove packet 72771 [03:46:47]ProducePacketName [03:46:47]name=ofd_packets/00072771 [03:46:47]NVStorageDeleteData [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:46:58]recv_with_timeout no data received [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:14]recv_with_timeout no data received [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:46]recv_with_timeout no data received [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:57]accept exits with 9 [03:48:57]New connection [03:48:57]New thread 3066969444 created [03:48:57]Thread 3067112804 joined [03:48:57]Waiting for new connection... [03:48:57] Sock 9.Parse request [03:48:57]Sock 9.Check first char [03:48:57]Sock 9.First char is OK [03:48:57]request: POST /json_proto HTTP/1.0 [03:48:57]Method: POST [03:48:57]URL: /json_proto [03:48:57]Method is POST - this is cgi request [03:48:57]url: /json_proto [03:48:57]query_string will be loaded in cgi processing [03:48:57]execute_cgi json_proto POST (null) [03:48:57]execute_cgi path=json_proto method=POST [03:48:57]POST find Content-Length [03:48:57]Host: 172.17.43.195:8080 [03:48:57]Content-Length: 808 [03:48:57]Content-Type: application/json [03:48:57] [03:48:57]POST finish read [03:48:57]Found Content-Length = 808 [03:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952328", "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" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4363514.15", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:57]execute_script... [03:48:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952328", "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" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4363514.15", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:57]POST & json_proto [03:48:57]process_json_proto [03:48:57]json parsed OK: [03:48:57]protocol is kg_v1.0 [03:48:57]action value=close_receipt [03:48:57]process_action close_receipt [03:48:57]cmd_close_receipt [03:48:57]MH_GetDate [03:48:57]Write to MH i2c: F0 00 00 0F 02 00 [03:48:58]Write i2c OK [03:48:58]MH_I2C_Read... [03:48:58]Read from MH i2c: F0 [03:48:58]MH_I2C_Read... [03:48:58]Read from MH i2c: F0 09 00 [03:48:58]MH_I2C_Read... [03:48:58]Read from MH i2c: F0 09 00 0F 02 00 AB AC 21 67 74 2C AD 66 9B [03:48:58]GetLastDocTimeStamp 1730259999 [03:48:58]current date 1730260139 [03:48:58]FM_GetShiftState [03:48:58]SAM_PROTO_GetShiftState [03:48:58]wFMCommunicate request_size=4 [03:48:58]MH_SAM_APDU [03:48:58]CAPDU: 80 13 01 00 [03:48:58]Write to MH i2c: E2 08 00 10 02 80 13 01 00 00 00 00 00 8F [03:48:58]Write i2c OK [03:48:58]MH_I2C_Read... [03:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:58]Read from MH i2c: E2 [03:48:58]MH_I2C_Read... [03:48:58]Read from MH i2c: E2 0E 00 [03:48:58]MH_I2C_Read... [03:48:58]Read from MH i2c: E2 0E 00 10 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 61 [03:48:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [03:48:58]wFMCommunicate OK [03:48:58]SAM_PROTO_GetShiftState done [03:48:58]FM_GetShiftState done [03:48:58]opened in 1730247109 [03:48:58]opened+sec_in_day 1730333509 [03:48:58]quantity*price = 0 [03:48:58]sum+1 = 1 [03:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 9 30.10.2024 03:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливные Талоны 4363514.15 ФМ: 0000000000874662 ФД: 72772 ФПД: 198572093899112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034859&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72772&fm=198572093899112&tin=02508201610067®Number=0000000000091644&sum=0 [03:48:59]StoreToDocumentArchive [03:48:59]shift 556 fd 72772 [03:48:59]save to /storage/0556/doc_00072772 [03:48:59]save last doc name /storage/0556/doc_00072772 to /storage/kkm_last_doc_name [03:48:59]save OK [03:48:59]Clear old archive folders... [03:48:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:48:59]tlvbuf is 01B2AF30 [03:48:59]SAM_PROTO_ClearQueue [03:48:59]wFMCommunicate request_size=4 [03:48:59]MH_SAM_APDU [03:48:59]CAPDU: 80 09 00 00 [03:48:59]Write to MH i2c: E2 08 00 1D 02 80 09 00 00 00 00 00 00 91 [03:48:59]Write i2c OK [03:48:59]MH_I2C_Read... [03:48:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:48:59]Read from MH i2c: E2 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 03 00 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [03:48:59]RAPDU: 90 00 [03:48:59]wFMCommunicate OK [03:48:59]SAM_PROTO_ClearQueue done [03:48:59]KKMCreateOFDPacket [03:48:59]OFDProtocolAddRootSTLVToBuf [03:48:59]FM_MakeSignedData [03:48:59]FM_MakeSignedData [03:48:59]SAM_PROTO_SignData [03:48:59]wFMCommunicate request_size=4 [03:48:59]MH_SAM_APDU [03:48:59]CAPDU: 80 0D 01 02 [03:48:59]Write to MH i2c: E2 08 00 1E 02 80 0D 01 02 00 00 00 00 99 [03:48:59]Write i2c OK [03:48:59]MH_I2C_Read... [03:48:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:48:59]Read from MH i2c: E2 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 03 00 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [03:48:59]RAPDU: 90 00 [03:48:59]wFMCommunicate OK [03:48:59]wFMCommunicate request_size=255 [03:48:59]MH_SAM_APDU [03:48:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AB AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1C 01 00 35 04 06 00 [03:48:59]Write to MH i2c: E2 02 01 1F 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AB AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1C 01 00 35 04 06 00 00 00 31 [03:48:59]Write i2c OK [03:48:59]MH_I2C_Read... [03:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:59]Read from MH i2c: E2 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 03 00 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [03:48:59]RAPDU: 90 00 [03:48:59]wFMCommunicate OK [03:48:59]wFMCommunicate request_size=11 [03:48:59]MH_SAM_APDU [03:48:59]CAPDU: 80 0D 02 02 06 B4 99 AB 1E 81 68 [03:48:59]Write to MH i2c: E2 0E 00 20 02 80 0D 02 02 06 00 B4 99 AB 1E 81 68 00 00 A7 [03:48:59]Write i2c OK [03:48:59]MH_I2C_Read... [03:48:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:59]Read from MH i2c: E2 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 03 00 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [03:48:59]RAPDU: 90 00 [03:48:59]wFMCommunicate OK [03:48:59]wFMCommunicate request_size=4 [03:48:59]MH_SAM_APDU [03:48:59]CAPDU: 80 0D 03 02 [03:48:59]Write to MH i2c: E2 08 00 21 02 80 0D 03 02 00 00 00 00 9E [03:48:59]Write i2c OK [03:48:59]MH_I2C_Read... [03:48:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:48:59]Read from MH i2c: E2 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 0B 00 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 0B 00 21 02 00 5A C1 32 9B 8A F6 A7 DB 90 00 89 [03:48:59]RAPDU: 5A C1 32 9B 8A F6 A7 DB 90 00 [03:48:59]wFMCommunicate OK [03:48:59]SAM_PROTO_SignData done [03:48:59]FM_MakeSignedData done [03:48:59]CreateOFDProtocolMessage [03:48:59]wFMCommunicate request_size=4 [03:48:59]MH_SAM_APDU [03:48:59]CAPDU: 80 11 00 00 [03:48:59]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [03:48:59]Write i2c OK [03:48:59]MH_I2C_Read... [03:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:59]Read from MH i2c: E2 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 17 00 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F2 [03:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:48:59]wFMCommunicate OK [03:48:59]CreateOFDProtocolMessage done [03:48:59]OFDSenderStorePacket 72772 [03:48:59]StoreOFDPacket docnum=72772 [03:48:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 DA 7B 08 01 BC 80 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AB AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1C 01 00 35 04 06 00 B4 99 AB 1E 81 68 5A C1 32 9B 8A F6 A7 DB [03:48:59]CheckFolder [03:48:59]dirname=/storage/ofd_packets [03:48:59]CheckFolder done [03:48:59]ProducePacketName [03:48:59]name=ofd_packets/00072772 [03:48:59]NVStorageSaveData ofd_packets/00072772 [03:48:59]File name is /storage/ofd_packets/00072772 [03:48:59]Write 302 bytes [03:48:59]NVStorageSaveData done [03:48:59]OFDSenderStorePacket done [03:48:59]KKMCreateOFDPacket done [03:48:59]NVStorageSaveData kkm_last_timestamp [03:48:59]File name is /storage/kkm_last_timestamp [03:48:59]Write 4 bytes [03:48:59]NVStorageSaveData done [03:48:59]OFD Sender: Processing packet 72772 [packets to send 278, broken 277] [03:48:59]ProducePacketName [03:48:59]name=ofd_packets/00072772 [03:48:59]OFD Sender: To server: pG, [03:48:59]CommunicateWithHost lk.salyk.kg:30040 [03:48:59]ConnectInit lk.salyk.kg [03:48:59]ExternCall_PrintAddStr [03:48:59]wPrintStart [03:48:59]Write to MH i2c: 01 00 00 23 02 25 [03:48:59]Write i2c OK [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: 01 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: 01 07 00 [03:48:59]MH_I2C_Read... [03:48:59]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [03:48:59]RasterBufferAndPrint [03:48:59]line Счет N : (1)952328 [03:48:59]line ИНН: 02508201610067 [03:48:59]line Контрольно-Кассовый Чек [03:48:59]line ПРОДАЖА [03:48:59]line ТРК (МРК, ГНК) : 33 [03:48:59]line Товар: 2710194210 [03:48:59]line ДТ(л)-К-5 [03:48:59]line 40.000 * 0.00 [03:48:59]line = 0.00 [03:48:59]line НДС 12% НСП 1% [03:48:59]line > о реализуемом товаре [03:48:59]line ИТОГО: 0.00 [03:48:59]line НСП 1% : 0.00 [03:48:59]line НДС 12% : 0.00 [03:48:59]line Наличными: 0.00 [03:48:59]line Безнал.: 0.00 [03:48:59]line Место: АЗС № 113 "Партнер Нефть" [03:48:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [03:48:59]line СНО: Общий режим [03:48:59]line Чек 9 30.10.2024 03:48 [03:48:59]line Смена: 556 ФФД: 1.0 [03:48:59]line ЗНМ: 0300000087 [03:48:59]line РНМ: 0000000000091644 [03:48:59]line Версия ККМ: 001 [03:48:59]line Талоны: Топливные Талоны [03:48:59]line 4363514.15 [03:48:59]line ФМ: 0000000000874662 [03:48:59]line ФД: 72772 [03:48:59]line ФПД: 198572093899112 [03:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034859&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72772&fm=198572093899112&tin=02508201610067®Number=0000000000091644&sum=0 [03:49:00]written 0, free lines is 4095 [03:49:00]Write to MH i2c: 01 00 00 4D 02 4F [03:49:00]Write i2c OK [03:49:00]MH_I2C_Read... [03:49:00]Read from MH i2c: 01 [03:49:00]MH_I2C_Read... [03:49:00]Read from MH i2c: 01 07 00 [03:49:00]MH_I2C_Read... [03:49:00]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 E9 0C 4B [03:49:00]RasterBufferAndPrint [03:49:00]line [03:49:00]line [03:49:00]line [03:49:00]line [03:49:00]line [03:49:00]written 0, free lines is 3313 [03:49:00]MH_Cut [03:49:00]Write to MH i2c: D1 01 00 54 02 01 28 [03:49:00]Write i2c OK [03:49:00]MH_I2C_Read... [03:49:00]Read from MH i2c: D1 [03:49:00]MH_I2C_Read... [03:49:00]Read from MH i2c: D1 01 00 [03:49:00]MH_I2C_Read... [03:49:00]Read from MH i2c: D1 01 00 54 02 00 27 [03:49:00]Write to MH i2c: 01 00 00 55 02 57 [03:49:00]Write i2c OK [03:49:00]MH_I2C_Read... [03:49:00]Connected sock=11 [03:49:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 DA 7B 08 01 BC 80 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AB AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1C 01 00 35 04 06 00 B4 99 AB 1E 81 68 5A C1 32 9B 8A F6 A7 DB [03:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 58 86 47 00 F3 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1C 01 00 F4 03 04 00 65 57 21 67 B6 04 01 00 00 F8 77 9D 55 84 99 C0 91 [03:49:01]CommunicateWithHost err = 0 [03:49:01]CheckOFDResponse [03:49:01]1017 (14) - 77093643461234 [03:49:01]1041 (16) - 0000000000874662 [03:49:01]1040 (4) - 72772 [03:49:01]1012 (4) - 29.10.2024 21:45 [03:49:01]1206 (1) - 0 [03:49:01]OFD Sender: Remove packet 72772 [03:49:01]ProducePacketName [03:49:01]name=ofd_packets/00072772 [03:49:01]NVStorageDeleteData [03:49:01]*** Cut start [03:49:01]*** Partial cut [03:49:01]*** CUTSNS_PIN = 1 [03:49:01]*** CUTSNS_PIN = 0 [03:49:01]*** Brake cut motor [03:49:01]OFD Sender: No OFD packet to send [03:49:01]Read from MH i2c: 01 [03:49:01]MH_I2C_Read... [03:49:01]*** Stop cut motor [03:49:01]*** Cut end [03:49:01]Read from MH i2c: 01 07 00 [03:49:01]MH_I2C_Read... [03:49:01]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 FF 0F 6C [03:49:01]process_action close_receipt done [03:49:01]requested_data is exist [03:49:01]produce_requested_data [03:49:01]requested_item fm.sn is exist - process it [03:49:01]wFMCommunicate request_size=4 [03:49:01]MH_SAM_APDU [03:49:01]CAPDU: 80 11 00 00 [03:49:01]Write to MH i2c: E2 08 00 56 02 80 11 00 00 00 00 00 00 D2 [03:49:01]Write i2c OK [03:49:01]MH_I2C_Read... [03:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:01]Read from MH i2c: E2 [03:49:01]MH_I2C_Read... [03:49:01]Read from MH i2c: E2 17 00 [03:49:01]MH_I2C_Read... [03:49:01]Read from MH i2c: E2 17 00 56 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 26 [03:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:49:01]wFMCommunicate OK [03:49:01]requested_item fd.num is exist - process it [03:49:01]SAM_PROTO_GetFieldsCounters [03:49:01]wFMCommunicate request_size=4 [03:49:01]MH_SAM_APDU [03:49:01]CAPDU: 80 13 00 00 [03:49:01]Write to MH i2c: E2 08 00 57 02 80 13 00 00 00 00 00 00 D5 [03:49:01]Write i2c OK [03:49:01]MH_I2C_Read... [03:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:49:02]Read from MH i2c: E2 [03:49:02]MH_I2C_Read... [03:49:02]Read from MH i2c: E2 62 00 [03:49:02]MH_I2C_Read... [03:49:02]Read from MH i2c: E2 62 00 57 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 44 1C 01 00 0E 04 04 00 2C 02 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 A0 [03:49:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 44 1C 01 00 0E 04 04 00 2C 02 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 [03:49:02]wFMCommunicate OK [03:49:02]SAM_PROTO_GetFieldsCounters done [03:49:02]requested_item shift.num is exist - process it [03:49:02]requested_item shift.opened is exist - process it [03:49:02]req_shift_opened [03:49:02]FM_GetShiftState [03:49:02]SAM_PROTO_GetShiftState [03:49:02]wFMCommunicate request_size=4 [03:49:02]MH_SAM_APDU [03:49:02]CAPDU: 80 13 01 00 [03:49:02]Write to MH i2c: E2 08 00 58 02 80 13 01 00 00 00 00 00 D7 [03:49:02]Write i2c OK [03:49:02]MH_I2C_Read... [03:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:02]Read from MH i2c: E2 [03:49:02]MH_I2C_Read... [03:49:02]Read from MH i2c: E2 0E 00 [03:49:02]MH_I2C_Read... [03:49:02]Read from MH i2c: E2 0E 00 58 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A9 [03:49:02]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [03:49:02]wFMCommunicate OK [03:49:02]SAM_PROTO_GetShiftState done [03:49:02]FM_GetShiftState done [03:49:02]req_shift_opened done [03:49:02]requested_item shift.open_date is exist - process it [03:49:02]req_shift_open_date [03:49:02]req_shift_open_date done [03:49:02]produce_requested_data done [03:49:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72772,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [03:49:02]process_action_free close_receipt [03:49:02]json_value_free [03:49:02]json_value_free done [03:49:02]process_json_proto returns [03:49:02]Send response to host [03:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72772,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [03:49:02]free response buf [03:49:02]execute_script done [03:49:02]execute_script returns [03:49:02]free content buf [03:49:02]Sock 9.Close socket [03:49:02]Sock 9.Thread stoped [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:28]recv_with_timeout no data received [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:52]accept exits with 10 [03:49:52]New connection [03:49:52]New thread 3067112804 created [03:49:52]Thread 3066969444 joined [03:49:52]Waiting for new connection... [03:49:52] Sock 10.Parse request [03:49:52]Sock 10.Check first char [03:49:52]Sock 10.First char is OK [03:49:52]request: POST /json_proto HTTP/1.0 [03:49:52]Method: POST [03:49:52]URL: /json_proto [03:49:52]Method is POST - this is cgi request [03:49:52]url: /json_proto [03:49:52]query_string will be loaded in cgi processing [03:49:52]execute_cgi json_proto POST (null) [03:49:52]execute_cgi path=json_proto method=POST [03:49:52]POST find Content-Length [03:49:52]Host: 172.17.43.195:8080 [03:49:52]Content-Length: 822 [03:49:52]Content-Type: application/json [03:49:52] [03:49:52]POST finish read [03:49:52]Found Content-Length = 822 [03:49:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952329", "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" : 12.500, "sum" : 952.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 952.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:52]execute_script... [03:49:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952329", "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" : 12.500, "sum" : 952.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 952.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:52]POST & json_proto [03:49:52]process_json_proto [03:49:52]json parsed OK: [03:49:52]protocol is kg_v1.0 [03:49:52]action value=close_receipt [03:49:52]process_action close_receipt [03:49:52]cmd_close_receipt [03:49:52]MH_GetDate [03:49:52]Write to MH i2c: F0 00 00 59 02 4A [03:49:52]Write i2c OK [03:49:52]MH_I2C_Read... [03:49:52]Read from MH i2c: F0 [03:49:52]MH_I2C_Read... [03:49:52]Read from MH i2c: F0 09 00 [03:49:52]MH_I2C_Read... [03:49:52]Read from MH i2c: F0 09 00 59 02 00 E1 AC 21 67 74 2C AD 66 1B [03:49:52]GetLastDocTimeStamp 1730260139 [03:49:52]current date 1730260193 [03:49:52]FM_GetShiftState [03:49:52]SAM_PROTO_GetShiftState [03:49:52]wFMCommunicate request_size=4 [03:49:52]MH_SAM_APDU [03:49:52]CAPDU: 80 13 01 00 [03:49:52]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [03:49:52]Write i2c OK [03:49:52]MH_I2C_Read... [03:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:52]Read from MH i2c: E2 [03:49:52]MH_I2C_Read... [03:49:52]Read from MH i2c: E2 0E 00 [03:49:52]MH_I2C_Read... [03:49:52]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 AB [03:49:52]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [03:49:52]wFMCommunicate OK [03:49:52]SAM_PROTO_GetShiftState done [03:49:52]FM_GetShiftState done [03:49:52]opened in 1730247109 [03:49:52]opened+sec_in_day 1730333509 [03:49:52]quantity*price = 95250 [03:49:52]sum+1 = 95251 [03:49:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 952.50 НСП 1% : 8.43 НДС 12% : 101.15 Наличными: 0.00 Безнал.: 952.50 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 10 30.10.2024 03:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 72773 ФПД: 92939216679272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034954&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72773&fm=92939216679272&tin=02508201610067®Number=0000000000091644&sum=95250 [03:49:53]StoreToDocumentArchive [03:49:53]shift 556 fd 72773 [03:49:53]save to /storage/0556/doc_00072773 [03:49:53]save last doc name /storage/0556/doc_00072773 to /storage/kkm_last_doc_name [03:49:53]save OK [03:49:53]Clear old archive folders... [03:49:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:49:53]tlvbuf is 01B2CB40 [03:49:53]SAM_PROTO_ClearQueue [03:49:53]wFMCommunicate request_size=4 [03:49:53]MH_SAM_APDU [03:49:53]CAPDU: 80 09 00 00 [03:49:53]Write to MH i2c: E2 08 00 67 02 80 09 00 00 00 00 00 00 DB [03:49:53]Write i2c OK [03:49:53]MH_I2C_Read... [03:49:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:49:54]Read from MH i2c: E2 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 03 00 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [03:49:54]RAPDU: 90 00 [03:49:54]wFMCommunicate OK [03:49:54]SAM_PROTO_ClearQueue done [03:49:54]KKMCreateOFDPacket [03:49:54]OFDProtocolAddRootSTLVToBuf [03:49:54]FM_MakeSignedData [03:49:54]FM_MakeSignedData [03:49:54]SAM_PROTO_SignData [03:49:54]wFMCommunicate request_size=4 [03:49:54]MH_SAM_APDU [03:49:54]CAPDU: 80 0D 01 02 [03:49:54]Write to MH i2c: E2 08 00 68 02 80 0D 01 02 00 00 00 00 E3 [03:49:54]Write i2c OK [03:49:54]MH_I2C_Read... [03:49:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:49:54]Read from MH i2c: E2 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 03 00 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [03:49:54]RAPDU: 90 00 [03:49:54]wFMCommunicate OK [03:49:54]wFMCommunicate request_size=255 [03:49:54]MH_SAM_APDU [03:49:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 D4 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 74 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 74 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 74 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E2 AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1C 01 00 35 04 06 00 [03:49:54]Write to MH i2c: E2 02 01 69 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 D4 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 74 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 74 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 74 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E2 AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1C 01 00 35 04 06 00 00 00 4A [03:49:54]Write i2c OK [03:49:54]MH_I2C_Read... [03:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:54]Read from MH i2c: E2 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 03 00 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [03:49:54]RAPDU: 90 00 [03:49:54]wFMCommunicate OK [03:49:54]wFMCommunicate request_size=11 [03:49:54]MH_SAM_APDU [03:49:54]CAPDU: 80 0D 02 02 06 54 87 18 FE F1 68 [03:49:54]Write to MH i2c: E2 0E 00 6A 02 80 0D 02 02 06 00 54 87 18 FE F1 68 00 00 3C [03:49:54]Write i2c OK [03:49:54]MH_I2C_Read... [03:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:54]Read from MH i2c: E2 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 03 00 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [03:49:54]RAPDU: 90 00 [03:49:54]wFMCommunicate OK [03:49:54]wFMCommunicate request_size=4 [03:49:54]MH_SAM_APDU [03:49:54]CAPDU: 80 0D 03 02 [03:49:54]Write to MH i2c: E2 08 00 6B 02 80 0D 03 02 00 00 00 00 E8 [03:49:54]Write i2c OK [03:49:54]MH_I2C_Read... [03:49:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:49:54]Read from MH i2c: E2 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 0B 00 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 0B 00 6B 02 00 83 8F 6B B3 50 CB 7A 58 90 00 06 [03:49:54]RAPDU: 83 8F 6B B3 50 CB 7A 58 90 00 [03:49:54]wFMCommunicate OK [03:49:54]SAM_PROTO_SignData done [03:49:54]FM_MakeSignedData done [03:49:54]CreateOFDProtocolMessage [03:49:54]wFMCommunicate request_size=4 [03:49:54]MH_SAM_APDU [03:49:54]CAPDU: 80 11 00 00 [03:49:54]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [03:49:54]Write i2c OK [03:49:54]MH_I2C_Read... [03:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:54]Read from MH i2c: E2 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 17 00 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [03:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:49:54]wFMCommunicate OK [03:49:54]CreateOFDProtocolMessage done [03:49:54]OFDSenderStorePacket 72773 [03:49:54]StoreOFDPacket docnum=72773 [03:49:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F2 E4 08 01 E6 57 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 D4 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 74 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 74 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 74 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E2 AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1C 01 00 35 04 06 00 54 87 18 FE F1 68 83 8F 6B B3 50 CB 7A 58 [03:49:54]CheckFolder [03:49:54]dirname=/storage/ofd_packets [03:49:54]CheckFolder done [03:49:54]ProducePacketName [03:49:54]name=ofd_packets/00072773 [03:49:54]NVStorageSaveData ofd_packets/00072773 [03:49:54]File name is /storage/ofd_packets/00072773 [03:49:54]Write 302 bytes [03:49:54]NVStorageSaveData done [03:49:54]OFDSenderStorePacket done [03:49:54]KKMCreateOFDPacket done [03:49:54]NVStorageSaveData kkm_last_timestamp [03:49:54]File name is /storage/kkm_last_timestamp [03:49:54]Write 4 bytes [03:49:54]NVStorageSaveData done [03:49:54]ExternCall_PrintAddStr [03:49:54]wPrintStart [03:49:54]Write to MH i2c: 01 00 00 6D 02 6F [03:49:54]Write i2c OK [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: 01 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: 01 07 00 [03:49:54]MH_I2C_Read... [03:49:54]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [03:49:54]RasterBufferAndPrint [03:49:54]line Счет N : (1)952329 [03:49:54]line ИНН: 02508201610067 [03:49:54]line Контрольно-Кассовый Чек [03:49:54]line ПРОДАЖА [03:49:54]line ТРК (МРК, ГНК) : 33 [03:49:54]line Товар: 2710194210 [03:49:54]line ДТ(л)-К-5 [03:49:54]line 12.500 * 76.20 [03:49:54]line = 952.50 [03:49:54]line НДС 12% НСП 1% [03:49:54]line > о реализуемом товаре [03:49:54]line ИТОГО: 952.50 [03:49:54]line НСП 1% : 8.43 [03:49:54]line НДС 12% : 101.15 [03:49:54]line Наличными: 0.00 [03:49:54]line Безнал.: 952.50 [03:49:54]line Место: АЗС № 113 "Партнер Нефть" [03:49:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [03:49:54]line СНО: Общий режим [03:49:54]line Чек 10 30.10.2024 03:49 [03:49:54]line Смена: 556 ФФД: 1.0 [03:49:54]line ЗНМ: 0300000087 [03:49:54]line РНМ: 0000000000091644 [03:49:54]line Версия ККМ: 001 [03:49:54]line Платежная система: Бакай банк [03:49:54]line ФМ: 0000000000874662 [03:49:54]line ФД: 72773 [03:49:54]line ФПД: 92939216679272 [03:49:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034954&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72773&fm=92939216679272&tin=02508201610067®Number=0000000000091644&sum=95250 [03:49:54]OFD Sender: Processing packet 72773 [packets to send 278, broken 277] [03:49:54]ProducePacketName [03:49:54]name=ofd_packets/00072773 [03:49:54]OFD Sender: To server: pG, [03:49:54]CommunicateWithHost lk.salyk.kg:30040 [03:49:54]ConnectInit lk.salyk.kg [03:49:54]written 0, free lines is 4095 [03:49:55]Write to MH i2c: 01 00 00 97 02 99 [03:49:55]Write i2c OK [03:49:55]MH_I2C_Read... [03:49:55]Read from MH i2c: 01 [03:49:55]MH_I2C_Read... [03:49:55]Read from MH i2c: 01 07 00 [03:49:55]MH_I2C_Read... [03:49:55]Read from MH i2c: 01 07 00 97 02 00 00 00 00 00 E6 0C 92 [03:49:55]RasterBufferAndPrint [03:49:55]line [03:49:55]line [03:49:55]line [03:49:55]line [03:49:55]line [03:49:55]written 0, free lines is 3306 [03:49:55]MH_Cut [03:49:55]Write to MH i2c: D1 01 00 9E 02 01 72 [03:49:55]Write i2c OK [03:49:55]MH_I2C_Read... [03:49:55]Read from MH i2c: D1 [03:49:55]MH_I2C_Read... [03:49:55]Read from MH i2c: D1 01 00 [03:49:55]MH_I2C_Read... [03:49:55]Read from MH i2c: D1 01 00 9E 02 00 71 [03:49:55]Write to MH i2c: 01 00 00 9F 02 A1 [03:49:55]Write i2c OK [03:49:55]MH_I2C_Read... [03:49:56]*** Cut start [03:49:56]*** Partial cut [03:49:56]*** CUTSNS_PIN = 1 [03:49:56]*** CUTSNS_PIN = 0 [03:49:56]*** Brake cut motor [03:49:56]Read from MH i2c: 01 [03:49:56]MH_I2C_Read... [03:49:56]*** Stop cut motor [03:49:56]*** Cut end [03:49:56]Read from MH i2c: 01 07 00 [03:49:56]MH_I2C_Read... [03:49:56]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 FF 0F B6 [03:49:56]process_action close_receipt done [03:49:56]requested_data is exist [03:49:56]produce_requested_data [03:49:56]requested_item fm.sn is exist - process it [03:49:56]wFMCommunicate request_size=4 [03:49:56]MH_SAM_APDU [03:49:56]CAPDU: 80 11 00 00 [03:49:56]Write to MH i2c: E2 08 00 A0 02 80 11 00 00 00 00 00 00 1C [03:49:56]Write i2c OK [03:49:56]MH_I2C_Read... [03:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:56]Read from MH i2c: E2 [03:49:56]MH_I2C_Read... [03:49:56]Read from MH i2c: E2 17 00 [03:49:56]MH_I2C_Read... [03:49:56]Read from MH i2c: E2 17 00 A0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 70 [03:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:49:56]wFMCommunicate OK [03:49:56]requested_item fd.num is exist - process it [03:49:56]SAM_PROTO_GetFieldsCounters [03:49:56]wFMCommunicate request_size=4 [03:49:56]MH_SAM_APDU [03:49:56]CAPDU: 80 13 00 00 [03:49:56]Write to MH i2c: E2 08 00 A1 02 80 13 00 00 00 00 00 00 1F [03:49:56]Write i2c OK [03:49:56]MH_I2C_Read... [03:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:49:56]Read from MH i2c: E2 [03:49:56]MH_I2C_Read... [03:49:56]Read from MH i2c: E2 62 00 [03:49:56]MH_I2C_Read... [03:49:56]Read from MH i2c: E2 62 00 A1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 45 1C 01 00 0E 04 04 00 2C 02 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 EE [03:49:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 45 1C 01 00 0E 04 04 00 2C 02 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 [03:49:56]wFMCommunicate OK [03:49:56]SAM_PROTO_GetFieldsCounters done [03:49:56]requested_item shift.num is exist - process it [03:49:56]requested_item shift.opened is exist - process it [03:49:56]req_shift_opened [03:49:56]FM_GetShiftState [03:49:56]SAM_PROTO_GetShiftState [03:49:56]wFMCommunicate request_size=4 [03:49:56]MH_SAM_APDU [03:49:56]CAPDU: 80 13 01 00 [03:49:56]Write to MH i2c: E2 08 00 A2 02 80 13 01 00 00 00 00 00 21 [03:49:56]Write i2c OK [03:49:56]MH_I2C_Read... [03:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:56]Read from MH i2c: E2 [03:49:56]MH_I2C_Read... [03:49:56]Read from MH i2c: E2 0E 00 [03:49:56]MH_I2C_Read... [03:49:56]Read from MH i2c: E2 0E 00 A2 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 F3 [03:49:56]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [03:49:56]wFMCommunicate OK [03:49:56]SAM_PROTO_GetShiftState done [03:49:56]FM_GetShiftState done [03:49:56]req_shift_opened done [03:49:56]requested_item shift.open_date is exist - process it [03:49:56]req_shift_open_date [03:49:56]req_shift_open_date done [03:49:56]produce_requested_data done [03:49:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72773,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [03:49:56]process_action_free close_receipt [03:49:56]json_value_free [03:49:56]json_value_free done [03:49:56]process_json_proto returns [03:49:56]Send response to host [03:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72773,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [03:49:56]free response buf [03:49:56]execute_script done [03:49:56]execute_script returns [03:49:56]free content buf [03:49:56]Sock 10.Close socket [03:49:56]Sock 10.Thread stoped [03:49:58]recv_with_timeout no data received [03:49:59]ConnectInit Can't take IP for lk.salyk.kg [03:49:59]CommunicateWithHost connect error [03:49:59]CommunicateWithHost err = -1 [03:49:59]OFD Sender: Server communicate error [03:50:04]OFD Sender: Processing packet 72773 [packets to send 278, broken 277] [03:50:04]ProducePacketName [03:50:04]name=ofd_packets/00072773 [03:50:04]OFD Sender: To server: pG, [03:50:04]CommunicateWithHost lk.salyk.kg:30040 [03:50:04]ConnectInit lk.salyk.kg [03:50:10]Connected sock=10 [03:50:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F2 E4 08 01 E6 57 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 D4 30 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 74 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 12 74 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 12 74 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E2 AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1C 01 00 35 04 06 00 54 87 18 FE F1 68 83 8F 6B B3 50 CB 7A 58 [03:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2C 86 47 00 36 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1C 01 00 F4 03 04 00 AB 57 21 67 B6 04 01 00 00 8C 48 EE 99 DB DE D7 B4 [03:50:11]CommunicateWithHost err = 0 [03:50:11]CheckOFDResponse [03:50:11]1017 (14) - 77093643461234 [03:50:11]1041 (16) - 0000000000874662 [03:50:11]1040 (4) - 72773 [03:50:11]1012 (4) - 29.10.2024 21:46 [03:50:11]1206 (1) - 0 [03:50:11]OFD Sender: Remove packet 72773 [03:50:11]ProducePacketName [03:50:11]name=ofd_packets/00072773 [03:50:11]NVStorageDeleteData [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:54]recv_with_timeout no data received [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:18]recv_with_timeout no data received [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:41]recv_with_timeout no data received [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:43]recv_with_timeout no data received [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:06]recv_with_timeout no data received [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:54]recv_with_timeout no data received [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:44]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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]recv_with_timeout no data received [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: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: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:38]OFD Sender: No OFD packet to send [04:03:42]recv_with_timeout no data received [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:08]recv_with_timeout no data received [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:20]recv_with_timeout no data received [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:49]recv_with_timeout no data received [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:27]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:35]recv_with_timeout no data received [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:51]recv_with_timeout no data received [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:31]recv_with_timeout no data received [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:21]recv_with_timeout no data received [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:14]recv_with_timeout no data received [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:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:18]recv_with_timeout no data received [04:11:19]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:36]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:35]recv_with_timeout no data received [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:13]recv_with_timeout no data received [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:39]OFD Sender: No OFD packet to send [04:13:42]recv_with_timeout no data received [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:52]recv_with_timeout no data received [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:43]recv_with_timeout no data received [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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: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:48]recv_with_timeout no data received [04:17:49]OFD Sender: No OFD packet to send [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:08]recv_with_timeout no data received [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: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:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:16]recv_with_timeout no data received [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:34]recv_with_timeout no data received [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:25]recv_with_timeout no data received [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:16]recv_with_timeout no data received [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:14]recv_with_timeout no data received [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:45]recv_with_timeout no data received [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:03]recv_with_timeout no data received [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:13]recv_with_timeout no data received [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:32]recv_with_timeout no data received [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:03]recv_with_timeout no data received [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:32]accept exits with 7 [04:26:32]New connection [04:26:32]New thread 3066969444 created [04:26:32]Thread 3067112804 joined [04:26:32]Waiting for new connection... [04:26:32] Sock 7.Parse request [04:26:32]Sock 7.Check first char [04:26:32]Sock 7.First char is OK [04:26:32]request: POST /json_proto HTTP/1.0 [04:26:32]Method: POST [04:26:32]URL: /json_proto [04:26:32]Method is POST - this is cgi request [04:26:32]url: /json_proto [04:26:32]query_string will be loaded in cgi processing [04:26:32]execute_cgi json_proto POST (null) [04:26:32]execute_cgi path=json_proto method=POST [04:26:32]POST find Content-Length [04:26:32]Host: 172.17.43.195:8080 [04:26:32]Content-Length: 663 [04:26:32]Content-Type: application/json [04:26:32] [04:26:32]POST finish read [04:26:32]Found Content-Length = 663 [04:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.02, "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" ] } } [04:26:32]execute_script... [04:26:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.02, "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" ] } } [04:26:32]POST & json_proto [04:26:32]process_json_proto [04:26:32]json parsed OK: [04:26:32]protocol is kg_v1.0 [04:26:32]action value=close_receipt [04:26:32]process_action close_receipt [04:26:32]cmd_close_receipt [04:26:32]MH_GetDate [04:26:32]Write to MH i2c: F0 00 00 A3 02 94 [04:26:32]Write i2c OK [04:26:32]MH_I2C_Read... [04:26:32]Read from MH i2c: F0 [04:26:32]MH_I2C_Read... [04:26:32]Read from MH i2c: F0 09 00 [04:26:32]MH_I2C_Read... [04:26:32]Read from MH i2c: F0 09 00 A3 02 00 7A B5 21 67 74 2C AD 66 07 [04:26:32]GetLastDocTimeStamp 1730260194 [04:26:32]current date 1730262394 [04:26:32]FM_GetShiftState [04:26:32]SAM_PROTO_GetShiftState [04:26:32]wFMCommunicate request_size=4 [04:26:32]MH_SAM_APDU [04:26:32]CAPDU: 80 13 01 00 [04:26:32]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [04:26:32]Write i2c OK [04:26:32]MH_I2C_Read... [04:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:26:32]Read from MH i2c: E2 [04:26:32]MH_I2C_Read... [04:26:32]Read from MH i2c: E2 0E 00 [04:26:32]MH_I2C_Read... [04:26:32]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 F5 [04:26:32]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:26:32]wFMCommunicate OK [04:26:32]SAM_PROTO_GetShiftState done [04:26:32]FM_GetShiftState done [04:26:32]opened in 1730247109 [04:26:32]opened+sec_in_day 1730333509 [04:26:32]quantity*price = 300002 [04:26:32]sum+1 = 300003 [04:26:32]Check (price>sum+1) || (price+1 о реализуемом товаре [04:26:34]line ОКРУГЛЕНИЕ: -0.02 [04:26:34]line ИТОГО: 3000.00 [04:26:34]line Внесено: 3000.00 [04:26:34]line СДАЧА: 0.00 [04:26:34]line НСП 1% : 26.55 [04:26:34]line НДС 12% : 318.59 [04:26:34]line Наличными: 3000.00 [04:26:34]line Безнал.: 0.00 [04:26:34]line Место: АЗС № 113 "Партнер Нефть" [04:26:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:26:34]line СНО: Общий режим [04:26:34]line Чек 11 30.10.2024 04:26 [04:26:34]line Смена: 556 ФФД: 1.0 [04:26:34]line ЗНМ: 0300000087 [04:26:34]line РНМ: 0000000000091644 [04:26:34]line Версия ККМ: 001 [04:26:34]line ФМ: 0000000000874662 [04:26:34]line ФД: 72774 [04:26:34]line ФПД: 117108351582160 [04:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T042634&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72774&fm=117108351582160&tin=02508201610067®Number=0000000000091644&sum=300000 [04:26:34]OFD Sender: Processing packet 72774 [packets to send 278, broken 277] [04:26:34]ProducePacketName [04:26:34]name=ofd_packets/00072774 [04:26:34]OFD Sender: To server: pG, [04:26:34]CommunicateWithHost lk.salyk.kg:30040 [04:26:34]ConnectInit lk.salyk.kg [04:26:34]written 0, free lines is 4095 [04:26:35]Write to MH i2c: 01 00 00 E1 02 E3 [04:26:35]Write i2c OK [04:26:35]MH_I2C_Read... [04:26:35]Read from MH i2c: 01 [04:26:35]MH_I2C_Read... [04:26:35]Read from MH i2c: 01 07 00 [04:26:35]MH_I2C_Read... [04:26:35]Read from MH i2c: 01 07 00 E1 02 00 00 00 00 00 E8 0C DE [04:26:35]RasterBufferAndPrint [04:26:35]line [04:26:35]line [04:26:35]line [04:26:35]line [04:26:35]line [04:26:35]written 0, free lines is 3310 [04:26:35]MH_Cut [04:26:35]Write to MH i2c: D1 01 00 E8 02 01 BC [04:26:35]Write i2c OK [04:26:35]MH_I2C_Read... [04:26:35]Read from MH i2c: D1 [04:26:35]MH_I2C_Read... [04:26:35]Read from MH i2c: D1 01 00 [04:26:35]MH_I2C_Read... [04:26:35]Read from MH i2c: D1 01 00 E8 02 00 BB [04:26:35]Write to MH i2c: 01 00 00 E9 02 EB [04:26:35]Write i2c OK [04:26:35]MH_I2C_Read... [04:26:35]Connected sock=11 [04:26:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 BB D6 00 01 7D EF 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 7A B5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1C 01 00 35 04 06 00 6A 82 69 B2 3F D0 E5 16 F6 AF 5F F1 E2 47 [04:26:35]*** Cut start [04:26:35]*** Partial cut [04:26:35]*** CUTSNS_PIN = 1 [04:26:35]*** CUTSNS_PIN = 0 [04:26:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 36 9C 47 00 EC 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1C 01 00 F4 03 04 00 34 60 21 67 B6 04 01 00 00 C0 2D 1C 38 CD 28 A2 95 [04:26:36]CommunicateWithHost err = 0 [04:26:36]CheckOFDResponse [04:26:36]1017 (14) - 77093643461234 [04:26:36]1041 (16) - 0000000000874662 [04:26:36]1040 (4) - 72774 [04:26:36]1012 (4) - 29.10.2024 22:22 [04:26:36]1206 (1) - 0 [04:26:36]OFD Sender: Remove packet 72774 [04:26:36]ProducePacketName [04:26:36]name=ofd_packets/00072774 [04:26:36]NVStorageDeleteData [04:26:36]*** Brake cut motor [04:26:36]Read from MH i2c: 01 [04:26:36]MH_I2C_Read... [04:26:36]*** Stop cut motor [04:26:36]*** Cut end [04:26:36]Read from MH i2c: 01 07 00 [04:26:36]MH_I2C_Read... [04:26:36]Read from MH i2c: 01 07 00 E9 02 00 00 00 00 00 FF 0F 00 [04:26:36]process_action close_receipt done [04:26:36]requested_data is exist [04:26:36]produce_requested_data [04:26:36]requested_item fm.sn is exist - process it [04:26:36]wFMCommunicate request_size=4 [04:26:36]MH_SAM_APDU [04:26:36]CAPDU: 80 11 00 00 [04:26:36]Write to MH i2c: E2 08 00 EA 02 80 11 00 00 00 00 00 00 66 [04:26:36]Write i2c OK [04:26:36]MH_I2C_Read... [04:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:26:36]Read from MH i2c: E2 [04:26:36]MH_I2C_Read... [04:26:36]Read from MH i2c: E2 17 00 [04:26:36]MH_I2C_Read... [04:26:36]Read from MH i2c: E2 17 00 EA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BA [04:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:26:36]wFMCommunicate OK [04:26:36]requested_item fd.num is exist - process it [04:26:36]SAM_PROTO_GetFieldsCounters [04:26:36]wFMCommunicate request_size=4 [04:26:36]MH_SAM_APDU [04:26:36]CAPDU: 80 13 00 00 [04:26:36]Write to MH i2c: E2 08 00 EB 02 80 13 00 00 00 00 00 00 69 [04:26:36]Write i2c OK [04:26:36]MH_I2C_Read... [04:26:36]OFD Sender: No OFD packet to send [04:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:26:36]Read from MH i2c: E2 [04:26:36]MH_I2C_Read... [04:26:36]Read from MH i2c: E2 62 00 [04:26:36]MH_I2C_Read... [04:26:36]Read from MH i2c: E2 62 00 EB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 46 1C 01 00 0E 04 04 00 2C 02 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 3C [04:26:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 46 1C 01 00 0E 04 04 00 2C 02 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 [04:26:36]wFMCommunicate OK [04:26:36]SAM_PROTO_GetFieldsCounters done [04:26:36]requested_item shift.num is exist - process it [04:26:36]requested_item shift.opened is exist - process it [04:26:36]req_shift_opened [04:26:36]FM_GetShiftState [04:26:36]SAM_PROTO_GetShiftState [04:26:36]wFMCommunicate request_size=4 [04:26:36]MH_SAM_APDU [04:26:36]CAPDU: 80 13 01 00 [04:26:36]Write to MH i2c: E2 08 00 EC 02 80 13 01 00 00 00 00 00 6B [04:26:36]Write i2c OK [04:26:36]MH_I2C_Read... [04:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:26:36]Read from MH i2c: E2 [04:26:36]MH_I2C_Read... [04:26:36]Read from MH i2c: E2 0E 00 [04:26:36]MH_I2C_Read... [04:26:36]Read from MH i2c: E2 0E 00 EC 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 3D [04:26:36]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:26:36]wFMCommunicate OK [04:26:36]SAM_PROTO_GetShiftState done [04:26:36]FM_GetShiftState done [04:26:36]req_shift_opened done [04:26:36]requested_item shift.open_date is exist - process it [04:26:36]req_shift_open_date [04:26:36]req_shift_open_date done [04:26:36]produce_requested_data done [04:26:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72774,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [04:26:36]process_action_free close_receipt [04:26:36]json_value_free [04:26:36]json_value_free done [04:26:36]process_json_proto returns [04:26:36]Send response to host [04:28:42]Write to MH i2c: E2 12 00 F4 02 80 15 02 00 0A 00 07 04 06 00 00 00 00 00 00 00 00 00 9B [04:28:42]Write i2c OK [04:28:42]MH_I2C_Read... [04:28:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:28:42]Read from MH i2c: E2 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 F4 02 00 90 00 6A [04:28:42]RAPDU: 90 00 [04:28:42]wFMCommunicate OK [04:28:42]wFMCommunicate request_size=15 [04:28:42]MH_SAM_APDU [04:28:42]CAPDU: 80 15 02 00 0A 39 04 06 00 59 0D 03 00 00 00 [04:28:42]Write to MH i2c: E2 12 00 F5 02 80 15 02 00 0A 00 39 04 06 00 59 0D 03 00 00 00 00 00 37 [04:28:42]Write i2c OK [04:28:42]MH_I2C_Read... [04:28:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:28:42]Read from MH i2c: E2 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 F5 02 00 90 00 6B [04:28:42]RAPDU: 90 00 [04:28:42]wFMCommunicate OK [04:28:42]wFMCommunicate request_size=11 [04:28:42]MH_SAM_APDU [04:28:42]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [04:28:42]Write to MH i2c: E2 0E 00 F6 02 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 AA [04:28:42]Write i2c OK [04:28:42]MH_I2C_Read... [04:28:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:28:42]Read from MH i2c: E2 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 F6 02 00 90 00 6C [04:28:42]RAPDU: 90 00 [04:28:42]wFMCommunicate OK [04:28:42]wFMCommunicate request_size=13 [04:28:42]MH_SAM_APDU [04:28:42]CAPDU: 80 15 02 00 08 F4 03 04 00 FB B5 21 67 [04:28:42]Write to MH i2c: E2 10 00 F7 02 80 15 02 00 08 00 F4 03 04 00 FB B5 21 67 00 00 BC [04:28:42]Write i2c OK [04:28:42]MH_I2C_Read... [04:28:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:28:42]Read from MH i2c: E2 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [04:28:42]RAPDU: 90 00 [04:28:42]wFMCommunicate OK [04:28:42]wFMCommunicate request_size=25 [04:28:42]MH_SAM_APDU [04:28:42]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [04:28:42]Write to MH i2c: E2 1C 00 F8 02 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 DB [04:28:42]Write i2c OK [04:28:42]MH_I2C_Read... [04:28:42]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [04:28:42]Read from MH i2c: E2 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [04:28:42]RAPDU: 90 00 [04:28:42]wFMCommunicate OK [04:28:42]wFMCommunicate request_size=4 [04:28:42]MH_SAM_APDU [04:28:42]CAPDU: 80 15 03 00 [04:28:42]Write to MH i2c: E2 08 00 F9 02 80 15 03 00 00 00 00 00 7C [04:28:42]Write i2c OK [04:28:42]MH_I2C_Read... [04:28:42]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [04:28:42]Read from MH i2c: E2 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 40 00 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 40 00 F9 02 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 0C 00 00 00 35 04 06 00 1B 55 06 45 14 BD 90 00 9D [04:28:42]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 0C 00 00 00 35 04 06 00 1B 55 06 45 14 BD 90 00 [04:28:42]wFMCommunicate OK [04:28:42]SAM_PROTO_ProcessDocument answer len = 59 [04:28:42]SAM_PROTO_ProcessDocument done [04:28:42]SetTLVBufToDocument [04:28:42]Processing tag 1209 (04B9) [04:28:42]Malloc new data [04:28:42]Processing tag 1041 (0411) [04:28:42]Processing tag 1040 (0410) [04:28:42]Malloc new data [04:28:42]Processing tag 1038 (040E) [04:28:42]Malloc new data [04:28:42]Processing tag 1042 (0412) [04:28:42]Malloc new data [04:28:42]Processing tag 1077 (0435) [04:28:42]Malloc new data [04:28:42]SetTLVBufToDocument err=0 [04:28:42]KKMLoadAndSignReceiptData store KKM data [04:28:42]KKMLoadAndSignReceiptData err=0 [04:28:42]wFMCommunicate request_size=4 [04:28:42]MH_SAM_APDU [04:28:42]CAPDU: 80 11 00 00 [04:28:42]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [04:28:42]Write i2c OK [04:28:42]MH_I2C_Read... [04:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:42]Read from MH i2c: E2 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 17 00 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CA [04:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:28:42]wFMCommunicate OK [04:28:42]Счет N : (1)952331 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 33 Товар: 2710194210 ДТ(л)-К-5 26.250 * 76.20 = 2000.25 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 12 30.10.2024 04:28 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 72775 ФПД: 30051991360701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T042843&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72775&fm=30051991360701&tin=02508201610067®Number=0000000000091644&sum=200025 [04:28:42]StoreToDocumentArchive [04:28:42]shift 556 fd 72775 [04:28:42]save to /storage/0556/doc_00072775 [04:28:42]save last doc name /storage/0556/doc_00072775 to /storage/kkm_last_doc_name [04:28:42]save OK [04:28:42]Clear old archive folders... [04:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:28:42]tlvbuf is 01B2C1E0 [04:28:42]SAM_PROTO_ClearQueue [04:28:42]wFMCommunicate request_size=4 [04:28:42]MH_SAM_APDU [04:28:42]CAPDU: 80 09 00 00 [04:28:42]Write to MH i2c: E2 08 00 FB 02 80 09 00 00 00 00 00 00 6F [04:28:42]Write i2c OK [04:28:42]MH_I2C_Read... [04:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:28:42]Read from MH i2c: E2 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [04:28:42]RAPDU: 90 00 [04:28:42]wFMCommunicate OK [04:28:42]SAM_PROTO_ClearQueue done [04:28:42]KKMCreateOFDPacket [04:28:42]OFDProtocolAddRootSTLVToBuf [04:28:42]FM_MakeSignedData [04:28:42]FM_MakeSignedData [04:28:42]SAM_PROTO_SignData [04:28:42]wFMCommunicate request_size=4 [04:28:42]MH_SAM_APDU [04:28:42]CAPDU: 80 0D 01 02 [04:28:42]Write to MH i2c: E2 08 00 FC 02 80 0D 01 02 00 00 00 00 77 [04:28:42]Write i2c OK [04:28:42]MH_I2C_Read... [04:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:28:42]Read from MH i2c: E2 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 [04:28:42]MH_I2C_Read... [04:28:42]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [04:28:42]RAPDU: 90 00 [04:28:42]wFMCommunicate OK [04:28:42]wFMCommunicate request_size=255 [04:28:42]MH_SAM_APDU [04:28:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 FB B5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1C 01 00 35 04 06 00 [04:28:42]Write to MH i2c: E2 02 01 FD 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 FB B5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1C 01 00 35 04 06 00 00 00 DA [04:28:42]Write i2c OK [04:28:42]MH_I2C_Read... [04:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:43]Read from MH i2c: E2 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: E2 03 00 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [04:28:43]RAPDU: 90 00 [04:28:43]wFMCommunicate OK [04:28:43]wFMCommunicate request_size=11 [04:28:43]MH_SAM_APDU [04:28:43]CAPDU: 80 0D 02 02 06 1B 55 06 45 14 BD [04:28:43]Write to MH i2c: E2 0E 00 FE 02 80 0D 02 02 06 00 1B 55 06 45 14 BD 00 00 12 [04:28:43]Write i2c OK [04:28:43]MH_I2C_Read... [04:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:28:43]Read from MH i2c: E2 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: E2 03 00 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [04:28:43]RAPDU: 90 00 [04:28:43]wFMCommunicate OK [04:28:43]wFMCommunicate request_size=4 [04:28:43]MH_SAM_APDU [04:28:43]CAPDU: 80 0D 03 02 [04:28:43]Write to MH i2c: E2 08 00 FF 02 80 0D 03 02 00 00 00 00 7C [04:28:43]Write i2c OK [04:28:43]MH_I2C_Read... [04:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:28:43]Read from MH i2c: E2 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: E2 0B 00 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: E2 0B 00 FF 02 00 D7 C9 73 F6 BB 6D 30 8E 90 00 6C [04:28:43]RAPDU: D7 C9 73 F6 BB 6D 30 8E 90 00 [04:28:43]wFMCommunicate OK [04:28:43]SAM_PROTO_SignData done [04:28:43]FM_MakeSignedData done [04:28:43]CreateOFDProtocolMessage [04:28:43]wFMCommunicate request_size=4 [04:28:43]MH_SAM_APDU [04:28:43]CAPDU: 80 11 00 00 [04:28:43]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [04:28:43]Write i2c OK [04:28:43]MH_I2C_Read... [04:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:43]Read from MH i2c: E2 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: E2 17 00 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D1 [04:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:28:43]wFMCommunicate OK [04:28:43]CreateOFDProtocolMessage done [04:28:43]OFDSenderStorePacket 72775 [04:28:43]StoreOFDPacket docnum=72775 [04:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 AE 36 08 01 F8 77 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 FB B5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1C 01 00 35 04 06 00 1B 55 06 45 14 BD D7 C9 73 F6 BB 6D 30 8E [04:28:43]CheckFolder [04:28:43]dirname=/storage/ofd_packets [04:28:43]CheckFolder done [04:28:43]ProducePacketName [04:28:43]name=ofd_packets/00072775 [04:28:43]NVStorageSaveData ofd_packets/00072775 [04:28:43]File name is /storage/ofd_packets/00072775 [04:28:43]Write 302 bytes [04:28:43]NVStorageSaveData done [04:28:43]OFDSenderStorePacket done [04:28:43]KKMCreateOFDPacket done [04:28:43]NVStorageSaveData kkm_last_timestamp [04:28:43]File name is /storage/kkm_last_timestamp [04:28:43]Write 4 bytes [04:28:43]NVStorageSaveData done [04:28:43]ExternCall_PrintAddStr [04:28:43]wPrintStart [04:28:43]Write to MH i2c: 01 00 00 01 03 04 [04:28:43]Write i2c OK [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: 01 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: 01 07 00 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [04:28:43]RasterBufferAndPrint [04:28:43]line Счет N : (1)952331 [04:28:43]line ИНН: 02508201610067 [04:28:43]line Контрольно-Кассовый Чек [04:28:43]line ПРОДАЖА [04:28:43]line ТРК (МРК, ГНК) : 33 [04:28:43]line Товар: 2710194210 [04:28:43]line ДТ(л)-К-5 [04:28:43]line 26.250 * 76.20 [04:28:43]line = 2000.25 [04:28:43]line НДС 12% НСП 1% [04:28:43]line > о реализуемом товаре [04:28:43]line ИТОГО: 2000.25 [04:28:43]line НСП 1% : 17.70 [04:28:43]line НДС 12% : 212.42 [04:28:43]line Наличными: 0.00 [04:28:43]line Безнал.: 2000.25 [04:28:43]line Место: АЗС № 113 "Партнер Нефть" [04:28:43]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:28:43]line СНО: Общий режим [04:28:43]line Чек 12 30.10.2024 04:28 [04:28:43]line Смена: 556 ФФД: 1.0 [04:28:43]line ЗНМ: 0300000087 [04:28:43]line РНМ: 0000000000091644 [04:28:43]line Версия ККМ: 001 [04:28:43]line Платежная система: Бакай банк [04:28:43]line ФМ: 0000000000874662 [04:28:43]line ФД: 72775 [04:28:43]line ФПД: 30051991360701 [04:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T042843&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72775&fm=30051991360701&tin=02508201610067®Number=0000000000091644&sum=200025 [04:28:43]OFD Sender: Processing packet 72775 [packets to send 278, broken 277] [04:28:43]ProducePacketName [04:28:43]name=ofd_packets/00072775 [04:28:43]OFD Sender: To server: pG, [04:28:43]CommunicateWithHost lk.salyk.kg:30040 [04:28:43]ConnectInit lk.salyk.kg [04:28:43]written 0, free lines is 4095 [04:28:43]Write to MH i2c: 01 00 00 2B 03 2E [04:28:43]Write i2c OK [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: 01 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: 01 07 00 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: 01 07 00 2B 03 00 00 00 00 00 EE 0C 2F [04:28:43]RasterBufferAndPrint [04:28:43]line [04:28:43]line [04:28:43]line [04:28:43]line [04:28:43]line [04:28:43]written 0, free lines is 3319 [04:28:43]MH_Cut [04:28:43]Write to MH i2c: D1 01 00 32 03 01 07 [04:28:43]Write i2c OK [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: D1 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: D1 01 00 [04:28:43]MH_I2C_Read... [04:28:43]Read from MH i2c: D1 01 00 32 03 00 06 [04:28:43]Write to MH i2c: 01 00 00 33 03 36 [04:28:43]Write i2c OK [04:28:43]MH_I2C_Read... [04:28:44]Connected sock=11 [04:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 AE 36 08 01 F8 77 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 FB B5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1C 01 00 35 04 06 00 1B 55 06 45 14 BD D7 C9 73 F6 BB 6D 30 8E [04:28:44]*** Cut start [04:28:44]*** Partial cut [04:28:44]*** CUTSNS_PIN = 1 [04:28:44]*** CUTSNS_PIN = 0 [04:28:44]*** Brake cut motor [04:28:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FA 27 47 00 AC 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1C 01 00 F4 03 04 00 B5 60 21 67 B6 04 01 00 00 3E BF C6 6F 5B CA 98 60 [04:28:45]CommunicateWithHost err = 0 [04:28:45]CheckOFDResponse [04:28:45]1017 (14) - 77093643461234 [04:28:45]1041 (16) - 0000000000874662 [04:28:45]1040 (4) - 72775 [04:28:45]1012 (4) - 29.10.2024 22:24 [04:28:45]1206 (1) - 0 [04:28:45]OFD Sender: Remove packet 72775 [04:28:45]ProducePacketName [04:28:45]name=ofd_packets/00072775 [04:28:45]NVStorageDeleteData [04:28:45]Read from MH i2c: 01 [04:28:45]MH_I2C_Read... [04:28:45]*** Stop cut motor [04:28:45]*** Cut end [04:28:45]Read from MH i2c: 01 07 00 [04:28:45]MH_I2C_Read... [04:28:45]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 FF 0F 4B [04:28:45]process_action close_receipt done [04:28:45]requested_data is exist [04:28:45]produce_requested_data [04:28:45]requested_item fm.sn is exist - process it [04:28:45]wFMCommunicate request_size=4 [04:28:45]MH_SAM_APDU [04:28:45]CAPDU: 80 11 00 00 [04:28:45]Write to MH i2c: E2 08 00 34 03 80 11 00 00 00 00 00 00 B1 [04:28:45]Write i2c OK [04:28:45]MH_I2C_Read... [04:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:28:45]Read from MH i2c: E2 [04:28:45]MH_I2C_Read... [04:28:45]Read from MH i2c: E2 17 00 [04:28:45]MH_I2C_Read... [04:28:45]Read from MH i2c: E2 17 00 34 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 05 [04:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:28:45]wFMCommunicate OK [04:28:45]requested_item fd.num is exist - process it [04:28:45]SAM_PROTO_GetFieldsCounters [04:28:45]wFMCommunicate request_size=4 [04:28:45]MH_SAM_APDU [04:28:45]CAPDU: 80 13 00 00 [04:28:45]Write to MH i2c: E2 08 00 35 03 80 13 00 00 00 00 00 00 B4 [04:28:45]Write i2c OK [04:28:45]MH_I2C_Read... [04:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:28:45]Read from MH i2c: E2 [04:28:45]MH_I2C_Read... [04:28:45]Read from MH i2c: E2 62 00 [04:28:45]MH_I2C_Read... [04:28:45]Read from MH i2c: E2 62 00 35 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 47 1C 01 00 0E 04 04 00 2C 02 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 8B [04:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 47 1C 01 00 0E 04 04 00 2C 02 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 [04:28:45]wFMCommunicate OK [04:28:45]SAM_PROTO_GetFieldsCounters done [04:28:45]requested_item shift.num is exist - process it [04:28:45]requested_item shift.opened is exist - process it [04:28:45]req_shift_opened [04:28:45]FM_GetShiftState [04:28:45]SAM_PROTO_GetShiftState [04:28:45]wFMCommunicate request_size=4 [04:28:45]MH_SAM_APDU [04:28:45]CAPDU: 80 13 01 00 [04:28:45]Write to MH i2c: E2 08 00 36 03 80 13 01 00 00 00 00 00 B6 [04:28:45]Write i2c OK [04:28:45]MH_I2C_Read... [04:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:28:45]Read from MH i2c: E2 [04:28:45]MH_I2C_Read... [04:28:45]Read from MH i2c: E2 0E 00 [04:28:45]MH_I2C_Read... [04:28:45]Read from MH i2c: E2 0E 00 36 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 88 [04:28:45]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:28:45]wFMCommunicate OK [04:28:45]SAM_PROTO_GetShiftState done [04:28:45]FM_GetShiftState done [04:28:45]req_shift_opened done [04:28:45]requested_item shift.open_date is exist - process it [04:28:45]req_shift_open_date [04:28:45]req_shift_open_date done [04:28:45]produce_requested_data done [04:28:45]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72775,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [04:28:45]process_action_free close_receipt [04:28:45]json_value_free [04:28:45]json_value_free done [04:28:45]process_json_proto returns [04:28:45]Send response to host [04:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72775,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [04:28:45]free response buf [04:28:45]execute_script done [04:28:45]execute_script returns [04:28:45]free content buf [04:28:45]Sock 10.Close socket [04:28:45]Sock 10.Thread stoped [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:16]ConnectInit Can't connect to host [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:26]recv_with_timeout no data received [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: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:44]ConnectInit Can't connect to host [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:54]recv_with_timeout no data received [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:06]recv_with_timeout no data received [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:19]recv_with_timeout no data received [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:22]recv_with_timeout no data received [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:35]recv_with_timeout no data received [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:25]recv_with_timeout no data received [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:53]recv_with_timeout no data received [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:04]recv_with_timeout no data received [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:26]recv_with_timeout no data received [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:18]recv_with_timeout no data received [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:38:58]recv_with_timeout no data received [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:19]recv_with_timeout no data received [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:27]accept exits with 9 [04:40:27]New connection [04:40:27]New thread 3066969444 created [04:40:27]Thread 3067112804 joined [04:40:27]Waiting for new connection... [04:40:27] Sock 9.Parse request [04:40:27]Sock 9.Check first char [04:40:27]Sock 9.First char is OK [04:40:27]request: POST /json_proto HTTP/1.0 [04:40:27]Method: POST [04:40:27]URL: /json_proto [04:40:27]Method is POST - this is cgi request [04:40:27]url: /json_proto [04:40:27]query_string will be loaded in cgi processing [04:40:27]execute_cgi json_proto POST (null) [04:40:27]execute_cgi path=json_proto method=POST [04:40:27]POST find Content-Length [04:40:27]Host: 172.17.43.195:8080 [04:40:27]Content-Length: 792 [04:40:27]Content-Type: application/json [04:40:27] [04:40:27]POST finish read [04:40:27]Found Content-Length = 792 [04:40:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:27]execute_script... [04:40:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:27]POST & json_proto [04:40:27]process_json_proto [04:40:27]json parsed OK: [04:40:27]protocol is kg_v1.0 [04:40:27]action value=close_receipt [04:40:27]process_action close_receipt [04:40:27]cmd_close_receipt [04:40:27]MH_GetDate [04:40:27]Write to MH i2c: F0 00 00 37 03 29 [04:40:27]Write i2c OK [04:40:27]MH_I2C_Read... [04:40:27]Read from MH i2c: F0 [04:40:27]MH_I2C_Read... [04:40:27]Read from MH i2c: F0 09 00 [04:40:27]MH_I2C_Read... [04:40:27]Read from MH i2c: F0 09 00 37 03 00 BD B8 21 67 74 2C AD 66 E2 [04:40:27]GetLastDocTimeStamp 1730262523 [04:40:27]current date 1730263229 [04:40:27]FM_GetShiftState [04:40:27]SAM_PROTO_GetShiftState [04:40:27]wFMCommunicate request_size=4 [04:40:27]MH_SAM_APDU [04:40:27]CAPDU: 80 13 01 00 [04:40:27]Write to MH i2c: E2 08 00 38 03 80 13 01 00 00 00 00 00 B8 [04:40:27]Write i2c OK [04:40:27]MH_I2C_Read... [04:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:27]Read from MH i2c: E2 [04:40:27]MH_I2C_Read... [04:40:27]Read from MH i2c: E2 0E 00 [04:40:27]MH_I2C_Read... [04:40:27]Read from MH i2c: E2 0E 00 38 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 8A [04:40:27]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:40:27]wFMCommunicate OK [04:40:27]SAM_PROTO_GetShiftState done [04:40:27]FM_GetShiftState done [04:40:27]opened in 1730247109 [04:40:27]opened+sec_in_day 1730333509 [04:40:27]quantity*price = 0 [04:40:27]sum+1 = 1 [04:40:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 13 30.10.2024 04:40 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72776 ФПД: 16711456727535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T044029&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72776&fm=16711456727535&tin=02508201610067®Number=0000000000091644&sum=0 [04:40:29]StoreToDocumentArchive [04:40:29]shift 556 fd 72776 [04:40:29]save to /storage/0556/doc_00072776 [04:40:29]save last doc name /storage/0556/doc_00072776 to /storage/kkm_last_doc_name [04:40:29]save OK [04:40:29]Clear old archive folders... [04:40:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:40:29]tlvbuf is 01B2DE30 [04:40:29]SAM_PROTO_ClearQueue [04:40:29]wFMCommunicate request_size=4 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 09 00 00 [04:40:29]Write to MH i2c: E2 08 00 45 03 80 09 00 00 00 00 00 00 BA [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [04:40:29]RAPDU: 90 00 [04:40:29]wFMCommunicate OK [04:40:29]SAM_PROTO_ClearQueue done [04:40:29]KKMCreateOFDPacket [04:40:29]OFDProtocolAddRootSTLVToBuf [04:40:29]FM_MakeSignedData [04:40:29]FM_MakeSignedData [04:40:29]SAM_PROTO_SignData [04:40:29]wFMCommunicate request_size=4 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 0D 01 02 [04:40:29]Write to MH i2c: E2 08 00 46 03 80 0D 01 02 00 00 00 00 C2 [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 46 03 00 90 00 BD [04:40:29]RAPDU: 90 00 [04:40:29]wFMCommunicate OK [04:40:29]wFMCommunicate request_size=255 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 0D 00 00 00 F4 03 04 00 BD B8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1C 01 00 35 04 06 00 0F [04:40:29]Write to MH i2c: E2 02 01 47 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 66 3A 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 0D 00 00 00 F4 03 04 00 BD B8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1C 01 00 35 04 06 00 0F 00 00 18 [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 47 03 00 90 00 BE [04:40:29]RAPDU: 90 00 [04:40:29]wFMCommunicate OK [04:40:29]wFMCommunicate request_size=10 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 0D 02 02 05 32 F0 71 21 EF [04:40:29]Write to MH i2c: E2 0D 00 48 03 80 0D 02 02 05 00 32 F0 71 21 EF 00 00 72 [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [04:40:29]RAPDU: 90 00 [04:40:29]wFMCommunicate OK [04:40:29]wFMCommunicate request_size=4 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 0D 03 02 [04:40:29]Write to MH i2c: E2 08 00 49 03 80 0D 03 02 00 00 00 00 C7 [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 0B 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 0B 00 49 03 00 EC 38 DA 22 C0 87 6C 9F 90 00 3A [04:40:29]RAPDU: EC 38 DA 22 C0 87 6C 9F 90 00 [04:40:29]wFMCommunicate OK [04:40:29]SAM_PROTO_SignData done [04:40:29]FM_MakeSignedData done [04:40:29]CreateOFDProtocolMessage [04:40:29]wFMCommunicate request_size=4 [04:40:29]MH_SAM_APDU [04:40:29]CAPDU: 80 11 00 00 [04:40:29]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:29]Read from MH i2c: E2 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 17 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1B [04:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:40:29]wFMCommunicate OK [04:40:29]CreateOFDProtocolMessage done [04:40:29]OFDSenderStorePacket 72776 [04:40:29]StoreOFDPacket docnum=72776 [04:40:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 09 CF 07 01 3C DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 0D 00 00 00 F4 03 04 00 BD B8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1C 01 00 35 04 06 00 0F 32 F0 71 21 EF EC 38 DA 22 C0 87 6C 9F [04:40:29]CheckFolder [04:40:29]dirname=/storage/ofd_packets [04:40:29]CheckFolder done [04:40:29]ProducePacketName [04:40:29]name=ofd_packets/00072776 [04:40:29]NVStorageSaveData ofd_packets/00072776 [04:40:29]File name is /storage/ofd_packets/00072776 [04:40:29]Write 301 bytes [04:40:29]NVStorageSaveData done [04:40:29]OFDSenderStorePacket done [04:40:29]KKMCreateOFDPacket done [04:40:29]NVStorageSaveData kkm_last_timestamp [04:40:29]File name is /storage/kkm_last_timestamp [04:40:29]Write 4 bytes [04:40:29]NVStorageSaveData done [04:40:29]ExternCall_PrintAddStr [04:40:29]wPrintStart [04:40:29]Write to MH i2c: 01 00 00 4B 03 4E [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: 01 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: 01 07 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 FF 0F 63 [04:40:29]RasterBufferAndPrint [04:40:29]line Счет N : (1)952333 [04:40:29]line ИНН: 02508201610067 [04:40:29]line Контрольно-Кассовый Чек [04:40:29]line ПРОДАЖА [04:40:29]line ТРК (МРК, ГНК) : 63 [04:40:29]line Товар: 2710124130 [04:40:29]line Аи-92-К-5 [04:40:29]line 14.950 * 0.00 [04:40:29]line = 0.00 [04:40:29]line НДС 12% НСП 1% [04:40:29]line > о реализуемом товаре [04:40:29]line ИТОГО: 0.00 [04:40:29]line НСП 1% : 0.00 [04:40:29]line НДС 12% : 0.00 [04:40:29]line Наличными: 0.00 [04:40:29]line Безнал.: 0.00 [04:40:29]line Место: АЗС № 113 "Партнер Нефть" [04:40:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:40:29]line СНО: Общий режим [04:40:29]line Чек 13 30.10.2024 04:40 [04:40:29]line Смена: 556 ФФД: 1.0 [04:40:29]line ЗНМ: 0300000087 [04:40:29]line РНМ: 0000000000091644 [04:40:29]line Версия ККМ: 001 [04:40:29]line Талоны: Топливная Карта [04:40:29]line 03047 [04:40:29]line ФМ: 0000000000874662 [04:40:29]line ФД: 72776 [04:40:29]line ФПД: 16711456727535 [04:40:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T044029&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72776&fm=16711456727535&tin=02508201610067®Number=0000000000091644&sum=0 [04:40:29]written 0, free lines is 4095 [04:40:29]OFD Sender: Processing packet 72776 [packets to send 278, broken 277] [04:40:29]ProducePacketName [04:40:29]name=ofd_packets/00072776 [04:40:29]OFD Sender: To server: pG, [04:40:29]CommunicateWithHost lk.salyk.kg:30040 [04:40:29]ConnectInit lk.salyk.kg [04:40:29]Write to MH i2c: 01 00 00 75 03 78 [04:40:29]Write i2c OK [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: 01 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: 01 07 00 [04:40:29]MH_I2C_Read... [04:40:29]Read from MH i2c: 01 07 00 75 03 00 00 00 00 00 E6 0C 71 [04:40:29]RasterBufferAndPrint [04:40:29]line [04:40:29]line [04:40:29]line [04:40:29]line [04:40:29]line [04:40:30]written 0, free lines is 3309 [04:40:30]MH_Cut [04:40:30]Write to MH i2c: D1 01 00 7C 03 01 51 [04:40:30]Write i2c OK [04:40:30]MH_I2C_Read... [04:40:30]Read from MH i2c: D1 [04:40:30]MH_I2C_Read... [04:40:30]Read from MH i2c: D1 01 00 [04:40:30]MH_I2C_Read... [04:40:30]Read from MH i2c: D1 01 00 7C 03 00 50 [04:40:30]Write to MH i2c: 01 00 00 7D 03 80 [04:40:30]Write i2c OK [04:40:30]MH_I2C_Read... [04:40:30]*** Cut start [04:40:30]*** Partial cut [04:40:30]*** CUTSNS_PIN = 1 [04:40:30]*** CUTSNS_PIN = 0 [04:40:31]*** Brake cut motor [04:40:31]Read from MH i2c: 01 [04:40:31]MH_I2C_Read... [04:40:31]*** Stop cut motor [04:40:31]*** Cut end [04:40:31]Read from MH i2c: 01 07 00 [04:40:31]MH_I2C_Read... [04:40:31]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 FF 0F 95 [04:40:31]process_action close_receipt done [04:40:31]requested_data is exist [04:40:31]produce_requested_data [04:40:31]requested_item fm.sn is exist - process it [04:40:31]wFMCommunicate request_size=4 [04:40:31]MH_SAM_APDU [04:40:31]CAPDU: 80 11 00 00 [04:40:31]Write to MH i2c: E2 08 00 7E 03 80 11 00 00 00 00 00 00 FB [04:40:31]Write i2c OK [04:40:31]MH_I2C_Read... [04:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:31]Read from MH i2c: E2 [04:40:31]MH_I2C_Read... [04:40:31]Read from MH i2c: E2 17 00 [04:40:31]MH_I2C_Read... [04:40:31]Read from MH i2c: E2 17 00 7E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 4F [04:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:40:31]wFMCommunicate OK [04:40:31]requested_item fd.num is exist - process it [04:40:31]SAM_PROTO_GetFieldsCounters [04:40:31]wFMCommunicate request_size=4 [04:40:31]MH_SAM_APDU [04:40:31]CAPDU: 80 13 00 00 [04:40:31]Write to MH i2c: E2 08 00 7F 03 80 13 00 00 00 00 00 00 FE [04:40:31]Write i2c OK [04:40:31]MH_I2C_Read... [04:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:31]Read from MH i2c: E2 [04:40:31]MH_I2C_Read... [04:40:31]Read from MH i2c: E2 62 00 [04:40:31]MH_I2C_Read... [04:40:31]Read from MH i2c: E2 62 00 7F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 48 1C 01 00 0E 04 04 00 2C 02 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 D9 [04:40:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 48 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:40:31]wFMCommunicate OK [04:40:31]SAM_PROTO_GetFieldsCounters done [04:40:31]requested_item shift.num is exist - process it [04:40:31]requested_item shift.opened is exist - process it [04:40:31]req_shift_opened [04:40:31]FM_GetShiftState [04:40:31]SAM_PROTO_GetShiftState [04:40:31]wFMCommunicate request_size=4 [04:40:31]MH_SAM_APDU [04:40:31]CAPDU: 80 13 01 00 [04:40:31]Write to MH i2c: E2 08 00 80 03 80 13 01 00 00 00 00 00 00 [04:40:31]Write i2c OK [04:40:31]MH_I2C_Read... [04:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:31]Read from MH i2c: E2 [04:40:31]MH_I2C_Read... [04:40:31]Read from MH i2c: E2 0E 00 [04:40:31]MH_I2C_Read... [04:40:31]Read from MH i2c: E2 0E 00 80 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 D2 [04:40:31]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:40:31]wFMCommunicate OK [04:40:31]SAM_PROTO_GetShiftState done [04:40:31]FM_GetShiftState done [04:40:31]req_shift_opened done [04:40:31]requested_item shift.open_date is exist - process it [04:40:31]req_shift_open_date [04:40:31]req_shift_open_date done [04:40:31]produce_requested_data done [04:40:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72776,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [04:40:31]process_action_free close_receipt [04:40:31]json_value_free [04:40:31]json_value_free done [04:40:31]process_json_proto returns [04:40:31]Send response to host [04:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72776,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [04:40:31]free response buf [04:40:31]execute_script done [04:40:31]execute_script returns [04:40:31]free content buf [04:40:31]Sock 9.Close socket [04:40:31]Sock 9.Thread stoped [04:40:34]ConnectInit Can't take IP for lk.salyk.kg [04:40:34]CommunicateWithHost connect error [04:40:34]CommunicateWithHost err = -1 [04:40:34]OFD Sender: Server communicate error [04:40:39]OFD Sender: Processing packet 72776 [packets to send 278, broken 277] [04:40:39]ProducePacketName [04:40:39]name=ofd_packets/00072776 [04:40:39]OFD Sender: To server: pG, [04:40:39]CommunicateWithHost lk.salyk.kg:30040 [04:40:39]ConnectInit lk.salyk.kg [04:40:41]Connected sock=7 [04:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 09 CF 07 01 3C DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 0D 00 00 00 F4 03 04 00 BD B8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1C 01 00 35 04 06 00 0F 32 F0 71 21 EF EC 38 DA 22 C0 87 6C 9F [04:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A4 07 47 00 34 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1C 01 00 F4 03 04 00 85 63 21 67 B6 04 01 00 00 F1 09 AF 44 86 11 24 C0 [04:40:45]CommunicateWithHost err = 0 [04:40:45]CheckOFDResponse [04:40:45]1017 (14) - 77093643461234 [04:40:45]1041 (16) - 0000000000874662 [04:40:45]1040 (4) - 72776 [04:40:45]1012 (4) - 29.10.2024 22:36 [04:40:45]1206 (1) - 0 [04:40:45]OFD Sender: Remove packet 72776 [04:40:45]ProducePacketName [04:40:45]name=ofd_packets/00072776 [04:40:45]NVStorageDeleteData [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:02]recv_with_timeout no data received [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:11]accept exits with 10 [04:41:11]New connection [04:41:11]New thread 3067112804 created [04:41:11]Thread 3066969444 joined [04:41:11]Waiting for new connection... [04:41:11] Sock 10.Parse request [04:41:11]Sock 10.Check first char [04:41:11]Sock 10.First char is OK [04:41:11]request: POST /json_proto HTTP/1.0 [04:41:11]Method: POST [04:41:11]URL: /json_proto [04:41:11]Method is POST - this is cgi request [04:41:11]url: /json_proto [04:41:11]query_string will be loaded in cgi processing [04:41:11]execute_cgi json_proto POST (null) [04:41:11]execute_cgi path=json_proto method=POST [04:41:11]POST find Content-Length [04:41:11]Host: 172.17.43.195:8080 [04:41:11]Content-Length: 685 [04:41:11]Content-Type: application/json [04:41:11] [04:41:11]POST finish read [04:41:11]Found Content-Length = 685 [04:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:41:11]execute_script... [04:41:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:41:11]POST & json_proto [04:41:11]process_json_proto [04:41:11]json parsed OK: [04:41:11]protocol is kg_v1.0 [04:41:11]action value=close_receipt [04:41:11]process_action close_receipt [04:41:11]cmd_close_receipt [04:41:11]MH_GetDate [04:41:11]Write to MH i2c: F0 00 00 81 03 73 [04:41:11]Write i2c OK [04:41:11]MH_I2C_Read... [04:41:11]Read from MH i2c: F0 [04:41:11]MH_I2C_Read... [04:41:11]Read from MH i2c: F0 09 00 [04:41:11]MH_I2C_Read... [04:41:11]Read from MH i2c: F0 09 00 81 03 00 E9 B8 21 67 74 2C AD 66 58 [04:41:11]GetLastDocTimeStamp 1730263229 [04:41:11]current date 1730263273 [04:41:11]FM_GetShiftState [04:41:11]SAM_PROTO_GetShiftState [04:41:11]wFMCommunicate request_size=4 [04:41:11]MH_SAM_APDU [04:41:11]CAPDU: 80 13 01 00 [04:41:11]Write to MH i2c: E2 08 00 82 03 80 13 01 00 00 00 00 00 02 [04:41:11]Write i2c OK [04:41:11]MH_I2C_Read... [04:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:11]Read from MH i2c: E2 [04:41:11]MH_I2C_Read... [04:41:11]Read from MH i2c: E2 0E 00 [04:41:11]MH_I2C_Read... [04:41:11]Read from MH i2c: E2 0E 00 82 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 D4 [04:41:11]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:41:11]wFMCommunicate OK [04:41:11]SAM_PROTO_GetShiftState done [04:41:11]FM_GetShiftState done [04:41:11]opened in 1730247109 [04:41:11]opened+sec_in_day 1730333509 [04:41:11]quantity*price = 100011 [04:41:11]sum+1 = 100013 [04:41:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 14 30.10.2024 04:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72777 ФПД: 260840835138919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T044113&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72777&fm=260840835138919&tin=02508201610067®Number=0000000000091644&sum=100000 [04:41:12]StoreToDocumentArchive [04:41:12]shift 556 fd 72777 [04:41:12]save to /storage/0556/doc_00072777 [04:41:12]save last doc name /storage/0556/doc_00072777 to /storage/kkm_last_doc_name [04:41:12]save OK [04:41:12]Clear old archive folders... [04:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:41:12]tlvbuf is 01AD3330 [04:41:12]SAM_PROTO_ClearQueue [04:41:12]wFMCommunicate request_size=4 [04:41:12]MH_SAM_APDU [04:41:12]CAPDU: 80 09 00 00 [04:41:12]Write to MH i2c: E2 08 00 8F 03 80 09 00 00 00 00 00 00 04 [04:41:12]Write i2c OK [04:41:12]MH_I2C_Read... [04:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:41:12]Read from MH i2c: E2 [04:41:12]MH_I2C_Read... [04:41:12]Read from MH i2c: E2 03 00 [04:41:12]MH_I2C_Read... [04:41:12]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [04:41:12]RAPDU: 90 00 [04:41:12]wFMCommunicate OK [04:41:12]SAM_PROTO_ClearQueue done [04:41:12]KKMCreateOFDPacket [04:41:12]OFDProtocolAddRootSTLVToBuf [04:41:12]FM_MakeSignedData [04:41:12]FM_MakeSignedData [04:41:12]SAM_PROTO_SignData [04:41:12]wFMCommunicate request_size=4 [04:41:12]MH_SAM_APDU [04:41:12]CAPDU: 80 0D 01 02 [04:41:12]Write to MH i2c: E2 08 00 90 03 80 0D 01 02 00 00 00 00 0C [04:41:12]Write i2c OK [04:41:12]MH_I2C_Read... [04:41:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:41:13]Read from MH i2c: E2 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: E2 03 00 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [04:41:13]RAPDU: 90 00 [04:41:13]wFMCommunicate OK [04:41:13]wFMCommunicate request_size=255 [04:41:13]MH_SAM_APDU [04:41:13]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E9 B8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1C 01 00 35 04 06 00 ED 3B [04:41:13]Write to MH i2c: E2 02 01 91 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E9 B8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1C 01 00 35 04 06 00 ED 3B 00 00 60 [04:41:13]Write i2c OK [04:41:13]MH_I2C_Read... [04:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:13]Read from MH i2c: E2 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: E2 03 00 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [04:41:13]RAPDU: 90 00 [04:41:13]wFMCommunicate OK [04:41:13]wFMCommunicate request_size=9 [04:41:13]MH_SAM_APDU [04:41:13]CAPDU: 80 0D 02 02 04 BD 52 45 67 [04:41:13]Write to MH i2c: E2 0C 00 92 03 80 0D 02 02 04 00 BD 52 45 67 00 00 D2 [04:41:13]Write i2c OK [04:41:13]MH_I2C_Read... [04:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:13]Read from MH i2c: E2 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: E2 03 00 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: E2 03 00 92 03 00 90 00 09 [04:41:13]RAPDU: 90 00 [04:41:13]wFMCommunicate OK [04:41:13]wFMCommunicate request_size=4 [04:41:13]MH_SAM_APDU [04:41:13]CAPDU: 80 0D 03 02 [04:41:13]Write to MH i2c: E2 08 00 93 03 80 0D 03 02 00 00 00 00 11 [04:41:13]Write i2c OK [04:41:13]MH_I2C_Read... [04:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:41:13]Read from MH i2c: E2 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: E2 0B 00 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: E2 0B 00 93 03 00 2E 6A F9 E9 B4 B1 F4 1C 90 00 01 [04:41:13]RAPDU: 2E 6A F9 E9 B4 B1 F4 1C 90 00 [04:41:13]wFMCommunicate OK [04:41:13]SAM_PROTO_SignData done [04:41:13]FM_MakeSignedData done [04:41:13]CreateOFDProtocolMessage [04:41:13]wFMCommunicate request_size=4 [04:41:13]MH_SAM_APDU [04:41:13]CAPDU: 80 11 00 00 [04:41:13]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [04:41:13]Write i2c OK [04:41:13]MH_I2C_Read... [04:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:13]Read from MH i2c: E2 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: E2 17 00 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 65 [04:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:41:13]wFMCommunicate OK [04:41:13]CreateOFDProtocolMessage done [04:41:13]OFDSenderStorePacket 72777 [04:41:13]StoreOFDPacket docnum=72777 [04:41:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 58 06 06 01 35 33 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E9 B8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1C 01 00 35 04 06 00 ED 3B BD 52 45 67 2E 6A F9 E9 B4 B1 F4 1C [04:41:13]CheckFolder [04:41:13]dirname=/storage/ofd_packets [04:41:13]CheckFolder done [04:41:13]ProducePacketName [04:41:13]name=ofd_packets/00072777 [04:41:13]NVStorageSaveData ofd_packets/00072777 [04:41:13]File name is /storage/ofd_packets/00072777 [04:41:13]Write 300 bytes [04:41:13]NVStorageSaveData done [04:41:13]OFDSenderStorePacket done [04:41:13]KKMCreateOFDPacket done [04:41:13]NVStorageSaveData kkm_last_timestamp [04:41:13]File name is /storage/kkm_last_timestamp [04:41:13]Write 4 bytes [04:41:13]NVStorageSaveData done [04:41:13]ExternCall_PrintAddStr [04:41:13]wPrintStart [04:41:13]Write to MH i2c: 01 00 00 95 03 98 [04:41:13]Write i2c OK [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: 01 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: 01 07 00 [04:41:13]MH_I2C_Read... [04:41:13]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [04:41:13]RasterBufferAndPrint [04:41:13]line Счет N : (1)952332 [04:41:13]line ИНН: 02508201610067 [04:41:13]line Контрольно-Кассовый Чек [04:41:13]line ПРОДАЖА [04:41:13]line ТРК (МРК, ГНК) : 71 [04:41:13]line Товар: 2711190000 [04:41:13]line ГАЗ-К-3 [04:41:13]line 25.710 * 38.90 [04:41:13]line = 1000.12 [04:41:13]line НДС 12% НСП 1% [04:41:13]line > о реализуемом товаре [04:41:13]line ОКРУГЛЕНИЕ: -0.12 [04:41:13]line ИТОГО: 1000.00 [04:41:13]line Внесено: 1000.00 [04:41:13]line СДАЧА: 0.00 [04:41:13]line НСП 1% : 8.85 [04:41:13]line НДС 12% : 106.21 [04:41:13]line Наличными: 1000.00 [04:41:13]line Безнал.: 0.00 [04:41:13]line Место: АЗС № 113 "Партнер Нефть" [04:41:13]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:41:13]line СНО: Общий режим [04:41:13]line Чек 14 30.10.2024 04:41 [04:41:13]line Смена: 556 ФФД: 1.0 [04:41:13]line ЗНМ: 0300000087 [04:41:13]line РНМ: 0000000000091644 [04:41:13]line Версия ККМ: 001 [04:41:13]line ФМ: 0000000000874662 [04:41:13]line ФД: 72777 [04:41:13]line ФПД: 260840835138919 [04:41:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T044113&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72777&fm=260840835138919&tin=02508201610067®Number=0000000000091644&sum=100000 [04:41:13]OFD Sender: Processing packet 72777 [packets to send 278, broken 277] [04:41:13]ProducePacketName [04:41:13]name=ofd_packets/00072777 [04:41:13]OFD Sender: To server: pG, [04:41:13]CommunicateWithHost lk.salyk.kg:30040 [04:41:13]ConnectInit lk.salyk.kg [04:41:13]written 0, free lines is 4095 [04:41:14]Write to MH i2c: 01 00 00 C0 03 C3 [04:41:14]Write i2c OK [04:41:14]MH_I2C_Read... [04:41:14]Read from MH i2c: 01 [04:41:14]MH_I2C_Read... [04:41:14]Read from MH i2c: 01 07 00 [04:41:14]MH_I2C_Read... [04:41:14]Read from MH i2c: 01 07 00 C0 03 00 00 00 00 00 D6 0C AC [04:41:14]RasterBufferAndPrint [04:41:14]line [04:41:14]line [04:41:14]line [04:41:14]line [04:41:14]line [04:41:14]written 0, free lines is 3294 [04:41:14]MH_Cut [04:41:14]Write to MH i2c: D1 01 00 C7 03 01 9C [04:41:14]Write i2c OK [04:41:14]MH_I2C_Read... [04:41:14]Read from MH i2c: D1 [04:41:14]MH_I2C_Read... [04:41:14]Read from MH i2c: D1 01 00 [04:41:14]MH_I2C_Read... [04:41:14]Read from MH i2c: D1 01 00 C7 03 00 9B [04:41:14]Write to MH i2c: 01 00 00 C8 03 CB [04:41:14]Write i2c OK [04:41:14]MH_I2C_Read... [04:41:14]Connected sock=7 [04:41:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 58 06 06 01 35 33 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E9 B8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1C 01 00 35 04 06 00 ED 3B BD 52 45 67 2E 6A F9 E9 B4 B1 F4 1C [04:41:14]*** Cut start [04:41:14]*** Partial cut [04:41:14]*** CUTSNS_PIN = 1 [04:41:15]*** CUTSNS_PIN = 0 [04:41:15]*** Brake cut motor [04:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8F A8 47 00 E6 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1C 01 00 F4 03 04 00 A3 63 21 67 B6 04 01 00 00 7D 35 78 B0 08 1E 12 54 [04:41:15]CommunicateWithHost err = 0 [04:41:15]CheckOFDResponse [04:41:15]1017 (14) - 77093643461234 [04:41:15]1041 (16) - 0000000000874662 [04:41:15]1040 (4) - 72777 [04:41:15]1012 (4) - 29.10.2024 22:37 [04:41:15]1206 (1) - 0 [04:41:15]OFD Sender: Remove packet 72777 [04:41:15]ProducePacketName [04:41:15]name=ofd_packets/00072777 [04:41:15]NVStorageDeleteData [04:41:15]Read from MH i2c: 01 [04:41:15]MH_I2C_Read... [04:41:15]*** Stop cut motor [04:41:15]*** Cut end [04:41:15]Read from MH i2c: 01 07 00 [04:41:15]MH_I2C_Read... [04:41:15]Read from MH i2c: 01 07 00 C8 03 00 00 00 00 00 FF 0F E0 [04:41:15]process_action close_receipt done [04:41:15]requested_data is exist [04:41:15]produce_requested_data [04:41:15]requested_item fm.sn is exist - process it [04:41:15]wFMCommunicate request_size=4 [04:41:15]MH_SAM_APDU [04:41:15]CAPDU: 80 11 00 00 [04:41:15]Write to MH i2c: E2 08 00 C9 03 80 11 00 00 00 00 00 00 46 [04:41:15]Write i2c OK [04:41:15]MH_I2C_Read... [04:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:15]Read from MH i2c: E2 [04:41:15]MH_I2C_Read... [04:41:15]Read from MH i2c: E2 17 00 [04:41:15]MH_I2C_Read... [04:41:15]Read from MH i2c: E2 17 00 C9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9A [04:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:41:15]wFMCommunicate OK [04:41:15]requested_item fd.num is exist - process it [04:41:15]SAM_PROTO_GetFieldsCounters [04:41:15]wFMCommunicate request_size=4 [04:41:15]MH_SAM_APDU [04:41:15]CAPDU: 80 13 00 00 [04:41:15]Write to MH i2c: E2 08 00 CA 03 80 13 00 00 00 00 00 00 49 [04:41:15]Write i2c OK [04:41:15]MH_I2C_Read... [04:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:41:15]Read from MH i2c: E2 [04:41:15]MH_I2C_Read... [04:41:15]Read from MH i2c: E2 62 00 [04:41:15]MH_I2C_Read... [04:41:15]Read from MH i2c: E2 62 00 CA 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 49 1C 01 00 0E 04 04 00 2C 02 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 28 [04:41:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 49 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:41:15]wFMCommunicate OK [04:41:15]SAM_PROTO_GetFieldsCounters done [04:41:15]requested_item shift.num is exist - process it [04:41:15]requested_item shift.opened is exist - process it [04:41:15]req_shift_opened [04:41:15]FM_GetShiftState [04:41:15]SAM_PROTO_GetShiftState [04:41:15]wFMCommunicate request_size=4 [04:41:15]MH_SAM_APDU [04:41:15]CAPDU: 80 13 01 00 [04:41:15]Write to MH i2c: E2 08 00 CB 03 80 13 01 00 00 00 00 00 4B [04:41:15]Write i2c OK [04:41:15]MH_I2C_Read... [04:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:15]OFD Sender: No OFD packet to send [04:41:15]Read from MH i2c: E2 [04:41:15]MH_I2C_Read... [04:41:15]Read from MH i2c: E2 0E 00 [04:41:15]MH_I2C_Read... [04:41:15]Read from MH i2c: E2 0E 00 CB 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 1D [04:41:15]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:41:15]wFMCommunicate OK [04:41:15]SAM_PROTO_GetShiftState done [04:41:15]FM_GetShiftState done [04:41:15]req_shift_opened done [04:41:15]requested_item shift.open_date is exist - process it [04:41:15]req_shift_open_date [04:41:15]req_shift_open_date done [04:41:15]produce_requested_data done [04:41:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72777,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [04:41:15]process_action_free close_receipt [04:41:15]json_value_free [04:41:15]json_value_free done [04:41:15]process_json_proto returns [04:41:15]Send response to host [04:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72777,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [04:41:15]free response buf [04:41:15]execute_script done [04:41:15]execute_script returns [04:41:15]free content buf [04:41:15]Sock 10.Close socket [04:41:15]Sock 10.Thread stoped [04:41:20]OFD Sender: No OFD packet to send [04:41:24]recv_with_timeout no data received [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:42:59]recv_with_timeout no data received [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:35]recv_with_timeout no data received [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:25]recv_with_timeout no data received [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:55]recv_with_timeout no data received [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:00]recv_with_timeout no data received [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:38]accept exits with 9 [04:46:38]New connection [04:46:38]New thread 3066969444 created [04:46:38]Thread 3067112804 joined [04:46:38]Waiting for new connection... [04:46:38] Sock 9.Parse request [04:46:38]Sock 9.Check first char [04:46:38]Sock 9.First char is OK [04:46:38]request: POST /json_proto HTTP/1.0 [04:46:38]Method: POST [04:46:38]URL: /json_proto [04:46:38]Method is POST - this is cgi request [04:46:38]url: /json_proto [04:46:38]query_string will be loaded in cgi processing [04:46:38]execute_cgi json_proto POST (null) [04:46:38]execute_cgi path=json_proto method=POST [04:46:38]POST find Content-Length [04:46:38]Host: 172.17.43.195:8080 [04:46:38]Content-Length: 800 [04:46:38]Content-Type: application/json [04:46:38] [04:46:38]POST finish read [04:46:38]Found Content-Length = 800 [04:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:46:38]execute_script... [04:46: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)952334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:46:38]POST & json_proto [04:46:38]process_json_proto [04:46:38]json parsed OK: [04:46:38]protocol is kg_v1.0 [04:46:38]action value=close_receipt [04:46:38]process_action close_receipt [04:46:38]cmd_close_receipt [04:46:38]MH_GetDate [04:46:38]Write to MH i2c: F0 00 00 CC 03 BE [04:46:38]Write i2c OK [04:46:38]MH_I2C_Read... [04:46:38]Read from MH i2c: F0 [04:46:38]MH_I2C_Read... [04:46:38]Read from MH i2c: F0 09 00 [04:46:38]MH_I2C_Read... [04:46:38]Read from MH i2c: F0 09 00 CC 03 00 30 BA 21 67 74 2C AD 66 EC [04:46:38]GetLastDocTimeStamp 1730263273 [04:46:38]current date 1730263600 [04:46:38]FM_GetShiftState [04:46:38]SAM_PROTO_GetShiftState [04:46:38]wFMCommunicate request_size=4 [04:46:38]MH_SAM_APDU [04:46:38]CAPDU: 80 13 01 00 [04:46:38]Write to MH i2c: E2 08 00 CD 03 80 13 01 00 00 00 00 00 4D [04:46:38]Write i2c OK [04:46:38]MH_I2C_Read... [04:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:46:38]Read from MH i2c: E2 [04:46:38]MH_I2C_Read... [04:46:38]Read from MH i2c: E2 0E 00 [04:46:38]MH_I2C_Read... [04:46:38]Read from MH i2c: E2 0E 00 CD 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 1F [04:46:38]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:46:38]wFMCommunicate OK [04:46:38]SAM_PROTO_GetShiftState done [04:46:38]FM_GetShiftState done [04:46:38]opened in 1730247109 [04:46:38]opened+sec_in_day 1730333509 [04:46:38]quantity*price = 200001 [04:46:38]sum+1 = 200003 [04:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.02 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.02 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 15 30.10.2024 04:46 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 72778 ФПД: 34425312179281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T044640&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72778&fm=34425312179281&tin=02508201610067®Number=0000000000091644&sum=200002 [04:46:39]StoreToDocumentArchive [04:46:39]shift 556 fd 72778 [04:46:39]save to /storage/0556/doc_00072778 [04:46:39]save last doc name /storage/0556/doc_00072778 to /storage/kkm_last_doc_name [04:46:39]save OK [04:46:39]Clear old archive folders... [04:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=244 [04:46:39]tlvbuf is 01ABAFD0 [04:46:39]SAM_PROTO_ClearQueue [04:46:39]wFMCommunicate request_size=4 [04:46:39]MH_SAM_APDU [04:46:39]CAPDU: 80 09 00 00 [04:46:39]Write to MH i2c: E2 08 00 DA 03 80 09 00 00 00 00 00 00 4F [04:46:39]Write i2c OK [04:46:39]MH_I2C_Read... [04:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:46:39]Read from MH i2c: E2 [04:46:39]MH_I2C_Read... [04:46:39]Read from MH i2c: E2 03 00 [04:46:39]MH_I2C_Read... [04:46:39]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [04:46:39]RAPDU: 90 00 [04:46:39]wFMCommunicate OK [04:46:39]SAM_PROTO_ClearQueue done [04:46:39]KKMCreateOFDPacket [04:46:39]OFDProtocolAddRootSTLVToBuf [04:46:39]FM_MakeSignedData [04:46:39]FM_MakeSignedData [04:46:39]SAM_PROTO_SignData [04:46:39]wFMCommunicate request_size=4 [04:46:39]MH_SAM_APDU [04:46:39]CAPDU: 80 0D 01 02 [04:46:39]Write to MH i2c: E2 08 00 DB 03 80 0D 01 02 00 00 00 00 57 [04:46:39]Write i2c OK [04:46:39]MH_I2C_Read... [04:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:46:39]Read from MH i2c: E2 [04:46:39]MH_I2C_Read... [04:46:39]Read from MH i2c: E2 03 00 [04:46:39]MH_I2C_Read... [04:46:39]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [04:46:39]RAPDU: 90 00 [04:46:39]wFMCommunicate OK [04:46:39]wFMCommunicate request_size=253 [04:46:39]MH_SAM_APDU [04:46:39]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 BA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1C 01 00 35 04 06 00 1F 4F 44 80 F4 51 [04:46:39]Write to MH i2c: E2 00 01 DC 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 BA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1C 01 00 35 04 06 00 1F 4F 44 80 F4 51 00 00 02 [04:46:39]Write i2c OK [04:46:39]MH_I2C_Read... [04:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:46:40]Read from MH i2c: E2 [04:46:40]MH_I2C_Read... [04:46:40]Read from MH i2c: E2 03 00 [04:46:40]MH_I2C_Read... [04:46:40]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [04:46:40]RAPDU: 90 00 [04:46:40]wFMCommunicate OK [04:46:40]wFMCommunicate request_size=4 [04:46:40]MH_SAM_APDU [04:46:40]CAPDU: 80 0D 03 02 [04:46:40]Write to MH i2c: E2 08 00 DD 03 80 0D 03 02 00 00 00 00 5B [04:46:40]Write i2c OK [04:46:40]MH_I2C_Read... [04:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:46:40]Read from MH i2c: E2 [04:46:40]MH_I2C_Read... [04:46:40]Read from MH i2c: E2 0B 00 [04:46:40]MH_I2C_Read... [04:46:40]Read from MH i2c: E2 0B 00 DD 03 00 17 D2 6D 3A E3 73 FB 0B 90 00 48 [04:46:40]RAPDU: 17 D2 6D 3A E3 73 FB 0B 90 00 [04:46:40]wFMCommunicate OK [04:46:40]SAM_PROTO_SignData done [04:46:40]FM_MakeSignedData done [04:46:40]CreateOFDProtocolMessage [04:46:40]wFMCommunicate request_size=4 [04:46:40]MH_SAM_APDU [04:46:40]CAPDU: 80 11 00 00 [04:46:40]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [04:46:40]Write i2c OK [04:46:40]MH_I2C_Read... [04:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:46:40]Read from MH i2c: E2 [04:46:40]MH_I2C_Read... [04:46:40]Read from MH i2c: E2 17 00 [04:46:40]MH_I2C_Read... [04:46:40]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AF [04:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:46:40]wFMCommunicate OK [04:46:40]CreateOFDProtocolMessage done [04:46:40]OFDSenderStorePacket 72778 [04:46:40]StoreOFDPacket docnum=72778 [04:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 B7 54 00 01 B8 A2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 BA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1C 01 00 35 04 06 00 1F 4F 44 80 F4 51 17 D2 6D 3A E3 73 FB 0B [04:46:40]CheckFolder [04:46:40]dirname=/storage/ofd_packets [04:46:40]CheckFolder done [04:46:40]ProducePacketName [04:46:40]name=ofd_packets/00072778 [04:46:40]NVStorageSaveData ofd_packets/00072778 [04:46:40]File name is /storage/ofd_packets/00072778 [04:46:40]Write 294 bytes [04:46:40]NVStorageSaveData done [04:46:40]OFDSenderStorePacket done [04:46:40]KKMCreateOFDPacket done [04:46:40]NVStorageSaveData kkm_last_timestamp [04:46:40]File name is /storage/kkm_last_timestamp [04:46:40]Write 4 bytes [04:46:40]NVStorageSaveData done [04:46:40]ExternCall_PrintAddStr [04:46:40]wPrintStart [04:46:40]Write to MH i2c: 01 00 00 DF 03 E2 [04:46:40]Write i2c OK [04:46:40]MH_I2C_Read... [04:46:40]Read from MH i2c: 01 [04:46:40]MH_I2C_Read... [04:46:40]Read from MH i2c: 01 07 00 [04:46:40]MH_I2C_Read... [04:46:40]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 FF 0F F7 [04:46:40]RasterBufferAndPrint [04:46:40]line Счет N : (1)952334 [04:46:40]line ИНН: 02508201610067 [04:46:40]line Контрольно-Кассовый Чек [04:46:40]line ПРОДАЖА [04:46:40]line ТРК (МРК, ГНК) : 61 [04:46:40]line Товар: 50.50.0 [04:46:40]line Super 92 [04:46:40]line 29.240 * 68.40 [04:46:40]line = 2000.02 [04:46:40]line НДС 12% НСП 1% [04:46:40]line > о реализуемом товаре [04:46:40]line ИТОГО: 2000.02 [04:46:40]line НСП 1% : 17.70 [04:46:40]line НДС 12% : 212.39 [04:46:40]line Наличными: 0.00 [04:46:40]line Безнал.: 2000.02 [04:46:40]line Место: АЗС № 113 "Партнер Нефть" [04:46:40]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:46:40]line СНО: Общий режим [04:46:40]line Чек 15 30.10.2024 04:46 [04:46:40]line Смена: 556 ФФД: 1.0 [04:46:40]line ЗНМ: 0300000087 [04:46:40]line РНМ: 0000000000091644 [04:46:40]line Версия ККМ: 001 [04:46:40]line Платежная система: Бакай банк [04:46:40]line ФМ: 0000000000874662 [04:46:40]line ФД: 72778 [04:46:40]line ФПД: 34425312179281 [04:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T044640&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72778&fm=34425312179281&tin=02508201610067®Number=0000000000091644&sum=200002 [04:46:40]OFD Sender: Processing packet 72778 [packets to send 278, broken 277] [04:46:40]ProducePacketName [04:46:40]name=ofd_packets/00072778 [04:46:40]OFD Sender: To server: pG, [04:46:40]CommunicateWithHost lk.salyk.kg:30040 [04:46:40]ConnectInit lk.salyk.kg [04:46:40]written 0, free lines is 4095 [04:46:41]Write to MH i2c: 01 00 00 09 04 0D [04:46:41]Write i2c OK [04:46:41]MH_I2C_Read... [04:46:41]Read from MH i2c: 01 [04:46:41]MH_I2C_Read... [04:46:41]Read from MH i2c: 01 07 00 [04:46:41]MH_I2C_Read... [04:46:41]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 F3 0C 13 [04:46:41]RasterBufferAndPrint [04:46:41]line [04:46:41]line [04:46:41]line [04:46:41]line [04:46:41]line [04:46:41]written 0, free lines is 3319 [04:46:41]MH_Cut [04:46:41]Write to MH i2c: D1 01 00 10 04 01 E6 [04:46:41]Write i2c OK [04:46:41]MH_I2C_Read... [04:46:41]Read from MH i2c: D1 [04:46:41]MH_I2C_Read... [04:46:41]Read from MH i2c: D1 01 00 [04:46:41]MH_I2C_Read... [04:46:41]Read from MH i2c: D1 01 00 10 04 00 E5 [04:46:41]Write to MH i2c: 01 00 00 11 04 15 [04:46:41]Write i2c OK [04:46:41]MH_I2C_Read... [04:46:41]*** Cut start [04:46:41]*** Partial cut [04:46:41]*** CUTSNS_PIN = 1 [04:46:41]*** CUTSNS_PIN = 0 [04:46:42]*** Brake cut motor [04:46:42]Read from MH i2c: 01 [04:46:42]MH_I2C_Read... [04:46:42]*** Stop cut motor [04:46:42]*** Cut end [04:46:42]Read from MH i2c: 01 07 00 [04:46:42]MH_I2C_Read... [04:46:42]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 FF 0F 2A [04:46:42]process_action close_receipt done [04:46:42]requested_data is exist [04:46:42]produce_requested_data [04:46:42]requested_item fm.sn is exist - process it [04:46:42]wFMCommunicate request_size=4 [04:46:42]MH_SAM_APDU [04:46:42]CAPDU: 80 11 00 00 [04:46:42]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [04:46:42]Write i2c OK [04:46:42]MH_I2C_Read... [04:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:46:42]Read from MH i2c: E2 [04:46:42]MH_I2C_Read... [04:46:42]Read from MH i2c: E2 17 00 [04:46:42]MH_I2C_Read... [04:46:42]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E4 [04:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:46:42]wFMCommunicate OK [04:46:42]requested_item fd.num is exist - process it [04:46:42]SAM_PROTO_GetFieldsCounters [04:46:42]wFMCommunicate request_size=4 [04:46:42]MH_SAM_APDU [04:46:42]CAPDU: 80 13 00 00 [04:46:42]Write to MH i2c: E2 08 00 13 04 80 13 00 00 00 00 00 00 93 [04:46:42]Write i2c OK [04:46:42]MH_I2C_Read... [04:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:46:42]Read from MH i2c: E2 [04:46:42]MH_I2C_Read... [04:46:42]Read from MH i2c: E2 62 00 [04:46:42]MH_I2C_Read... [04:46:42]Read from MH i2c: E2 62 00 13 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4A 1C 01 00 0E 04 04 00 2C 02 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 76 [04:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4A 1C 01 00 0E 04 04 00 2C 02 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 [04:46:42]wFMCommunicate OK [04:46:42]SAM_PROTO_GetFieldsCounters done [04:46:42]requested_item shift.num is exist - process it [04:46:42]requested_item shift.opened is exist - process it [04:46:42]req_shift_opened [04:46:42]FM_GetShiftState [04:46:42]SAM_PROTO_GetShiftState [04:46:42]wFMCommunicate request_size=4 [04:46:42]MH_SAM_APDU [04:46:42]CAPDU: 80 13 01 00 [04:46:42]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [04:46:42]Write i2c OK [04:46:42]MH_I2C_Read... [04:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:46:42]Read from MH i2c: E2 [04:46:42]MH_I2C_Read... [04:46:42]Read from MH i2c: E2 0E 00 [04:46:42]MH_I2C_Read... [04:46:42]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 67 [04:46:42]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:46:42]wFMCommunicate OK [04:46:42]SAM_PROTO_GetShiftState done [04:46:42]FM_GetShiftState done [04:46:42]req_shift_opened done [04:46:42]requested_item shift.open_date is exist - process it [04:46:42]req_shift_open_date [04:46:42]req_shift_open_date done [04:46:42]produce_requested_data done [04:46:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72778,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [04:46:42]process_action_free close_receipt [04:46:42]json_value_free [04:46:42]json_value_free done [04:46:42]process_json_proto returns [04:46:42]Send response to host [04:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72778,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [04:46:42]free response buf [04:46:42]execute_script done [04:46:42]execute_script returns [04:46:42]free content buf [04:46:42]Sock 9.Close socket [04:46:42]Sock 9.Thread stoped [04:46:44]recv_with_timeout no data received [04:46:45]ConnectInit Can't take IP for lk.salyk.kg [04:46:45]CommunicateWithHost connect error [04:46:45]CommunicateWithHost err = -1 [04:46:45]OFD Sender: Server communicate error [04:46:50]OFD Sender: Processing packet 72778 [packets to send 278, broken 277] [04:46:50]ProducePacketName [04:46:50]name=ofd_packets/00072778 [04:46:50]OFD Sender: To server: pG, [04:46:50]CommunicateWithHost lk.salyk.kg:30040 [04:46:50]ConnectInit lk.salyk.kg [04:46:58]recv_with_timeout no data received [04:47:07]Connected sock=10 [04:47:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 B7 54 00 01 B8 A2 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 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 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 BA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1C 01 00 35 04 06 00 1F 4F 44 80 F4 51 17 D2 6D 3A E3 73 FB 0B [04:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BB 3C 47 00 3A 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1C 01 00 F4 03 04 00 05 65 21 67 B6 04 01 00 00 57 40 E4 AA 5A BC 33 36 [04:47:09]CommunicateWithHost err = 0 [04:47:09]CheckOFDResponse [04:47:09]1017 (14) - 77093643461234 [04:47:09]1041 (16) - 0000000000874662 [04:47:09]1040 (4) - 72778 [04:47:09]1012 (4) - 29.10.2024 22:43 [04:47:09]1206 (1) - 0 [04:47:09]OFD Sender: Remove packet 72778 [04:47:09]ProducePacketName [04:47:09]name=ofd_packets/00072778 [04:47:09]NVStorageDeleteData [04:47:10]OFD Sender: No OFD packet to send [04:47:13]recv_with_timeout no data received [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:05]recv_with_timeout no data received [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:16]recv_with_timeout no data received [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:52]recv_with_timeout no data received [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:16]recv_with_timeout no data received [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:27]recv_with_timeout no data received [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:44]recv_with_timeout no data received [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:01]recv_with_timeout no data received [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:21]accept exits with 7 [04:50:21]New connection [04:50:21]New thread 3067112804 created [04:50:21]Thread 3066969444 joined [04:50:21]Waiting for new connection... [04:50:21] Sock 7.Parse request [04:50:21]Sock 7.Check first char [04:50:21]Sock 7.First char is OK [04:50:21]request: POST /json_proto HTTP/1.0 [04:50:21]Method: POST [04:50:21]URL: /json_proto [04:50:21]Method is POST - this is cgi request [04:50:21]url: /json_proto [04:50:21]query_string will be loaded in cgi processing [04:50:21]execute_cgi json_proto POST (null) [04:50:21]execute_cgi path=json_proto method=POST [04:50:21]POST find Content-Length [04:50:21]Host: 172.17.43.195:8080 [04:50:21]Content-Length: 806 [04:50:21]Content-Type: application/json [04:50:21] [04:50:21]POST finish read [04:50:21]Found Content-Length = 806 [04:50:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 46.790, "sum" : 1820.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1820.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:50:21]execute_script... [04:50: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)952335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 46.790, "sum" : 1820.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1820.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:50:21]POST & json_proto [04:50:21]process_json_proto [04:50:21]json parsed OK: [04:50:21]protocol is kg_v1.0 [04:50:21]action value=close_receipt [04:50:21]process_action close_receipt [04:50:21]cmd_close_receipt [04:50:21]MH_GetDate [04:50:21]Write to MH i2c: F0 00 00 15 04 08 [04:50:21]Write i2c OK [04:50:21]MH_I2C_Read... [04:50:21]Read from MH i2c: F0 [04:50:21]MH_I2C_Read... [04:50:21]Read from MH i2c: F0 09 00 [04:50:21]MH_I2C_Read... [04:50:21]Read from MH i2c: F0 09 00 15 04 00 0F BB 21 67 74 2C AD 66 16 [04:50:21]GetLastDocTimeStamp 1730263600 [04:50:21]current date 1730263823 [04:50:21]FM_GetShiftState [04:50:21]SAM_PROTO_GetShiftState [04:50:21]wFMCommunicate request_size=4 [04:50:21]MH_SAM_APDU [04:50:21]CAPDU: 80 13 01 00 [04:50:21]Write to MH i2c: E2 08 00 16 04 80 13 01 00 00 00 00 00 97 [04:50:21]Write i2c OK [04:50:21]MH_I2C_Read... [04:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:21]Read from MH i2c: E2 [04:50:21]MH_I2C_Read... [04:50:21]Read from MH i2c: E2 0E 00 [04:50:21]MH_I2C_Read... [04:50:21]Read from MH i2c: E2 0E 00 16 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 69 [04:50:21]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:50:21]wFMCommunicate OK [04:50:21]SAM_PROTO_GetShiftState done [04:50:21]FM_GetShiftState done [04:50:21]opened in 1730247109 [04:50:21]opened+sec_in_day 1730333509 [04:50:21]quantity*price = 182013 [04:50:21]sum+1 = 182014 [04:50:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1820.13 НСП 1% : 16.11 НДС 12% : 193.29 Наличными: 0.00 Безнал.: 1820.13 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 16 30.10.2024 04:50 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72779 ФПД: 113029194203682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T045023&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72779&fm=113029194203682&tin=02508201610067®Number=0000000000091644&sum=182013 [04:50:22]StoreToDocumentArchive [04:50:22]shift 556 fd 72779 [04:50:22]save to /storage/0556/doc_00072779 [04:50:22]save last doc name /storage/0556/doc_00072779 to /storage/kkm_last_doc_name [04:50:22]save OK [04:50:22]Clear old archive folders... [04:50:22]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:50:22]tlvbuf is 01AD4AD0 [04:50:22]SAM_PROTO_ClearQueue [04:50:22]wFMCommunicate request_size=4 [04:50:22]MH_SAM_APDU [04:50:22]CAPDU: 80 09 00 00 [04:50:22]Write to MH i2c: E2 08 00 23 04 80 09 00 00 00 00 00 00 99 [04:50:22]Write i2c OK [04:50:22]MH_I2C_Read... [04:50:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:50:22]Read from MH i2c: E2 [04:50:22]MH_I2C_Read... [04:50:22]Read from MH i2c: E2 03 00 [04:50:22]MH_I2C_Read... [04:50:22]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [04:50:22]RAPDU: 90 00 [04:50:22]wFMCommunicate OK [04:50:22]SAM_PROTO_ClearQueue done [04:50:22]KKMCreateOFDPacket [04:50:22]OFDProtocolAddRootSTLVToBuf [04:50:22]FM_MakeSignedData [04:50:22]FM_MakeSignedData [04:50:22]SAM_PROTO_SignData [04:50:22]wFMCommunicate request_size=4 [04:50:22]MH_SAM_APDU [04:50:22]CAPDU: 80 0D 01 02 [04:50:22]Write to MH i2c: E2 08 00 24 04 80 0D 01 02 00 00 00 00 A1 [04:50:22]Write i2c OK [04:50:22]MH_I2C_Read... [04:50:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:50:22]Read from MH i2c: E2 [04:50:22]MH_I2C_Read... [04:50:22]Read from MH i2c: E2 03 00 [04:50:22]MH_I2C_Read... [04:50:22]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [04:50:22]RAPDU: 90 00 [04:50:22]wFMCommunicate OK [04:50:22]wFMCommunicate request_size=255 [04:50:22]MH_SAM_APDU [04:50:22]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C6 B6 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 FD C6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD C6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 0F BB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4B 1C 01 00 35 04 06 00 66 CC [04:50:22]Write to MH i2c: E2 02 01 25 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C6 B6 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 FD C6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD C6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 0F BB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4B 1C 01 00 35 04 06 00 66 CC 00 00 A3 [04:50:22]Write i2c OK [04:50:22]MH_I2C_Read... [04:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:23]Read from MH i2c: E2 [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: E2 03 00 [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [04:50:23]RAPDU: 90 00 [04:50:23]wFMCommunicate OK [04:50:23]wFMCommunicate request_size=9 [04:50:23]MH_SAM_APDU [04:50:23]CAPDU: 80 0D 02 02 04 A8 F8 42 22 [04:50:23]Write to MH i2c: E2 0C 00 26 04 80 0D 02 02 04 00 A8 F8 42 22 00 00 B0 [04:50:23]Write i2c OK [04:50:23]MH_I2C_Read... [04:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:23]Read from MH i2c: E2 [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: E2 03 00 [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [04:50:23]RAPDU: 90 00 [04:50:23]wFMCommunicate OK [04:50:23]wFMCommunicate request_size=4 [04:50:23]MH_SAM_APDU [04:50:23]CAPDU: 80 0D 03 02 [04:50:23]Write to MH i2c: E2 08 00 27 04 80 0D 03 02 00 00 00 00 A6 [04:50:23]Write i2c OK [04:50:23]MH_I2C_Read... [04:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:50:23]Read from MH i2c: E2 [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: E2 0B 00 [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: E2 0B 00 27 04 00 DB B4 E1 15 C6 0A 05 54 90 00 55 [04:50:23]RAPDU: DB B4 E1 15 C6 0A 05 54 90 00 [04:50:23]wFMCommunicate OK [04:50:23]SAM_PROTO_SignData done [04:50:23]FM_MakeSignedData done [04:50:23]CreateOFDProtocolMessage [04:50:23]wFMCommunicate request_size=4 [04:50:23]MH_SAM_APDU [04:50:23]CAPDU: 80 11 00 00 [04:50:23]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [04:50:23]Write i2c OK [04:50:23]MH_I2C_Read... [04:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:23]Read from MH i2c: E2 [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: E2 17 00 [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FA [04:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:50:23]wFMCommunicate OK [04:50:23]CreateOFDProtocolMessage done [04:50:23]OFDSenderStorePacket 72779 [04:50:23]StoreOFDPacket docnum=72779 [04:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 EC 4E 06 01 1F 2F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C6 B6 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 FD C6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD C6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 0F BB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4B 1C 01 00 35 04 06 00 66 CC A8 F8 42 22 DB B4 E1 15 C6 0A 05 54 [04:50:23]CheckFolder [04:50:23]dirname=/storage/ofd_packets [04:50:23]CheckFolder done [04:50:23]ProducePacketName [04:50:23]name=ofd_packets/00072779 [04:50:23]NVStorageSaveData ofd_packets/00072779 [04:50:23]File name is /storage/ofd_packets/00072779 [04:50:23]Write 300 bytes [04:50:23]NVStorageSaveData done [04:50:23]OFDSenderStorePacket done [04:50:23]KKMCreateOFDPacket done [04:50:23]NVStorageSaveData kkm_last_timestamp [04:50:23]File name is /storage/kkm_last_timestamp [04:50:23]Write 4 bytes [04:50:23]NVStorageSaveData done [04:50:23]ExternCall_PrintAddStr [04:50:23]wPrintStart [04:50:23]Write to MH i2c: 01 00 00 29 04 2D [04:50:23]Write i2c OK [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: 01 [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: 01 07 00 [04:50:23]MH_I2C_Read... [04:50:23]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 FF 0F 42 [04:50:23]RasterBufferAndPrint [04:50:23]line Счет N : (1)952335 [04:50:23]line ИНН: 02508201610067 [04:50:23]line Контрольно-Кассовый Чек [04:50:23]line ПРОДАЖА [04:50:23]line ТРК (МРК, ГНК) : 71 [04:50:23]line Товар: 2711190000 [04:50:23]line ГАЗ-К-3 [04:50:23]line 46.790 * 38.90 [04:50:23]line = 1820.13 [04:50:23]line НДС 12% НСП 1% [04:50:23]line > о реализуемом товаре [04:50:23]line ИТОГО: 1820.13 [04:50:23]line НСП 1% : 16.11 [04:50:23]line НДС 12% : 193.29 [04:50:23]line Наличными: 0.00 [04:50:23]line Безнал.: 1820.13 [04:50:23]line Место: АЗС № 113 "Партнер Нефть" [04:50:23]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:50:23]line СНО: Общий режим [04:50:23]line Чек 16 30.10.2024 04:50 [04:50:23]line Смена: 556 ФФД: 1.0 [04:50:23]line ЗНМ: 0300000087 [04:50:23]line РНМ: 0000000000091644 [04:50:23]line Версия ККМ: 001 [04:50:23]line Платежная система: O! деньги [04:50:23]line ФМ: 0000000000874662 [04:50:23]line ФД: 72779 [04:50:23]line ФПД: 113029194203682 [04:50:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T045023&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72779&fm=113029194203682&tin=02508201610067®Number=0000000000091644&sum=182013 [04:50:23]OFD Sender: Processing packet 72779 [packets to send 278, broken 277] [04:50:23]ProducePacketName [04:50:23]name=ofd_packets/00072779 [04:50:23]OFD Sender: To server: pG, [04:50:23]CommunicateWithHost lk.salyk.kg:30040 [04:50:23]ConnectInit lk.salyk.kg [04:50:23]written 0, free lines is 4095 [04:50:24]Write to MH i2c: 01 00 00 53 04 57 [04:50:24]Write i2c OK [04:50:24]MH_I2C_Read... [04:50:24]Read from MH i2c: 01 [04:50:24]MH_I2C_Read... [04:50:24]Read from MH i2c: 01 07 00 [04:50:24]MH_I2C_Read... [04:50:24]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 E8 0C 52 [04:50:24]RasterBufferAndPrint [04:50:24]line [04:50:24]line [04:50:24]line [04:50:24]line [04:50:24]line [04:50:24]written 0, free lines is 3311 [04:50:24]MH_Cut [04:50:24]Write to MH i2c: D1 01 00 5A 04 01 30 [04:50:24]Write i2c OK [04:50:24]MH_I2C_Read... [04:50:24]Read from MH i2c: D1 [04:50:24]MH_I2C_Read... [04:50:24]Read from MH i2c: D1 01 00 [04:50:24]MH_I2C_Read... [04:50:24]Read from MH i2c: D1 01 00 5A 04 00 2F [04:50:24]Write to MH i2c: 01 00 00 5B 04 5F [04:50:24]Write i2c OK [04:50:24]MH_I2C_Read... [04:50:24]Connected sock=9 [04:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 EC 4E 06 01 1F 2F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C6 B6 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 FD C6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 4B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD C6 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 0F BB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4B 1C 01 00 35 04 06 00 66 CC A8 F8 42 22 DB B4 E1 15 C6 0A 05 54 [04:50:24]*** Cut start [04:50:24]*** Partial cut [04:50:24]*** CUTSNS_PIN = 1 [04:50:24]*** CUTSNS_PIN = 0 [04:50:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 38 62 47 00 F9 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 38 37 34 36 36 32 10 04 04 00 4B 1C 01 00 F4 03 04 00 C9 65 21 67 B6 04 01 00 00 99 F6 E2 8A 36 AE 7F 77 [04:50:25]CommunicateWithHost err = 0 [04:50:25]CheckOFDResponse [04:50:25]1017 (14) - 77093643461234 [04:50:25]1041 (16) - 0000000000874662 [04:50:25]1040 (4) - 72779 [04:50:25]1012 (4) - 29.10.2024 22:46 [04:50:25]1206 (1) - 0 [04:50:25]OFD Sender: Remove packet 72779 [04:50:25]ProducePacketName [04:50:25]name=ofd_packets/00072779 [04:50:25]NVStorageDeleteData [04:50:25]*** Brake cut motor [04:50:25]Read from MH i2c: 01 [04:50:25]MH_I2C_Read... [04:50:25]*** Stop cut motor [04:50:25]*** Cut end [04:50:25]Read from MH i2c: 01 07 00 [04:50:25]MH_I2C_Read... [04:50:25]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [04:50:25]process_action close_receipt done [04:50:25]requested_data is exist [04:50:25]produce_requested_data [04:50:25]requested_item fm.sn is exist - process it [04:50:25]wFMCommunicate request_size=4 [04:50:25]MH_SAM_APDU [04:50:25]CAPDU: 80 11 00 00 [04:50:25]Write to MH i2c: E2 08 00 5C 04 80 11 00 00 00 00 00 00 DA [04:50:25]Write i2c OK [04:50:25]MH_I2C_Read... [04:50:25]OFD Sender: No OFD packet to send [04:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:25]Read from MH i2c: E2 [04:50:25]MH_I2C_Read... [04:50:25]Read from MH i2c: E2 17 00 [04:50:25]MH_I2C_Read... [04:50:25]Read from MH i2c: E2 17 00 5C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2E [04:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:50:25]wFMCommunicate OK [04:50:25]requested_item fd.num is exist - process it [04:50:25]SAM_PROTO_GetFieldsCounters [04:50:25]wFMCommunicate request_size=4 [04:50:25]MH_SAM_APDU [04:50:25]CAPDU: 80 13 00 00 [04:50:25]Write to MH i2c: E2 08 00 5D 04 80 13 00 00 00 00 00 00 DD [04:50:25]Write i2c OK [04:50:25]MH_I2C_Read... [04:50:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:50:25]Read from MH i2c: E2 [04:50:25]MH_I2C_Read... [04:50:25]Read from MH i2c: E2 62 00 [04:50:25]MH_I2C_Read... [04:50:25]Read from MH i2c: E2 62 00 5D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4B 1C 01 00 0E 04 04 00 2C 02 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 C4 [04:50:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4B 1C 01 00 0E 04 04 00 2C 02 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 [04:50:25]wFMCommunicate OK [04:50:25]SAM_PROTO_GetFieldsCounters done [04:50:25]requested_item shift.num is exist - process it [04:50:25]requested_item shift.opened is exist - process it [04:50:25]req_shift_opened [04:50:25]FM_GetShiftState [04:50:25]SAM_PROTO_GetShiftState [04:50:25]wFMCommunicate request_size=4 [04:50:25]MH_SAM_APDU [04:50:25]CAPDU: 80 13 01 00 [04:50:25]Write to MH i2c: E2 08 00 5E 04 80 13 01 00 00 00 00 00 DF [04:50:25]Write i2c OK [04:50:25]MH_I2C_Read... [04:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:25]Read from MH i2c: E2 [04:50:25]MH_I2C_Read... [04:50:25]Read from MH i2c: E2 0E 00 [04:50:25]MH_I2C_Read... [04:50:25]Read from MH i2c: E2 0E 00 5E 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B1 [04:50:25]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [04:50:25]wFMCommunicate OK [04:50:25]SAM_PROTO_GetShiftState done [04:50:25]FM_GetShiftState done [04:50:25]req_shift_opened done [04:50:25]requested_item shift.open_date is exist - process it [04:50:25]req_shift_open_date [04:50:25]req_shift_open_date done [04:50:25]produce_requested_data done [04:50:25]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72779,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [04:50:25]process_action_free close_receipt [04:50:25]json_value_free [04:50:25]json_value_free done [04:50:25]process_json_proto returns [04:50:25]Send response to host [04:50:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72779,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [04:50:25]free response buf [04:50:25]execute_script done [04:50:25]execute_script returns [04:50:25]free content buf [04:50:25]Sock 7.Close socket [04:50:25]Sock 7.Thread stoped [04:50:30]OFD Sender: No OFD packet to send [04:50:32]recv_with_timeout no data received [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:01]recv_with_timeout no data received [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:31]recv_with_timeout no data received [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:45]recv_with_timeout no data received [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]recv_with_timeout no data received [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:16]recv_with_timeout no data received [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:34]recv_with_timeout no data received [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:54]recv_with_timeout no data received [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:23]recv_with_timeout no data received [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:42]recv_with_timeout no data received [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:25]recv_with_timeout no data received [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:51]recv_with_timeout no data received [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:02]recv_with_timeout no data received [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:52]recv_with_timeout no data received [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:26]recv_with_timeout no data received [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:45]recv_with_timeout no data received [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:55]recv_with_timeout no data received [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]recv_with_timeout no data received [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:28]recv_with_timeout no data received [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:47]recv_with_timeout no data received [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:04]recv_with_timeout no data received [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:31]recv_with_timeout no data received [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:47]recv_with_timeout no data received [05:07:48]accept exits with 10 [05:07:48]New connection [05:07:48]New thread 3066969444 created [05:07:48]Thread 3067112804 joined [05:07:48]Waiting for new connection... [05:07:48] Sock 10.Parse request [05:07:48]Sock 10.Check first char [05:07:48]Sock 10.First char is OK [05:07:48]request: POST /json_proto HTTP/1.0 [05:07:48]Method: POST [05:07:48]URL: /json_proto [05:07:48]Method is POST - this is cgi request [05:07:48]url: /json_proto [05:07:48]query_string will be loaded in cgi processing [05:07:48]execute_cgi json_proto POST (null) [05:07:48]execute_cgi path=json_proto method=POST [05:07:48]POST find Content-Length [05:07:48]Host: 172.17.43.195:8080 [05:07:48]Content-Length: 808 [05:07:48]Content-Type: application/json [05:07:48] [05:07:48]POST finish read [05:07:48]Found Content-Length = 808 [05:07:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:07:48]execute_script... [05:07:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:07:48]POST & json_proto [05:07:48]process_json_proto [05:07:48]json parsed OK: [05:07:48]protocol is kg_v1.0 [05:07:48]action value=close_receipt [05:07:48]process_action close_receipt [05:07:48]cmd_close_receipt [05:07:48]MH_GetDate [05:07:48]Write to MH i2c: F0 00 00 5F 04 52 [05:07:48]Write i2c OK [05:07:48]MH_I2C_Read... [05:07:48]Read from MH i2c: F0 [05:07:48]MH_I2C_Read... [05:07:48]Read from MH i2c: F0 09 00 [05:07:48]MH_I2C_Read... [05:07:48]Read from MH i2c: F0 09 00 5F 04 00 26 BF 21 67 74 2C AD 66 7B [05:07:48]GetLastDocTimeStamp 1730263823 [05:07:48]current date 1730264870 [05:07:48]FM_GetShiftState [05:07:48]SAM_PROTO_GetShiftState [05:07:48]wFMCommunicate request_size=4 [05:07:48]MH_SAM_APDU [05:07:48]CAPDU: 80 13 01 00 [05:07:48]Write to MH i2c: E2 08 00 60 04 80 13 01 00 00 00 00 00 E1 [05:07:48]Write i2c OK [05:07:48]MH_I2C_Read... [05:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:07:48]Read from MH i2c: E2 [05:07:48]MH_I2C_Read... [05:07:48]Read from MH i2c: E2 0E 00 [05:07:48]MH_I2C_Read... [05:07:48]Read from MH i2c: E2 0E 00 60 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B3 [05:07:48]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:07:48]wFMCommunicate OK [05:07:48]SAM_PROTO_GetShiftState done [05:07:48]FM_GetShiftState done [05:07:48]opened in 1730247109 [05:07:48]opened+sec_in_day 1730333509 [05:07:48]quantity*price = 100050 [05:07:48]sum+1 = 100052 [05:07:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 17 30.10.2024 05:07 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72780 ФПД: 139128276831641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T050750&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72780&fm=139128276831641&tin=02508201610067®Number=0000000000091644&sum=100051 [05:07:49]StoreToDocumentArchive [05:07:49]shift 556 fd 72780 [05:07:49]save to /storage/0556/doc_00072780 [05:07:49]save last doc name /storage/0556/doc_00072780 to /storage/kkm_last_doc_name [05:07:49]save OK [05:07:49]Clear old archive folders... [05:07:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:07:49]tlvbuf is 01B30B80 [05:07:49]SAM_PROTO_ClearQueue [05:07:49]wFMCommunicate request_size=4 [05:07:49]MH_SAM_APDU [05:07:49]CAPDU: 80 09 00 00 [05:07:49]Write to MH i2c: E2 08 00 6D 04 80 09 00 00 00 00 00 00 E3 [05:07:49]Write i2c OK [05:07:49]MH_I2C_Read... [05:07:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:07:50]Read from MH i2c: E2 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 03 00 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [05:07:50]RAPDU: 90 00 [05:07:50]wFMCommunicate OK [05:07:50]SAM_PROTO_ClearQueue done [05:07:50]KKMCreateOFDPacket [05:07:50]OFDProtocolAddRootSTLVToBuf [05:07:50]FM_MakeSignedData [05:07:50]FM_MakeSignedData [05:07:50]SAM_PROTO_SignData [05:07:50]wFMCommunicate request_size=4 [05:07:50]MH_SAM_APDU [05:07:50]CAPDU: 80 0D 01 02 [05:07:50]Write to MH i2c: E2 08 00 6E 04 80 0D 01 02 00 00 00 00 EB [05:07:50]Write i2c OK [05:07:50]MH_I2C_Read... [05:07:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:07:50]Read from MH i2c: E2 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 03 00 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [05:07:50]RAPDU: 90 00 [05:07:50]wFMCommunicate OK [05:07:50]wFMCommunicate request_size=255 [05:07:50]MH_SAM_APDU [05:07:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 26 BF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1C 01 00 35 04 06 00 [05:07:50]Write to MH i2c: E2 02 01 6F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 26 BF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1C 01 00 35 04 06 00 00 00 D3 [05:07:50]Write i2c OK [05:07:50]MH_I2C_Read... [05:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:07:50]Read from MH i2c: E2 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 03 00 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [05:07:50]RAPDU: 90 00 [05:07:50]wFMCommunicate OK [05:07:50]wFMCommunicate request_size=11 [05:07:50]MH_SAM_APDU [05:07:50]CAPDU: 80 0D 02 02 06 7E 89 53 84 CD 99 [05:07:50]Write to MH i2c: E2 0E 00 70 04 80 0D 02 02 06 00 7E 89 53 84 CD 99 00 00 3E [05:07:50]Write i2c OK [05:07:50]MH_I2C_Read... [05:07:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:07:50]Read from MH i2c: E2 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 03 00 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [05:07:50]RAPDU: 90 00 [05:07:50]wFMCommunicate OK [05:07:50]wFMCommunicate request_size=4 [05:07:50]MH_SAM_APDU [05:07:50]CAPDU: 80 0D 03 02 [05:07:50]Write to MH i2c: E2 08 00 71 04 80 0D 03 02 00 00 00 00 F0 [05:07:50]Write i2c OK [05:07:50]MH_I2C_Read... [05:07:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:07:50]Read from MH i2c: E2 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 0B 00 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 0B 00 71 04 00 8B C3 4F 63 3E 47 03 13 90 00 8C [05:07:50]RAPDU: 8B C3 4F 63 3E 47 03 13 90 00 [05:07:50]wFMCommunicate OK [05:07:50]SAM_PROTO_SignData done [05:07:50]FM_MakeSignedData done [05:07:50]CreateOFDProtocolMessage [05:07:50]wFMCommunicate request_size=4 [05:07:50]MH_SAM_APDU [05:07:50]CAPDU: 80 11 00 00 [05:07:50]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [05:07:50]Write i2c OK [05:07:50]MH_I2C_Read... [05:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:07:50]Read from MH i2c: E2 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 17 00 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 44 [05:07:50]RAPDU: [05:07:52]json_value_free [05:07:52]json_value_free done [05:07:52]process_json_proto returns [05:07:52]Send response to host [05:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72780,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [05:07:52]free response buf [05:07:52]execute_script done [05:07:52]execute_script returns [05:07:52]free content buf [05:07:52]Sock 10.Close socket [05:07:52]Sock 10.Thread stoped [05:07:57]OFD Sender: No OFD packet to send [05:07:58]recv_with_timeout no data received [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:13]recv_with_timeout no data received [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:36]recv_with_timeout no data received [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:53]recv_with_timeout no data received [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:10]recv_with_timeout no data received [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:04]recv_with_timeout no data received [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:10:59]recv_with_timeout no data received [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:18]recv_with_timeout no data received [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:15]recv_with_timeout no data received [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:07:50]wFMCommunicate OK [05:07:50]CreateOFDProtocolMessage done [05:07:50]OFDSenderStorePacket 72780 [05:07:50]StoreOFDPacket docnum=72780 [05:07:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 5B 69 08 01 D2 F3 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 26 BF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1C 01 00 35 04 06 00 7E 89 53 84 CD 99 8B C3 4F 63 3E 47 03 13 [05:07:50]CheckFolder [05:07:50]dirname=/storage/ofd_packets [05:07:50]CheckFolder done [05:07:50]ProducePacketName [05:07:50]name=ofd_packets/00072780 [05:07:50]NVStorageSaveData ofd_packets/00072780 [05:07:50]File name is /storage/ofd_packets/00072780 [05:07:50]Write 302 bytes [05:07:50]NVStorageSaveData done [05:07:50]OFDSenderStorePacket done [05:07:50]KKMCreateOFDPacket done [05:07:50]NVStorageSaveData kkm_last_timestamp [05:07:50]File name is /storage/kkm_last_timestamp [05:07:50]Write 4 bytes [05:07:50]NVStorageSaveData done [05:07:50]ExternCall_PrintAddStr [05:07:50]wPrintStart [05:07:50]Write to MH i2c: 01 00 00 73 04 77 [05:07:50]Write i2c OK [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: 01 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: 01 07 00 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 FF 0F 8C [05:07:50]RasterBufferAndPrint [05:07:50]line Счет N : (1)952336 [05:07:50]line ИНН: 02508201610067 [05:07:50]line Контрольно-Кассовый Чек [05:07:50]line ПРОДАЖА [05:07:50]line ТРК (МРК, ГНК) : 22 [05:07:50]line Товар: 2710194210 [05:07:50]line ДТ(л)-К-5 [05:07:50]line 13.130 * 76.20 [05:07:50]line = 1000.51 [05:07:50]line НДС 12% НСП 1% [05:07:50]line > о реализуемом товаре [05:07:50]line ИТОГО: 1000.51 [05:07:50]line НСП 1% : 8.85 [05:07:50]line НДС 12% : 106.25 [05:07:50]line Наличными: 0.00 [05:07:50]line Безнал.: 1000.51 [05:07:50]line Место: АЗС № 113 "Партнер Нефть" [05:07:50]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:07:50]line СНО: Общий режим [05:07:50]line Чек 17 30.10.2024 05:07 [05:07:50]line Смена: 556 ФФД: 1.0 [05:07:50]line ЗНМ: 0300000087 [05:07:50]line РНМ: 0000000000091644 [05:07:50]line Версия ККМ: 001 [05:07:50]line Платежная система: O! деньги [05:07:50]line ФМ: 0000000000874662 [05:07:50]line ФД: 72780 [05:07:50]line ФПД: 139128276831641 [05:07:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T050750&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72780&fm=139128276831641&tin=02508201610067®Number=0000000000091644&sum=100051 [05:07:50]written 0, free lines is 4095 [05:07:50]OFD Sender: Processing packet 72780 [packets to send 278, broken 277] [05:07:50]ProducePacketName [05:07:50]name=ofd_packets/00072780 [05:07:50]OFD Sender: To server: pG, [05:07:50]CommunicateWithHost lk.salyk.kg:30040 [05:07:50]ConnectInit lk.salyk.kg [05:07:50]Write to MH i2c: 01 00 00 9D 04 A1 [05:07:50]Write i2c OK [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: 01 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: 01 07 00 [05:07:50]MH_I2C_Read... [05:07:50]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 E3 0C 97 [05:07:50]RasterBufferAndPrint [05:07:50]line [05:07:50]line [05:07:50]line [05:07:50]line [05:07:50]line [05:07:50]written 0, free lines is 3306 [05:07:50]MH_Cut [05:07:50]Write to MH i2c: D1 01 00 A4 04 01 7A [05:07:50]Write i2c OK [05:07:51]MH_I2C_Read... [05:07:51]Read from MH i2c: D1 [05:07:51]MH_I2C_Read... [05:07:51]Read from MH i2c: D1 01 00 [05:07:51]MH_I2C_Read... [05:07:51]Read from MH i2c: D1 01 00 A4 04 00 79 [05:07:51]Write to MH i2c: 01 00 00 A5 04 A9 [05:07:51]Write i2c OK [05:07:51]MH_I2C_Read... [05:07:51]Connected sock=9 [05:07:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 5B 69 08 01 D2 F3 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 26 BF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1C 01 00 35 04 06 00 7E 89 53 84 CD 99 8B C3 4F 63 3E 47 03 13 [05:07:51]*** Cut start [05:07:51]*** Partial cut [05:07:51]*** CUTSNS_PIN = 1 [05:07:51]*** CUTSNS_PIN = 0 [05:07:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 9D 51 47 00 0D CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1C 01 00 F4 03 04 00 E0 69 21 67 B6 04 01 00 00 67 28 A1 63 4B 69 EA B5 [05:07:51]CommunicateWithHost err = 0 [05:07:51]CheckOFDResponse [05:07:51]1017 (14) - 77093643461234 [05:07:51]1041 (16) - 0000000000874662 [05:07:51]1040 (4) - 72780 [05:07:51]1012 (4) - 29.10.2024 23:04 [05:07:51]1206 (1) - 0 [05:07:51]OFD Sender: Remove packet 72780 [05:07:51]ProducePacketName [05:07:51]name=ofd_packets/00072780 [05:07:51]NVStorageDeleteData [05:07:52]*** Brake cut motor [05:07:52]Read from MH i2c: 01 [05:07:52]MH_I2C_Read... [05:07:52]*** Stop cut motor [05:07:52]*** Cut end [05:07:52]Read from MH i2c: 01 07 00 [05:07:52]MH_I2C_Re[05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:57]recv_with_timeout no data received [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]recv_with_timeout no data received [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:05]recv_with_timeout no data received [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:36]recv_with_timeout no data received [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:53]recv_with_timeout no data received [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:55]recv_with_timeout no data received [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:17]recv_with_timeout no data received [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:37]recv_with_timeout no data received [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22: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:03]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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:44]OFD Sender: No OFD packet to send [05:23:48]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:03]accept exits with 7 [05:26:03]New connection [05:26:03]New thread 3067112804 created [05:26:03]Thread 3066969444 joined [05:26:03]Waiting for new connection... [05:26:03] Sock 7.Parse request [05:26:03]Sock 7.Check first char [05:26:03]Sock 7.First char is OK [05:26:03]request: POST /json_proto HTTP/1.0 [05:26:03]Method: POST [05:26:03]URL: /json_proto [05:26:03]Method is POST - this is cgi request [05:26:03]url: /json_proto [05:26:03]query_string will be loaded in cgi processing [05:26:03]execute_cgi json_proto POST (null) [05:26:03]execute_cgi path=json_proto method=POST [05:26:03]POST find Content-Length [05:26:03]Host: 172.17.43.195:8080 [05:26:03]Content-Length: 682 [05:26:03]Content-Type: application/json [05:26:03] [05:26:03]POST finish read [05:26:03]Found Content-Length = 682 [05:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 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" ] } } [05:26:03]execute_script... [05: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)952337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 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" ] } } [05:26:03]POST & json_proto [05:26:03]process_json_proto [05:26:03]json parsed OK: [05:26:03]protocol is kg_v1.0 [05:26:03]action value=close_receipt [05:26:03]process_action close_receipt [05:26:03]cmd_close_receipt [05:26:03]MH_GetDate [05:26:03]Write to MH i2c: F0 00 00 A9 04 9C [05:26:03]Write i2c OK [05:26:03]MH_I2C_Read... [05:26:03]Read from MH i2c: F0 [05:26:03]MH_I2C_Read... [05:26:03]Read from MH i2c: F0 09 00 [05:26:03]MH_I2C_Read... [05:26:03]Read from MH i2c: F0 09 00 A9 04 00 6D C3 21 67 74 2C AD 66 10 [05:26:03]GetLastDocTimeStamp 1730264870 [05:26:03]current date 1730265965 [05:26:03]FM_GetShiftState [05:26:03]SAM_PROTO_GetShiftState [05:26:03]wFMCommunicate request_size=4 [05:26:03]MH_SAM_APDU [05:26:03]CAPDU: 80 13 01 00 [05:26:03]Write to MH i2c: E2 08 00 AA 04 80 13 01 00 00 00 00 00 2B [05:26:03]Write i2c OK [05:26:03]MH_I2C_Read... [05:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:26:03]Read from MH i2c: E2 [05:26:03]MH_I2C_Read... [05:26:03]Read from MH i2c: E2 0E 00 [05:26:03]MH_I2C_Read... [05:26:03]Read from MH i2c: E2 0E 00 AA 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 FD [05:26:03]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:26:03]wFMCommunicate OK [05:26:03]SAM_PROTO_GetShiftState done [05:26:03]FM_GetShiftState done [05:26:03]opened in 1730247109 [05:26:03]opened+sec_in_day 1730333509 [05:26:03]quantity*price = 150032 [05:26:03]sum+1 = 150033 [05:26:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 18 30.10.2024 05:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72781 ФПД: 113211106930591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T052605&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72781&fm=113211106930591&tin=02508201610067®Number=0000000000091644&sum=150000 [05:26:04]StoreToDocumentArchive [05:26:04]shift 556 fd 72781 [05:26:04]save to /storage/0556/doc_00072781 [05:26:04]save last doc name /storage/0556/doc_00072781 to /storage/kkm_last_doc_name [05:26:04]save OK [05:26:04]Clear old archive folders... [05:26:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:26:04]tlvbuf is 01AD3450 [05:26:04]SAM_PROTO_ClearQueue [05:26:04]wFMCommunicate request_size=4 [05:26:04]MH_SAM_APDU [05:26:04]CAPDU: 80 09 00 00 [05:26:04]Write to MH i2c: E2 08 00 B7 04 80 09 00 00 00 00 00 00 2D [05:26:04]Write i2c OK [05:26:04]MH_I2C_Read... [05:26:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:26:04]Read from MH i2c: E2 [05:26:04]MH_I2C_Read... [05:26:04]Read from MH i2c: E2 03 00 [05:26:04]MH_I2C_Read... [05:26:04]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [05:26:04]RAPDU: 90 00 [05:26:04]wFMCommunicate OK [05:26:04]SAM_PROTO_ClearQueue done [05:26:04]KKMCreateOFDPacket [05:26:04]OFDProtocolAddRootSTLVToBuf [05:26:04]FM_MakeSignedData [05:26:04]FM_MakeSignedData [05:26:04]SAM_PROTO_SignData [05:26:04]wFMCommunicate request_size=4 [05:26:04]MH_SAM_APDU [05:26:04]CAPDU: 80 0D 01 02 [05:26:04]Write to MH i2c: E2 08 00 B8 04 80 0D 01 02 00 00 00 00 35 [05:26:04]Write i2c OK [05:26:04]MH_I2C_Read... [05:26:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:26:04]Read from MH i2c: E2 [05:26:04]MH_I2C_Read... [05:26:04]Read from MH i2c: E2 03 00 [05:26:04]MH_I2C_Read... [05:26:04]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [05:26:04]RAPDU: 90 00 [05:26:04]wFMCommunicate OK [05:26:04]wFMCommunicate request_size=255 [05:26:04]MH_SAM_APDU [05:26:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 6D C3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4D 1C 01 00 35 04 06 00 66 [05:26:04]Write to MH i2c: E2 02 01 B9 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 6D C3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4D 1C 01 00 35 04 06 00 66 00 00 ED [05:26:04]Write i2c OK [05:26:04]MH_I2C_Read... [05:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:26:05]Read from MH i2c: E2 [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: E2 03 00 [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [05:26:05]RAPDU: 90 00 [05:26:05]wFMCommunicate OK [05:26:05]wFMCommunicate request_size=10 [05:26:05]MH_SAM_APDU [05:26:05]CAPDU: 80 0D 02 02 05 F7 03 D0 2F 9F [05:26:05]Write to MH i2c: E2 0D 00 BA 04 80 0D 02 02 05 00 F7 03 D0 2F 9F 00 00 DA [05:26:05]Write i2c OK [05:26:05]MH_I2C_Read... [05:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:26:05]Read from MH i2c: E2 [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: E2 03 00 [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [05:26:05]RAPDU: 90 00 [05:26:05]wFMCommunicate OK [05:26:05]wFMCommunicate request_size=4 [05:26:05]MH_SAM_APDU [05:26:05]CAPDU: 80 0D 03 02 [05:26:05]Write to MH i2c: E2 08 00 BB 04 80 0D 03 02 00 00 00 00 3A [05:26:05]Write i2c OK [05:26:05]MH_I2C_Read... [05:26:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:26:05]Read from MH i2c: E2 [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: E2 0B 00 [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: E2 0B 00 BB 04 00 7D CE A2 E6 9D 7E 47 B7 90 00 27 [05:26:05]RAPDU: 7D CE A2 E6 9D 7E 47 B7 90 00 [05:26:05]wFMCommunicate OK [05:26:05]SAM_PROTO_SignData done [05:26:05]FM_MakeSignedData done [05:26:05]CreateOFDProtocolMessage [05:26:05]wFMCommunicate request_size=4 [05:26:05]MH_SAM_APDU [05:26:05]CAPDU: 80 11 00 00 [05:26:05]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [05:26:05]Write i2c OK [05:26:05]MH_I2C_Read... [05:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:26:05]Read from MH i2c: E2 [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: E2 17 00 [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8E [05:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:26:05]wFMCommunicate OK [05:26:05]CreateOFDProtocolMessage done [05:26:05]OFDSenderStorePacket 72781 [05:26:05]StoreOFDPacket docnum=72781 [05:26:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0F A5 07 01 E3 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6D C3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4D 1C 01 00 35 04 06 00 66 F7 03 D0 2F 9F 7D CE A2 E6 9D 7E 47 B7 [05:26:05]CheckFolder [05:26:05]dirname=/storage/ofd_packets [05:26:05]CheckFolder done [05:26:05]ProducePacketName [05:26:05]name=ofd_packets/00072781 [05:26:05]NVStorageSaveData ofd_packets/00072781 [05:26:05]File name is /storage/ofd_packets/00072781 [05:26:05]Write 301 bytes [05:26:05]NVStorageSaveData done [05:26:05]OFDSenderStorePacket done [05:26:05]KKMCreateOFDPacket done [05:26:05]NVStorageSaveData kkm_last_timestamp [05:26:05]File name is /storage/kkm_last_timestamp [05:26:05]Write 4 bytes [05:26:05]NVStorageSaveData done [05:26:05]ExternCall_PrintAddStr [05:26:05]wPrintStart [05:26:05]Write to MH i2c: 01 00 00 BD 04 C1 [05:26:05]Write i2c OK [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: 01 [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: 01 07 00 [05:26:05]MH_I2C_Read... [05:26:05]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 FF 0F D6 [05:26:05]RasterBufferAndPrint [05:26:05]line Счет N : (1)952337 [05:26:05]line ИНН: 02508201610067 [05:26:05]line Контрольно-Кассовый Чек [05:26:05]line ПРОДАЖА [05:26:05]line ТРК (МРК, ГНК) : 62 [05:26:05]line Товар: 2710124500 [05:26:05]line Аи-95-К-3 [05:26:05]line 20.220 * 74.20 [05:26:05]line = 1500.32 [05:26:05]line НДС 12% НСП 1% [05:26:05]line > о реализуемом товаре [05:26:05]line ОКРУГЛЕНИЕ: -0.32 [05:26:05]line ИТОГО: 1500.00 [05:26:05]line Внесено: 1500.00 [05:26:05]line СДАЧА: 0.00 [05:26:05]line НСП 1% : 13.28 [05:26:05]line НДС 12% : 159.33 [05:26:05]line Наличными: 1500.00 [05:26:05]line Безнал.: 0.00 [05:26:05]line Место: АЗС № 113 "Партнер Нефть" [05:26:05]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:26:05]line СНО: Общий режим [05:26:05]line Чек 18 30.10.2024 05:26 [05:26:05]line Смена: 556 ФФД: 1.0 [05:26:05]line ЗНМ: 0300000087 [05:26:05]line РНМ: 0000000000091644 [05:26:05]line Версия ККМ: 001 [05:26:05]line ФМ: 0000000000874662 [05:26:05]line ФД: 72781 [05:26:05]line ФПД: 113211106930591 [05:26:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T052605&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72781&fm=113211106930591&tin=02508201610067®Number=0000000000091644&sum=150000 [05:26:05]OFD Sender: Processing packet 72781 [packets to send 278, broken 277] [05:26:05]ProducePacketName [05:26:05]name=ofd_packets/00072781 [05:26:05]OFD Sender: To server: pG, [05:26:05]CommunicateWithHost lk.salyk.kg:30040 [05:26:05]ConnectInit lk.salyk.kg [05:26:05]written 0, free lines is 4095 [05:26:06]Write to MH i2c: 01 00 00 E8 04 EC [05:26:06]Write i2c OK [05:26:06]MH_I2C_Read... [05:26:06]Read from MH i2c: 01 [05:26:06]MH_I2C_Read... [05:26:06]Read from MH i2c: 01 07 00 [05:26:06]MH_I2C_Read... [05:26:06]Read from MH i2c: 01 07 00 E8 04 00 00 00 00 00 CD 0C CC [05:26:06]RasterBufferAndPrint [05:26:06]line [05:26:06]line [05:26:06]line [05:26:06]line [05:26:06]line [05:26:06]written 0, free lines is 3283 [05:26:06]MH_Cut [05:26:06]Write to MH i2c: D1 01 00 EF 04 01 C5 [05:26:06]Write i2c OK [05:26:06]MH_I2C_Read... [05:26:06]Read from MH i2c: D1 [05:26:06]MH_I2C_Read... [05:26:06]Read from MH i2c: D1 01 00 [05:26:06]MH_I2C_Read... [05:26:06]Read from MH i2c: D1 01 00 EF 04 00 C4 [05:26:06]Write to MH i2c: 01 00 00 F0 04 F4 [05:26:06]Write i2c OK [05:26:06]MH_I2C_Read... [05:26:06]Connected sock=10 [05:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0F A5 07 01 E3 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6D C3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4D 1C 01 00 35 04 06 00 66 F7 03 D0 2F 9F 7D CE A2 E6 9D 7E 47 B7 [05:26:06]*** Cut start [05:26:06]*** Partial cut [05:26:06]*** CUTSNS_PIN = 1 [05:26:06]*** CUTSNS_PIN = 0 [05:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 04 31 47 00 30 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4D 1C 01 00 F4 03 04 00 27 6E 21 67 B6 04 01 00 00 AC 71 C9 7B E4 E3 27 6F [05:26:07]CommunicateWithHost err = 0 [05:26:07]CheckOFDResponse [05:26:07]1017 (14) - 77093643461234 [05:26:07]1041 (16) - 0000000000874662 [05:26:07]1040 (4) - 72781 [05:26:07]1012 (4) - 29.10.2024 23:22 [05:26:07]1206 (1) - 0 [05:26:07]OFD Sender: Remove packet 72781 [05:26:07]ProducePacketName [05:26:07]name=ofd_packets/00072781 [05:26:07]NVStorageDeleteData [05:26:07]*** Brake cut motor [05:26:07]Read from MH i2c: 01 [05:26:07]MH_I2C_Read... [05:26:07]*** Stop cut motor [05:26:07]*** Cut end [05:26:07]Read from MH i2c: 01 07 00 [05:26:07]MH_I2C_Read... [05:26:07]Read from MH i2c: 01 07 00 F0 04 00 00 00 00 00 FF 0F 09 [05:26:07]process_action close_receipt done [05:26:07]requested_data is exist [05:26:07]produce_requested_data [05:26:07]requested_item fm.sn is exist - process it [05:26:07]wFMCommunicate request_size=4 [05:26:07]MH_SAM_APDU [05:26:07]CAPDU: 80 11 00 00 [05:26:07]Write to MH i2c: E2 08 00 F1 04 80 11 00 00 00 00 00 00 6F [05:26:07]Write i2c OK [05:26:07]MH_I2C_Read... [05:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:26:07]Read from MH i2c: E2 [05:26:07]MH_I2C_Read... [05:26:07]Read from MH i2c: E2 17 00 [05:26:07]MH_I2C_Read... [05:26:07]Read from MH i2c: E2 17 00 F1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C3 [05:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:26:07]wFMCommunicate OK [05:26:07]requested_item fd.num is exist - process it [05:26:07]SAM_PROTO_GetFieldsCounters [05:26:07]wFMCommunicate request_size=4 [05:26:07]MH_SAM_APDU [05:26:07]CAPDU: 80 13 00 00 [05:26:07]Write to MH i2c: E2 08 00 F2 04 80 13 00 00 00 00 00 00 72 [05:26:07]Write i2c OK [05:26:07]MH_I2C_Read... [05:26:07]OFD Sender: No OFD packet to send [05:26:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:26:07]Read from MH i2c: E2 [05:26:07]MH_I2C_Read... [05:26:07]Read from MH i2c: E2 62 00 [05:26:07]MH_I2C_Read... [05:26:07]Read from MH i2c: E2 62 00 F2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4D 1C 01 00 0E 04 04 00 2C 02 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 61 [05:26:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4D 1C 01 00 0E 04 04 00 2C 02 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 [05:26:07]wFMCommunicate OK [05:26:07]SAM_PROTO_GetFieldsCounters done [05:26:07]requested_item shift.num is exist - process it [05:26:07]requested_item shift.opened is exist - process it [05:26:07]req_shift_opened [05:26:07]FM_GetShiftState [05:26:07]SAM_PROTO_GetShiftState [05:26:07]wFMCommunicate request_size=4 [05:26:07]MH_SAM_APDU [05:26:07]CAPDU: 80 13 01 00 [05:26:07]Write to MH i2c: E2 08 00 F3 04 80 13 01 00 00 00 00 00 74 [05:26:07]Write i2c OK [05:26:07]MH_I2C_Read... [05:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:26:07]Read from MH i2c: E2 [05:26:07]MH_I2C_Read... [05:26:07]Read from MH i2c: E2 0E 00 [05:26:07]MH_I2C_Read... [05:26:07]Read from MH i2c: E2 0E 00 F3 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 46 [05:26:07]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:26:07]wFMCommunicate OK [05:26:07]SAM_PROTO_GetShiftState done [05:26:07]FM_GetShiftState done [05:26:07]req_shift_opened done [05:26:07]requested_item shift.open_date is exist - process it [05:26:07]req_shift_open_date [05:26:07]req_shift_open_date done [05:26:07]produce_requested_data done [05:26:07]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72781,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [05:26:07]process_action_free close_receipt [05:26:07]json_value_free [05:26:07]json_value_free done [05:26:07]process_json_proto returns [05:26:07]Send response to host [05:26:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72781,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [05:26:07]free response buf [05:26:07]execute_script done [05:26:07]execute_script returns [05:26:07]free content buf [05:26:07]Sock 7.Close socket [05:26:07]Sock 7.Thread stoped [05:26:12]OFD Sender: No OFD packet to send [05:26:13]recv_with_timeout no data received [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:29]recv_with_timeout no data received [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:43]recv_with_timeout no data received [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:31]recv_with_timeout no data received [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]recv_with_timeout no data received [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:06]recv_with_timeout no data received [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:54]recv_with_timeout no data received [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:05]recv_with_timeout no data received [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:56]recv_with_timeout no data received [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:06]recv_with_timeout no data received [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:18]recv_with_timeout no data received [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:29]recv_with_timeout no data received [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:04]recv_with_timeout no data received [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:18]recv_with_timeout no data received [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:06]recv_with_timeout no data received [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:04]recv_with_timeout no data received [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:45]recv_with_timeout no data received [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:06]recv_with_timeout no data received [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:30]accept exits with 9 [05:42:30]New connection [05:42:30]New thread 3066969444 created [05:42:30]Thread 3067112804 joined [05:42:30]Waiting for new connection... [05:42:30] Sock 9.Parse request [05:42:30]Sock 9.Check first char [05:42:30]Sock 9.First char is OK [05:42:30]request: POST /json_proto HTTP/1.0 [05:42:30]Method: POST [05:42:30]URL: /json_proto [05:42:30]Method is POST - this is cgi request [05:42:30]url: /json_proto [05:42:30]query_string will be loaded in cgi processing [05:42:30]execute_cgi json_proto POST (null) [05:42:30]execute_cgi path=json_proto method=POST [05:42:30]POST find Content-Length [05:42:30]Host: 172.17.43.195:8080 [05:42:30]Content-Length: 792 [05:42:30]Content-Type: application/json [05:42:30] [05:42:30]POST finish read [05:42:30]Found Content-Length = 792 [05:42:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:42:30]execute_script... [05:42: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)952338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:42:30]POST & json_proto [05:42:30]process_json_proto [05:42:30]json parsed OK: [05:42:30]protocol is kg_v1.0 [05:42:30]action value=close_receipt [05:42:30]process_action close_receipt [05:42:30]cmd_close_receipt [05:42:30]MH_GetDate [05:42:30]Write to MH i2c: F0 00 00 F4 04 E7 [05:42:30]Write i2c OK [05:42:30]MH_I2C_Read... [05:42:30]Read from MH i2c: F0 [05:42:30]MH_I2C_Read... [05:42:30]Read from MH i2c: F0 09 00 [05:42:30]MH_I2C_Read... [05:42:30]Read from MH i2c: F0 09 00 F4 04 00 47 C7 21 67 74 2C AD 66 39 [05:42:30]GetLastDocTimeStamp 1730265965 [05:42:30]current date 1730266951 [05:42:30]FM_GetShiftState [05:42:30]SAM_PROTO_GetShiftState [05:42:30]wFMCommunicate request_size=4 [05:42:30]MH_SAM_APDU [05:42:30]CAPDU: 80 13 01 00 [05:42:30]Write to MH i2c: E2 08 00 F5 04 80 13 01 00 00 00 00 00 76 [05:42:30]Write i2c OK [05:42:30]MH_I2C_Read... [05:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:30]Read from MH i2c: E2 [05:42:30]MH_I2C_Read... [05:42:30]Read from MH i2c: E2 0E 00 [05:42:30]MH_I2C_Read... [05:42:30]Read from MH i2c: E2 0E 00 F5 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 48 [05:42:30]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:42:30]wFMCommunicate OK [05:42:30]SAM_PROTO_GetShiftState done [05:42:30]FM_GetShiftState done [05:42:30]opened in 1730247109 [05:42:30]opened+sec_in_day 1730333509 [05:42:30]quantity*price = 0 [05:42:30]sum+1 = 1 [05:42:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 19 30.10.2024 05:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72782 ФПД: 249296253420006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T054231&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72782&fm=249296253420006&tin=02508201610067®Number=0000000000091644&sum=0 [05:42:31]StoreToDocumentArchive [05:42:31]shift 556 fd 72782 [05:42:31]save to /storage/0556/doc_00072782 [05:42:31]save last doc name /storage/0556/doc_00072782 to /storage/kkm_last_doc_name [05:42:31]save OK [05:42:31]Clear old archive folders... [05:42:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:42:31]tlvbuf is 01B66CF0 [05:42:31]SAM_PROTO_ClearQueue [05:42:31]wFMCommunicate request_size=4 [05:42:31]MH_SAM_APDU [05:42:31]CAPDU: 80 09 00 00 [05:42:31]Write to MH i2c: E2 08 00 02 05 80 09 00 00 00 00 00 00 79 [05:42:31]Write i2c OK [05:42:31]MH_I2C_Read... [05:42:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:42:31]Read from MH i2c: E2 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 03 00 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [05:42:31]RAPDU: 90 00 [05:42:31]wFMCommunicate OK [05:42:31]SAM_PROTO_ClearQueue done [05:42:31]KKMCreateOFDPacket [05:42:31]OFDProtocolAddRootSTLVToBuf [05:42:31]FM_MakeSignedData [05:42:31]FM_MakeSignedData [05:42:31]SAM_PROTO_SignData [05:42:31]wFMCommunicate request_size=4 [05:42:31]MH_SAM_APDU [05:42:31]CAPDU: 80 0D 01 02 [05:42:31]Write to MH i2c: E2 08 00 03 05 80 0D 01 02 00 00 00 00 81 [05:42:31]Write i2c OK [05:42:31]MH_I2C_Read... [05:42:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:42:31]Read from MH i2c: E2 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 03 00 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [05:42:31]RAPDU: 90 00 [05:42:31]wFMCommunicate OK [05:42:31]wFMCommunicate request_size=255 [05:42:31]MH_SAM_APDU [05:42:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 47 C7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1C 01 00 35 04 06 00 E2 [05:42:31]Write to MH i2c: E2 02 01 04 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 47 C7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1C 01 00 35 04 06 00 E2 00 00 54 [05:42:31]Write i2c OK [05:42:31]MH_I2C_Read... [05:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:31]Read from MH i2c: E2 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 03 00 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [05:42:31]RAPDU: 90 00 [05:42:31]wFMCommunicate OK [05:42:31]wFMCommunicate request_size=10 [05:42:31]MH_SAM_APDU [05:42:31]CAPDU: 80 0D 02 02 05 BB CE A1 01 E6 [05:42:31]Write to MH i2c: E2 0D 00 05 05 80 0D 02 02 05 00 BB CE A1 01 E6 00 00 9F [05:42:31]Write i2c OK [05:42:31]MH_I2C_Read... [05:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:31]Read from MH i2c: E2 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 03 00 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [05:42:31]RAPDU: 90 00 [05:42:31]wFMCommunicate OK [05:42:31]wFMCommunicate request_size=4 [05:42:31]MH_SAM_APDU [05:42:31]CAPDU: 80 0D 03 02 [05:42:31]Write to MH i2c: E2 08 00 06 05 80 0D 03 02 00 00 00 00 86 [05:42:31]Write i2c OK [05:42:31]MH_I2C_Read... [05:42:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:42:31]Read from MH i2c: E2 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 0B 00 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 0B 00 06 05 00 E9 3E 60 53 C8 1B 68 EC 90 00 98 [05:42:31]RAPDU: E9 3E 60 53 C8 1B 68 EC 90 00 [05:42:31]wFMCommunicate OK [05:42:31]SAM_PROTO_SignData done [05:42:31]FM_MakeSignedData done [05:42:31]CreateOFDProtocolMessage [05:42:31]wFMCommunicate request_size=4 [05:42:31]MH_SAM_APDU [05:42:31]CAPDU: 80 11 00 00 [05:42:31]Write to MH i2c: E2 08 00 07 05 80 11 00 00 00 00 00 00 86 [05:42:31]Write i2c OK [05:42:31]MH_I2C_Read... [05:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:31]Read from MH i2c: E2 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 17 00 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: E2 17 00 07 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DA [05:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:42:31]wFMCommunicate OK [05:42:31]CreateOFDProtocolMessage done [05:42:31]OFDSenderStorePacket 72782 [05:42:31]StoreOFDPacket docnum=72782 [05:42:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D6 7A 07 01 5F D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 47 C7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1C 01 00 35 04 06 00 E2 BB CE A1 01 E6 E9 3E 60 53 C8 1B 68 EC [05:42:31]CheckFolder [05:42:31]dirname=/storage/ofd_packets [05:42:31]CheckFolder done [05:42:31]ProducePacketName [05:42:31]name=ofd_packets/00072782 [05:42:31]NVStorageSaveData ofd_packets/00072782 [05:42:31]File name is /storage/ofd_packets/00072782 [05:42:31]Write 301 bytes [05:42:31]NVStorageSaveData done [05:42:31]OFDSenderStorePacket done [05:42:31]KKMCreateOFDPacket done [05:42:31]NVStorageSaveData kkm_last_timestamp [05:42:31]File name is /storage/kkm_last_timestamp [05:42:31]Write 4 bytes [05:42:31]NVStorageSaveData done [05:42:31]ExternCall_PrintAddStr [05:42:31]wPrintStart [05:42:31]Write to MH i2c: 01 00 00 08 05 0D [05:42:31]Write i2c OK [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: 01 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: 01 07 00 [05:42:31]MH_I2C_Read... [05:42:31]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 FF 0F 22 [05:42:31]RasterBufferAndPrint [05:42:31]line Счет N : (1)952338 [05:42:31]line ИНН: 02508201610067 [05:42:31]line Контрольно-Кассовый Чек [05:42:31]line ПРОДАЖА [05:42:31]line ТРК (МРК, ГНК) : 53 [05:42:31]line Товар: 2710124130 [05:42:31]line Аи-92-К-5 [05:42:31]line 30.000 * 0.00 [05:42:31]line = 0.00 [05:42:31]line НДС 12% НСП 1% [05:42:31]line > о реализуемом товаре [05:42:31]line ИТОГО: 0.00 [05:42:31]line НСП 1% : 0.00 [05:42:31]line НДС 12% : 0.00 [05:42:31]line Наличными: 0.00 [05:42:31]line Безнал.: 0.00 [05:42:31]line Место: АЗС № 113 "Партнер Нефть" [05:42:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:42:31]line СНО: Общий режим [05:42:31]line Чек 19 30.10.2024 05:42 [05:42:31]line Смена: 556 ФФД: 1.0 [05:42:31]line ЗНМ: 0300000087 [05:42:31]line РНМ: 0000000000091644 [05:42:31]line Версия ККМ: 001 [05:42:31]line Талоны: Топливная Карта [05:42:31]line 03047 [05:42:31]line ФМ: 0000000000874662 [05:42:31]line ФД: 72782 [05:42:31]line ФПД: 249296253420006 [05:42:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T054231&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72782&fm=249296253420006&tin=02508201610067®Number=0000000000091644&sum=0 [05:42:31]written 0, free lines is 4095 [05:42:31]OFD Sender: Processing packet 72782 [packets to send 278, broken 277] [05:42:31]ProducePacketName [05:42:31]name=ofd_packets/00072782 [05:42:31]OFD Sender: To server: pG, [05:42:31]CommunicateWithHost lk.salyk.kg:30040 [05:42:31]ConnectInit lk.salyk.kg [05:42:32]Write to MH i2c: 01 00 00 32 05 37 [05:42:32]Write i2c OK [05:42:32]MH_I2C_Read... [05:42:32]Read from MH i2c: 01 [05:42:32]MH_I2C_Read... [05:42:32]Read from MH i2c: 01 07 00 [05:42:32]MH_I2C_Read... [05:42:32]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 DF 0C 29 [05:42:32]RasterBufferAndPrint [05:42:32]line [05:42:32]line [05:42:32]line [05:42:32]line [05:42:32]line [05:42:32]written 0, free lines is 3301 [05:42:32]MH_Cut [05:42:32]Write to MH i2c: D1 01 00 39 05 01 10 [05:42:32]Write i2c OK [05:42:32]MH_I2C_Read... [05:42:32]Read from MH i2c: D1 [05:42:32]MH_I2C_Read... [05:42:32]Read from MH i2c: D1 01 00 [05:42:32]MH_I2C_Read... [05:42:32]Read from MH i2c: D1 01 00 39 05 00 0F [05:42:32]Write to MH i2c: 01 00 00 3A 05 3F [05:42:32]Write i2c OK [05:42:32]MH_I2C_Read... [05:42:33]*** Cut start [05:42:33]*** Partial cut [05:42:33]*** CUTSNS_PIN = 1 [05:42:33]*** CUTSNS_PIN = 0 [05:42:33]*** Brake cut motor [05:42:33]Read from MH i2c: 01 [05:42:33]MH_I2C_Read... [05:42:33]*** Stop cut motor [05:42:33]*** Cut end [05:42:33]Read from MH i2c: 01 07 00 [05:42:33]MH_I2C_Read... [05:42:33]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 FF 0F 54 [05:42:33]process_action close_receipt done [05:42:33]requested_data is exist [05:42:33]produce_requested_data [05:42:33]requested_item fm.sn is exist - process it [05:42:33]wFMCommunicate request_size=4 [05:42:33]MH_SAM_APDU [05:42:33]CAPDU: 80 11 00 00 [05:42:33]Write to MH i2c: E2 08 00 3B 05 80 11 00 00 00 00 00 00 BA [05:42:33]Write i2c OK [05:42:33]MH_I2C_Read... [05:42:33]Read from MH i2c: E2 [05:42:33]MH_I2C_Read... [05:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:33]Read from MH i2c: E2 17 00 [05:42:33]MH_I2C_Read... [05:42:33]Read from MH i2c: E2 17 00 3B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 0E [05:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:42:33]wFMCommunicate OK [05:42:33]requested_item fd.num is exist - process it [05:42:33]SAM_PROTO_GetFieldsCounters [05:42:33]wFMCommunicate request_size=4 [05:42:33]MH_SAM_APDU [05:42:33]CAPDU: 80 13 00 00 [05:42:33]Write to MH i2c: E2 08 00 3C 05 80 13 00 00 00 00 00 00 BD [05:42:33]Write i2c OK [05:42:33]MH_I2C_Read... [05:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:42:33]Read from MH i2c: E2 [05:42:33]MH_I2C_Read... [05:42:33]Read from MH i2c: E2 62 00 [05:42:33]MH_I2C_Read... [05:42:33]Read from MH i2c: E2 62 00 3C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4E 1C 01 00 0E 04 04 00 2C 02 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 B0 [05:42:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4E 1C 01 00 0E 04 04 00 2C 02 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 [05:42:33]wFMCommunicate OK [05:42:33]SAM_PROTO_GetFieldsCounters done [05:42:33]requested_item shift.num is exist - process it [05:42:33]requested_item shift.opened is exist - process it [05:42:33]req_shift_opened [05:42:33]FM_GetShiftState [05:42:33]SAM_PROTO_GetShiftState [05:42:33]wFMCommunicate request_size=4 [05:42:33]MH_SAM_APDU [05:42:33]CAPDU: 80 13 01 00 [05:42:33]Write to MH i2c: E2 08 00 3D 05 80 13 01 00 00 00 00 00 BF [05:42:33]Write i2c OK [05:42:33]MH_I2C_Read... [05:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:33]Read from MH i2c: E2 [05:42:33]MH_I2C_Read... [05:42:33]Read from MH i2c: E2 0E 00 [05:42:33]MH_I2C_Read... [05:42:33]Read from MH i2c: E2 0E 00 3D 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 91 [05:42:33]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:42:33]wFMCommunicate OK [05:42:33]SAM_PROTO_GetShiftState done [05:42:33]FM_GetShiftState done [05:42:33]req_shift_opened done [05:42:33]requested_item shift.open_date is exist - process it [05:42:33]req_shift_open_date [05:42:33]req_shift_open_date done [05:42:33]produce_requested_data done [05:42:33]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72782,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [05:42:33]process_action_free close_receipt [05:42:33]json_value_free [05:42:33]json_value_free done [05:42:33]process_json_proto returns [05:42:33]Send response to host [05:42:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72782,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [05:42:33]free response buf [05:42:33]execute_script done [05:42:33]execute_script returns [05:42:33]free content buf [05:42:33]Sock 9.Close socket [05:42:33]Sock 9.Thread stoped [05:42:35]recv_with_timeout no data received [05:42:38]Connected sock=11 [05:42:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D6 7A 07 01 5F D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 47 C7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1C 01 00 35 04 06 00 E2 BB CE A1 01 E6 E9 3E 60 53 C8 1B 68 EC [05:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A5 69 47 00 33 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1C 01 00 F4 03 04 00 07 72 21 67 B6 04 01 00 00 74 8A B5 A1 5C D4 24 CA [05:42:38]CommunicateWithHost err = 0 [05:42:38]CheckOFDResponse [05:42:38]1017 (14) - 77093643461234 [05:42:38]1041 (16) - 0000000000874662 [05:42:38]1040 (4) - 72782 [05:42:38]1012 (4) - 29.10.2024 23:38 [05:42:38]1206 (1) - 0 [05:42:38]OFD Sender: Remove packet 72782 [05:42:38]ProducePacketName [05:42:38]name=ofd_packets/00072782 [05:42:38]NVStorageDeleteData [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:55]recv_with_timeout no data received [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:06]recv_with_timeout no data received [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]accept exits with 7 [05:44:39]New connection [05:44:39]New thread 3067112804 created [05:44:39]Thread 3066969444 joined [05:44:39]Waiting for new connection... [05:44:39] Sock 7.Parse request [05:44:39]Sock 7.Check first char [05:44:39]Sock 7.First char is OK [05:44:39]request: POST /json_proto HTTP/1.0 [05:44:39]Method: POST [05:44:39]URL: /json_proto [05:44:39]Method is POST - this is cgi request [05:44:39]url: /json_proto [05:44:39]query_string will be loaded in cgi processing [05:44:39]execute_cgi json_proto POST (null) [05:44:39]execute_cgi path=json_proto method=POST [05:44:39]POST find Content-Length [05:44:39]Host: 172.17.43.195:8080 [05:44:39]Content-Length: 792 [05:44:39]Content-Type: application/json [05:44:39] [05:44:39]POST finish read [05:44:39]Found Content-Length = 792 [05:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952339", "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" : 15.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:39]execute_script... [05:44:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952339", "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" : 15.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:39]POST & json_proto [05:44:39]process_json_proto [05:44:39]json parsed OK: [05:44:39]protocol is kg_v1.0 [05:44:39]action value=close_receipt [05:44:39]process_action close_receipt [05:44:39]cmd_close_receipt [05:44:39]MH_GetDate [05:44:39]Write to MH i2c: F0 00 00 3E 05 32 [05:44:39]Write i2c OK [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: F0 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: F0 09 00 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: F0 09 00 3E 05 00 C8 C7 21 67 74 2C AD 66 05 [05:44:39]GetLastDocTimeStamp 1730266951 [05:44:39]current date 1730267080 [05:44:39]FM_GetShiftState [05:44:39]SAM_PROTO_GetShiftState [05:44:39]wFMCommunicate request_size=4 [05:44:39]MH_SAM_APDU [05:44:39]CAPDU: 80 13 01 00 [05:44:39]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [05:44:39]Write i2c OK [05:44:39]MH_I2C_Read... [05:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:39]Read from MH i2c: E2 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: E2 0E 00 [05:44:39]MH_I2C_Read... [05:44:39]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 93 [05:44:39]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:44:39]wFMCommunicate OK [05:44:39]SAM_PROTO_GetShiftState done [05:44:39]FM_GetShiftState done [05:44:39]opened in 1730247109 [05:44:39]opened+sec_in_day 1730333509 [05:44:39]quantity*price = 0 [05:44:39]sum+1 = 1 [05:44:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 20 30.10.2024 05:44 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72783 ФПД: 93758874870636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T054440&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72783&fm=93758874870636&tin=02508201610067®Number=0000000000091644&sum=0 [05:44:40]StoreToDocumentArchive [05:44:40]shift 556 fd 72783 [05:44:40]save to /storage/0556/doc_00072783 [05:44:40]save last doc name /storage/0556/doc_00072783 to /storage/kkm_last_doc_name [05:44:40]save OK [05:44:40]Clear old archive folders... [05:44:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:44:40]tlvbuf is 01AD3440 [05:44:40]SAM_PROTO_ClearQueue [05:44:40]wFMCommunicate request_size=4 [05:44:40]MH_SAM_APDU [05:44:40]CAPDU: 80 09 00 00 [05:44:40]Write to MH i2c: E2 08 00 4C 05 80 09 00 00 00 00 00 00 C3 [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:44:40]Read from MH i2c: E2 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 03 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [05:44:40]RAPDU: 90 00 [05:44:40]wFMCommunicate OK [05:44:40]SAM_PROTO_ClearQueue done [05:44:40]KKMCreateOFDPacket [05:44:40]OFDProtocolAddRootSTLVToBuf [05:44:40]FM_MakeSignedData [05:44:40]FM_MakeSignedData [05:44:40]SAM_PROTO_SignData [05:44:40]wFMCommunicate request_size=4 [05:44:40]MH_SAM_APDU [05:44:40]CAPDU: 80 0D 01 02 [05:44:40]Write to MH i2c: E2 08 00 4D 05 80 0D 01 02 00 00 00 00 CB [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:44:40]Read from MH i2c: E2 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 03 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [05:44:40]RAPDU: 90 00 [05:44:40]wFMCommunicate OK [05:44:40]wFMCommunicate request_size=255 [05:44:40]MH_SAM_APDU [05:44:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 14 00 00 00 F4 03 04 00 C8 C7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1C 01 00 35 04 06 00 55 [05:44:40]Write to MH i2c: E2 02 01 4E 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 14 00 00 00 F4 03 04 00 C8 C7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1C 01 00 35 04 06 00 55 00 00 C1 [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:40]Read from MH i2c: E2 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 03 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [05:44:40]RAPDU: 90 00 [05:44:40]wFMCommunicate OK [05:44:40]wFMCommunicate request_size=10 [05:44:40]MH_SAM_APDU [05:44:40]CAPDU: 80 0D 02 02 05 45 F0 6E 63 6C [05:44:40]Write to MH i2c: E2 0D 00 4F 05 80 0D 02 02 05 00 45 F0 6E 63 6C 00 00 4A [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:40]Read from MH i2c: E2 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 03 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [05:44:40]RAPDU: 90 00 [05:44:40]wFMCommunicate OK [05:44:40]wFMCommunicate request_size=4 [05:44:40]MH_SAM_APDU [05:44:40]CAPDU: 80 0D 03 02 [05:44:40]Write to MH i2c: E2 08 00 50 05 80 0D 03 02 00 00 00 00 D0 [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:44:40]Read from MH i2c: E2 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 0B 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 0B 00 50 05 00 B7 6F 40 AD 2F FD A6 B2 90 00 68 [05:44:40]RAPDU: B7 6F 40 AD 2F FD A6 B2 90 00 [05:44:40]wFMCommunicate OK [05:44:40]SAM_PROTO_SignData done [05:44:40]FM_MakeSignedData done [05:44:40]CreateOFDProtocolMessage [05:44:40]wFMCommunicate request_size=4 [05:44:40]MH_SAM_APDU [05:44:40]CAPDU: 80 11 00 00 [05:44:40]Write to MH i2c: E2 08 00 51 05 80 11 00 00 00 00 00 00 D0 [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:40]Read from MH i2c: E2 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 17 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: E2 17 00 51 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 24 [05:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:44:40]wFMCommunicate OK [05:44:40]CreateOFDProtocolMessage done [05:44:40]OFDSenderStorePacket 72783 [05:44:40]StoreOFDPacket docnum=72783 [05:44:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D5 04 07 01 F8 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 14 00 00 00 F4 03 04 00 C8 C7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1C 01 00 35 04 06 00 55 45 F0 6E 63 6C B7 6F 40 AD 2F FD A6 B2 [05:44:40]CheckFolder [05:44:40]dirname=/storage/ofd_packets [05:44:40]CheckFolder done [05:44:40]ProducePacketName [05:44:40]name=ofd_packets/00072783 [05:44:40]NVStorageSaveData ofd_packets/00072783 [05:44:40]File name is /storage/ofd_packets/00072783 [05:44:40]Write 301 bytes [05:44:40]NVStorageSaveData done [05:44:40]OFDSenderStorePacket done [05:44:40]KKMCreateOFDPacket done [05:44:40]NVStorageSaveData kkm_last_timestamp [05:44:40]File name is /storage/kkm_last_timestamp [05:44:40]Write 4 bytes [05:44:40]NVStorageSaveData done [05:44:40]ExternCall_PrintAddStr [05:44:40]wPrintStart [05:44:40]Write to MH i2c: 01 00 00 52 05 57 [05:44:40]Write i2c OK [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: 01 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: 01 07 00 [05:44:40]MH_I2C_Read... [05:44:40]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 FF 0F 6C [05:44:40]RasterBufferAndPrint [05:44:40]line Счет N : (1)952339 [05:44:40]line ИНН: 02508201610067 [05:44:40]line Контрольно-Кассовый Чек [05:44:40]line ПРОДАЖА [05:44:40]line ТРК (МРК, ГНК) : 42 [05:44:40]line Товар: 2710124130 [05:44:40]line Аи-92-К-5 [05:44:40]line 15.000 * 0.00 [05:44:40]line = 0.00 [05:44:40]line НДС 12% НСП 1% [05:44:40]line > о реализуемом товаре [05:44:40]line ИТОГО: 0.00 [05:44:40]line НСП 1% : 0.00 [05:44:40]line НДС 12% : 0.00 [05:44:40]line Наличными: 0.00 [05:44:40]line Безнал.: 0.00 [05:44:40]line Место: АЗС № 113 "Партнер Нефть" [05:44:40]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:44:40]line СНО: Общий режим [05:44:40]line Чек 20 30.10.2024 05:44 [05:44:40]line Смена: 556 ФФД: 1.0 [05:44:40]line ЗНМ: 0300000087 [05:44:40]line РНМ: 0000000000091644 [05:44:40]line Версия ККМ: 001 [05:44:40]line Талоны: Топливная Карта [05:44:40]line 03047 [05:44:40]line ФМ: 0000000000874662 [05:44:40]line ФД: 72783 [05:44:40]line ФПД: 93758874870636 [05:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T054440&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72783&fm=93758874870636&tin=02508201610067®Number=0000000000091644&sum=0 [05:44:40]written 0, free lines is 4095 [05:44:40]OFD Sender: Processing packet 72783 [packets to send 278, broken 277] [05:44:40]ProducePacketName [05:44:40]name=ofd_packets/00072783 [05:44:40]OFD Sender: To server: pG, [05:44:40]CommunicateWithHost lk.salyk.kg:30040 [05:44:40]ConnectInit lk.salyk.kg [05:44:41]Write to MH i2c: 01 00 00 7C 05 81 [05:44:41]Write i2c OK [05:44:41]MH_I2C_Read... [05:44:41]Read from MH i2c: 01 [05:44:41]MH_I2C_Read... [05:44:41]Read from MH i2c: 01 07 00 [05:44:41]MH_I2C_Read... [05:44:41]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 E0 0C 74 [05:44:41]RasterBufferAndPrint [05:44:41]line [05:44:41]line [05:44:41]line [05:44:41]line [05:44:41]line [05:44:41]written 0, free lines is 3302 [05:44:41]MH_Cut [05:44:41]Write to MH i2c: D1 01 00 83 05 01 5A [05:44:41]Write i2c OK [05:44:41]MH_I2C_Read... [05:44:41]Read from MH i2c: D1 [05:44:41]MH_I2C_Read... [05:44:41]Read from MH i2c: D1 01 00 [05:44:41]MH_I2C_Read... [05:44:41]Read from MH i2c: D1 01 00 83 05 00 59 [05:44:41]Write to MH i2c: 01 00 00 84 05 89 [05:44:41]Write i2c OK [05:44:41]MH_I2C_Read... [05:44:41]Connected sock=9 [05:44:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D5 04 07 01 F8 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 14 00 00 00 F4 03 04 00 C8 C7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1C 01 00 35 04 06 00 55 45 F0 6E 63 6C B7 6F 40 AD 2F FD A6 B2 [05:44:42]*** Cut start [05:44:42]*** Partial cut [05:44:42]*** CUTSNS_PIN = 1 [05:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 42 35 47 00 46 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 38 37 34 36 36 32 10 04 04 00 4F 1C 01 00 F4 03 04 00 82 72 21 67 B6 04 01 00 00 8B 4E 03 E4 B2 D2 A8 68 [05:44:42]CommunicateWithHost err = 0 [05:44:42]CheckOFDResponse [05:44:42]1017 (14) - 77093643461234 [05:44:42]1041 (16) - 0000000000874662 [05:44:42]1040 (4) - 72783 [05:44:42]1012 (4) - 29.10.2024 23:40 [05:44:42]1206 (1) - 0 [05:44:42]OFD Sender: Remove packet 72783 [05:44:42]ProducePacketName [05:44:42]name=ofd_packets/00072783 [05:44:42]NVStorageDeleteData [05:44:42]*** CUTSNS_PIN = 0 [05:44:42]*** Brake cut motor [05:44:42]OFD Sender: No OFD packet to send [05:44:42]Read from MH i2c: 01 [05:44:42]MH_I2C_Read... [05:44:42]*** Stop cut motor [05:44:42]*** Cut end [05:44:42]Read from MH i2c: 01 07 00 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: 01 07 00 84 05 00 00 00 00 00 FF 0F 9E [05:44:42]process_action close_receipt done [05:44:42]requested_data is exist [05:44:42]produce_requested_data [05:44:42]requested_item fm.sn is exist - process it [05:44:42]wFMCommunicate request_size=4 [05:44:42]MH_SAM_APDU [05:44:42]CAPDU: 80 11 00 00 [05:44:42]Write to MH i2c: E2 08 00 85 05 80 11 00 00 00 00 00 00 04 [05:44:42]Write i2c OK [05:44:42]MH_I2C_Read... [05:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:42]Read from MH i2c: E2 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: E2 17 00 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: E2 17 00 85 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 58 [05:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:44:42]wFMCommunicate OK [05:44:42]requested_item fd.num is exist - process it [05:44:42]SAM_PROTO_GetFieldsCounters [05:44:42]wFMCommunicate request_size=4 [05:44:42]MH_SAM_APDU [05:44:42]CAPDU: 80 13 00 00 [05:44:42]Write to MH i2c: E2 08 00 86 05 80 13 00 00 00 00 00 00 07 [05:44:42]Write i2c OK [05:44:42]MH_I2C_Read... [05:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:44:42]Read from MH i2c: E2 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: E2 62 00 [05:44:42]MH_I2C_Read... [05:44:42]Read from MH i2c: E2 62 00 86 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4F 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [05:44:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4F 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:44:43]wFMCommunicate OK [05:44:43]SAM_PROTO_GetFieldsCounters done [05:44:43]requested_item shift.num is exist - process it [05:44:43]requested_item shift.opened is exist - process it [05:44:43]req_shift_opened [05:44:43]FM_GetShiftState [05:44:43]SAM_PROTO_GetShiftState [05:44:43]wFMCommunicate request_size=4 [05:44:43]MH_SAM_APDU [05:44:43]CAPDU: 80 13 01 00 [05:44:43]Write to MH i2c: E2 08 00 87 05 80 13 01 00 00 00 00 00 09 [05:44:43]Write i2c OK [05:44:43]MH_I2C_Read... [05:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:43]Read from MH i2c: E2 [05:44:43]MH_I2C_Read... [05:44:43]Read from MH i2c: E2 0E 00 [05:44:43]MH_I2C_Read... [05:44:43]Read from MH i2c: E2 0E 00 87 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 DB [05:44:43]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:44:43]wFMCommunicate OK [05:44:43]SAM_PROTO_GetShiftState done [05:44:43]FM_GetShiftState done [05:44:43]req_shift_opened done [05:44:43]requested_item shift.open_date is exist - process it [05:44:43]req_shift_open_date [05:44:43]req_shift_open_date done [05:44:43]produce_requested_data done [05:44:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72783,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [05:44:43]process_action_free close_receipt [05:44:43]json_value_free [05:44:43]json_value_free done [05:44:43]process_json_proto returns [05:44:43]Send response to host [05:44:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72783,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [05:44:43]free response buf [05:44:43]execute_script done [05:44:43]execute_script returns [05:44:43]free content buf [05:44:43]Sock 7.Close socket [05:44:43]Sock 7.Thread stoped [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:18]accept exits with 10 [05:49:18]New connection [05:49:18]New thread 3066969444 created [05:49:18]Thread 3067112804 joined [05:49:18]Waiting for new connection... [05:49:18] Sock 10.Parse request [05:49:18]Sock 10.Check first char [05:49:18]Sock 10.First char is OK [05:49:18]request: POST /json_proto HTTP/1.0 [05:49:18]Method: POST [05:49:18]URL: /json_proto [05:49:18]Method is POST - this is cgi request [05:49:18]url: /json_proto [05:49:18]query_string will be loaded in cgi processing [05:49:18]execute_cgi json_proto POST (null) [05:49:18]execute_cgi path=json_proto method=POST [05:49:18]POST find Content-Length [05:49:18]Host: 172.17.43.195:8080 [05:49:18]Content-Length: 792 [05:49:18]Content-Type: application/json [05:49:18] [05:49:18]POST finish read [05:49:18]Found Content-Length = 792 [05:49:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:49:18]execute_script... [05:49: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)952340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:49:18]POST & json_proto [05:49:18]process_json_proto [05:49:18]json parsed OK: [05:49:18]protocol is kg_v1.0 [05:49:18]action value=close_receipt [05:49:18]process_action close_receipt [05:49:18]cmd_close_receipt [05:49:18]MH_GetDate [05:49:18]Write to MH i2c: F0 00 00 88 05 7C [05:49:18]Write i2c OK [05:49:18]MH_I2C_Read... [05:49:18]Read from MH i2c: F0 [05:49:18]MH_I2C_Read... [05:49:18]Read from MH i2c: F0 09 00 [05:49:18]MH_I2C_Read... [05:49:18]Read from MH i2c: F0 09 00 88 05 00 E0 C8 21 67 74 2C AD 66 68 [05:49:18]GetLastDocTimeStamp 1730267080 [05:49:18]current date 1730267360 [05:49:18]FM_GetShiftState [05:49:18]SAM_PROTO_GetShiftState [05:49:18]wFMCommunicate request_size=4 [05:49:18]MH_SAM_APDU [05:49:18]CAPDU: 80 13 01 00 [05:49:18]Write to MH i2c: E2 08 00 89 05 80 13 01 00 00 00 00 00 0B [05:49:18]Write i2c OK [05:49:18]MH_I2C_Read... [05:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:19]Read from MH i2c: E2 [05:49:19]MH_I2C_Read... [05:49:19]Read from MH i2c: E2 0E 00 [05:49:19]MH_I2C_Read... [05:49:19]Read from MH i2c: E2 0E 00 89 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 DD [05:49:19]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:49:19]wFMCommunicate OK [05:49:19]SAM_PROTO_GetShiftState done [05:49:19]FM_GetShiftState done [05:49:19]opened in 1730247109 [05:49:19]opened+sec_in_day 1730333509 [05:49:19]quantity*price = 0 [05:49:19]sum+1 = 1 [05:49:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 21 30.10.2024 05:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72784 ФПД: 207409232683399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T054920&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72784&fm=207409232683399&tin=02508201610067®Number=0000000000091644&sum=0 [05:49:20]StoreToDocumentArchive [05:49:20]shift 556 fd 72784 [05:49:20]save to /storage/0556/doc_00072784 [05:49:20]save last doc name /storage/0556/doc_00072784 to /storage/kkm_last_doc_name [05:49:20]save OK [05:49:20]Clear old archive folders... [05:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:49:20]tlvbuf is 01B2BCC0 [05:49:20]SAM_PROTO_ClearQueue [05:49:20]wFMCommunicate request_size=4 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 09 00 00 [05:49:20]Write to MH i2c: E2 08 00 96 05 80 09 00 00 00 00 00 00 0D [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [05:49:20]RAPDU: 90 00 [05:49:20]wFMCommunicate OK [05:49:20]SAM_PROTO_ClearQueue done [05:49:20]KKMCreateOFDPacket [05:49:20]OFDProtocolAddRootSTLVToBuf [05:49:20]FM_MakeSignedData [05:49:20]FM_MakeSignedData [05:49:20]SAM_PROTO_SignData [05:49:20]wFMCommunicate request_size=4 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 0D 01 02 [05:49:20]Write to MH i2c: E2 08 00 97 05 80 0D 01 02 00 00 00 00 15 [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [05:49:20]RAPDU: 90 00 [05:49:20]wFMCommunicate OK [05:49:20]wFMCommunicate request_size=255 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 15 00 00 00 F4 03 04 00 E0 C8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1C 01 00 35 04 06 00 BC [05:49:20]Write to MH i2c: E2 02 01 98 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 15 00 00 00 F4 03 04 00 E0 C8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1C 01 00 35 04 06 00 BC 00 00 8D [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [05:49:20]RAPDU: 90 00 [05:49:20]wFMCommunicate OK [05:49:20]wFMCommunicate request_size=10 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 0D 02 02 05 A3 39 A3 21 87 [05:49:20]Write to MH i2c: E2 0D 00 99 05 80 0D 02 02 05 00 A3 39 A3 21 87 00 00 49 [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [05:49:20]RAPDU: 90 00 [05:49:20]wFMCommunicate OK [05:49:20]wFMCommunicate request_size=4 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 0D 03 02 [05:49:20]Write to MH i2c: E2 08 00 9A 05 80 0D 03 02 00 00 00 00 1A [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 0B 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 0B 00 9A 05 00 A1 8B 25 C9 CB 5F DC DB 90 00 16 [05:49:20]RAPDU: A1 8B 25 C9 CB 5F DC DB 90 00 [05:49:20]wFMCommunicate OK [05:49:20]SAM_PROTO_SignData done [05:49:20]FM_MakeSignedData done [05:49:20]CreateOFDProtocolMessage [05:49:20]wFMCommunicate request_size=4 [05:49:20]MH_SAM_APDU [05:49:20]CAPDU: 80 11 00 00 [05:49:20]Write to MH i2c: E2 08 00 9B 05 80 11 00 00 00 00 00 00 1A [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:20]Read from MH i2c: E2 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 17 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: E2 17 00 9B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 6E [05:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:49:20]wFMCommunicate OK [05:49:20]CreateOFDProtocolMessage done [05:49:20]OFDSenderStorePacket 72784 [05:49:20]StoreOFDPacket docnum=72784 [05:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8D 41 07 01 96 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 15 00 00 00 F4 03 04 00 E0 C8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1C 01 00 35 04 06 00 BC A3 39 A3 21 87 A1 8B 25 C9 CB 5F DC DB [05:49:20]CheckFolder [05:49:20]dirname=/storage/ofd_packets [05:49:20]CheckFolder done [05:49:20]ProducePacketName [05:49:20]name=ofd_packets/00072784 [05:49:20]NVStorageSaveData ofd_packets/00072784 [05:49:20]File name is /storage/ofd_packets/00072784 [05:49:20]Write 301 bytes [05:49:20]NVStorageSaveData done [05:49:20]OFDSenderStorePacket done [05:49:20]KKMCreateOFDPacket done [05:49:20]NVStorageSaveData kkm_last_timestamp [05:49:20]File name is /storage/kkm_last_timestamp [05:49:20]Write 4 bytes [05:49:20]NVStorageSaveData done [05:49:20]ExternCall_PrintAddStr [05:49:20]wPrintStart [05:49:20]Write to MH i2c: 01 00 00 9C 05 A1 [05:49:20]Write i2c OK [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: 01 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: 01 07 00 [05:49:20]MH_I2C_Read... [05:49:20]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 FF 0F B6 [05:49:20]RasterBufferAndPrint [05:49:20]line Счет N : (1)952340 [05:49:20]line ИНН: 02508201610067 [05:49:20]line Контрольно-Кассовый Чек [05:49:20]line ПРОДАЖА [05:49:20]line ТРК (МРК, ГНК) : 63 [05:49:20]line Товар: 2710124130 [05:49:20]line Аи-92-К-5 [05:49:20]line 15.000 * 0.00 [05:49:20]line = 0.00 [05:49:20]line НДС 12% НСП 1% [05:49:20]line > о реализуемом товаре [05:49:20]line ИТОГО: 0.00 [05:49:20]line НСП 1% : 0.00 [05:49:20]line НДС 12% : 0.00 [05:49:20]line Наличными: 0.00 [05:49:20]line Безнал.: 0.00 [05:49:20]line Место: АЗС № 113 "Партнер Нефть" [05:49:20]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:49:20]line СНО: Общий режим [05:49:20]line Чек 21 30.10.2024 05:49 [05:49:20]line Смена: 556 ФФД: 1.0 [05:49:20]line ЗНМ: 0300000087 [05:49:20]line РНМ: 0000000000091644 [05:49:20]line Версия ККМ: 001 [05:49:20]line Талоны: Топливная Карта [05:49:20]line 03047 [05:49:20]line ФМ: 0000000000874662 [05:49:20]line ФД: 72784 [05:49:20]line ФПД: 207409232683399 [05:49:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T054920&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72784&fm=207409232683399&tin=02508201610067®Number=0000000000091644&sum=0 [05:49:20]written 0, free lines is 4095 [05:49:20]OFD Sender: Processing packet 72784 [packets to send 278, broken 277] [05:49:20]ProducePacketName [05:49:20]name=ofd_packets/00072784 [05:49:20]OFD Sender: To server: pG, [05:49:20]CommunicateWithHost lk.salyk.kg:30040 [05:49:20]ConnectInit lk.salyk.kg [05:49:21]Write to MH i2c: 01 00 00 C6 05 CB [05:49:21]Write i2c OK [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: 01 [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: 01 07 00 [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: 01 07 00 C6 05 00 00 00 00 00 E4 0C C2 [05:49:21]RasterBufferAndPrint [05:49:21]line [05:49:21]line [05:49:21]line [05:49:21]line [05:49:21]line [05:49:21]written 0, free lines is 3306 [05:49:21]MH_Cut [05:49:21]Write to MH i2c: D1 01 00 CD 05 01 A4 [05:49:21]Write i2c OK [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: D1 [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: D1 01 00 [05:49:21]MH_I2C_Read... [05:49:21]Read from MH i2c: D1 01 00 CD 05 00 A3 [05:49:21]Write to MH i2c: 01 00 00 CE 05 D3 [05:49:21]Write i2c OK [05:49:21]MH_I2C_Read... [05:49:21]*** Cut start [05:49:21]*** Partial cut [05:49:21]*** CUTSNS_PIN = 1 [05:49:21]*** CUTSNS_PIN = 0 [05:49:22]*** Brake cut motor [05:49:22]recv_with_timeout no data received [05:49:22]Read from MH i2c: 01 [05:49:22]MH_I2C_Read... [05:49:22]*** Stop cut motor [05:49:22]*** Cut end [05:49:22]Read from MH i2c: 01 07 00 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: 01 07 00 CE 05 00 00 00 00 00 FF 0F E8 [05:49:22]process_action close_receipt done [05:49:22]requested_data is exist [05:49:22]produce_requested_data [05:49:22]requested_item fm.sn is exist - process it [05:49:22]wFMCommunicate request_size=4 [05:49:22]MH_SAM_APDU [05:49:22]CAPDU: 80 11 00 00 [05:49:22]Write to MH i2c: E2 08 00 CF 05 80 11 00 00 00 00 00 00 4E [05:49:22]Write i2c OK [05:49:22]MH_I2C_Read... [05:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:22]Read from MH i2c: E2 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 17 00 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 17 00 CF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A2 [05:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:49:22]wFMCommunicate OK [05:49:22]requested_item fd.num is exist - process it [05:49:22]SAM_PROTO_GetFieldsCounters [05:49:22]wFMCommunicate request_size=4 [05:49:22]MH_SAM_APDU [05:49:22]CAPDU: 80 13 00 00 [05:49:22]Write to MH i2c: E2 08 00 D0 05 80 13 00 00 00 00 00 00 51 [05:49:22]Write i2c OK [05:49:22]MH_I2C_Read... [05:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:49:22]Read from MH i2c: E2 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 62 00 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 62 00 D0 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 50 1C 01 00 0E 04 04 00 2C 02 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 4C [05:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 50 1C 01 00 0E 04 04 00 2C 02 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 [05:49:22]wFMCommunicate OK [05:49:22]SAM_PROTO_GetFieldsCounters done [05:49:22]requested_item shift.num is exist - process it [05:49:22]requested_item shift.opened is exist - process it [05:49:22]req_shift_opened [05:49:22]FM_GetShiftState [05:49:22]SAM_PROTO_GetShiftState [05:49:22]wFMCommunicate request_size=4 [05:49:22]MH_SAM_APDU [05:49:22]CAPDU: 80 13 01 00 [05:49:22]Write to MH i2c: E2 08 00 D1 05 80 13 01 00 00 00 00 00 53 [05:49:22]Write i2c OK [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 [05:49:22]MH_I2C_Read... [05:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:22]Read from MH i2c: E2 0E 00 [05:49:22]MH_I2C_Read... [05:49:22]Read from MH i2c: E2 0E 00 D1 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 25 [05:49:22]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:49:22]wFMCommunicate OK [05:49:22]SAM_PROTO_GetShiftState done [05:49:22]FM_GetShiftState done [05:49:22]req_shift_opened done [05:49:22]requested_item shift.open_date is exist - process it [05:49:22]req_shift_open_date [05:49:22]req_shift_open_date done [05:49:22]produce_requested_data done [05:49:22]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72784,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [05:49:22]process_action_free close_receipt [05:49:22]json_value_free [05:49:22]json_value_free done [05:49:22]process_json_proto returns [05:49:22]Send response to host [05:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72784,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [05:49:22]free response buf [05:49:22]execute_script done [05:49:22]execute_script returns [05:49:22]free content buf [05:49:22]Sock 10.Close socket [05:49:22]Sock 10.Thread stoped [05:49:24]Connected sock=11 [05:49:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8D 41 07 01 96 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 15 00 00 00 F4 03 04 00 E0 C8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1C 01 00 35 04 06 00 BC A3 39 A3 21 87 A1 8B 25 C9 CB 5F DC DB [05:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7E 2E 47 00 0D E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1C 01 00 F4 03 04 00 9D 73 21 67 B6 04 01 00 00 5A 88 38 11 70 01 E6 70 [05:49:25]CommunicateWithHost err = 0 [05:49:25]CheckOFDResponse [05:49:25]1017 (14) - 77093643461234 [05:49:25]1041 (16) - 0000000000874662 [05:49:25]1040 (4) - 72784 [05:49:25]1012 (4) - 29.10.2024 23:45 [05:49:25]1206 (1) - 0 [05:49:25]OFD Sender: Remove packet 72784 [05:49:25]ProducePacketName [05:49:25]name=ofd_packets/00072784 [05:49:25]NVStorageDeleteData [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:41]recv_with_timeout no data received [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:54]recv_with_timeout no data received [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:03]ConnectInit Can't connect to host [05:53:05]OFD Sender: No OFD packet to send [05:53:06]accept exits with 9 [05:53:06]New connection [05:53:06]New thread 3067112804 created [05:53:06]Thread 3066969444 joined [05:53:06]Waiting for new connection... [05:53:06] Sock 9.Parse request [05:53:06]Sock 9.Check first char [05:53:06]Sock 9.First char is OK [05:53:06]request: POST /json_proto HTTP/1.0 [05:53:06]Method: POST [05:53:06]URL: /json_proto [05:53:06]Method is POST - this is cgi request [05:53:06]url: /json_proto [05:53:06]query_string will be loaded in cgi processing [05:53:06]execute_cgi json_proto POST (null) [05:53:06]execute_cgi path=json_proto method=POST [05:53:06]POST find Content-Length [05:53:06]Host: 172.17.43.195:8080 [05:53:06]Content-Length: 792 [05:53:06]Content-Type: application/json [05:53:06] [05:53:06]POST finish read [05:53:06]Found Content-Length = 792 [05:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:06]execute_script... [05:53:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:06]POST & json_proto [05:53:06]process_json_proto [05:53:06]json parsed OK: [05:53:06]protocol is kg_v1.0 [05:53:06]action value=close_receipt [05:53:06]process_action close_receipt [05:53:06]cmd_close_receipt [05:53:06]MH_GetDate [05:53:06]Write to MH i2c: F0 00 00 D2 05 C6 [05:53:06]Write i2c OK [05:53:06]MH_I2C_Read... [05:53:06]Read from MH i2c: F0 [05:53:06]MH_I2C_Read... [05:53:06]Read from MH i2c: F0 09 00 [05:53:06]MH_I2C_Read... [05:53:06]Read from MH i2c: F0 09 00 D2 05 00 C3 C9 21 67 74 2C AD 66 96 [05:53:06]GetLastDocTimeStamp 1730267360 [05:53:06]current date 1730267587 [05:53:06]FM_GetShiftState [05:53:06]SAM_PROTO_GetShiftState [05:53:06]wFMCommunicate request_size=4 [05:53:06]MH_SAM_APDU [05:53:06]CAPDU: 80 13 01 00 [05:53:06]Write to MH i2c: E2 08 00 D3 05 80 13 01 00 00 00 00 00 55 [05:53:06]Write i2c OK [05:53:06]MH_I2C_Read... [05:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:06]Read from MH i2c: E2 [05:53:06]MH_I2C_Read... [05:53:06]Read from MH i2c: E2 0E 00 [05:53:06]MH_I2C_Read... [05:53:06]Read from MH i2c: E2 0E 00 D3 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 27 [05:53:06]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:53:06]wFMCommunicate OK [05:53:06]SAM_PROTO_GetShiftState done [05:53:06]FM_GetShiftState done [05:53:06]opened in 1730247109 [05:53:06]opened+sec_in_day 1730333509 [05:53:06]quantity*price = 0 [05:53:06]sum+1 = 1 [05:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 22 30.10.2024 05:53 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72785 ФПД: 215020405610652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T055308&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72785&fm=215020405610652&tin=02508201610067®Number=0000000000091644&sum=0 [05:53:07]StoreToDocumentArchive [05:53:07]shift 556 fd 72785 [05:53:07]save to /storage/0556/doc_00072785 [05:53:07]save last doc name /storage/0556/doc_00072785 to /storage/kkm_last_doc_name [05:53:07]save OK [05:53:07]Clear old archive folders... [05:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:53:07]tlvbuf is 01AD9890 [05:53:07]SAM_PROTO_ClearQueue [05:53:07]wFMCommunicate request_size=4 [05:53:07]MH_SAM_APDU [05:53:07]CAPDU: 80 09 00 00 [05:53:07]Write to MH i2c: E2 08 00 E0 05 80 09 00 00 00 00 00 00 57 [05:53:07]Write i2c OK [05:53:07]MH_I2C_Read... [05:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:53:07]Read from MH i2c: E2 [05:53:07]MH_I2C_Read... [05:53:07]Read from MH i2c: E2 03 00 [05:53:07]MH_I2C_Read... [05:53:07]Read from MH i2c: E2 03 00 E0 05 00 90 00 59 [05:53:07]RAPDU: 90 00 [05:53:07]wFMCommunicate OK [05:53:07]SAM_PROTO_ClearQueue done [05:53:07]KKMCreateOFDPacket [05:53:07]OFDProtocolAddRootSTLVToBuf [05:53:07]FM_MakeSignedData [05:53:07]FM_MakeSignedData [05:53:07]SAM_PROTO_SignData [05:53:07]wFMCommunicate request_size=4 [05:53:07]MH_SAM_APDU [05:53:07]CAPDU: 80 0D 01 02 [05:53:07]Write to MH i2c: E2 08 00 E1 05 80 0D 01 02 00 00 00 00 5F [05:53:07]Write i2c OK [05:53:07]MH_I2C_Read... [05:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:53:07]Read from MH i2c: E2 [05:53:07]MH_I2C_Read... [05:53:07]Read from MH i2c: E2 03 00 [05:53:07]MH_I2C_Read... [05:53:07]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [05:53:07]RAPDU: 90 00 [05:53:07]wFMCommunicate OK [05:53:07]wFMCommunicate request_size=255 [05:53:07]MH_SAM_APDU [05:53:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 C4 C9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1C 01 00 35 04 06 00 C3 [05:53:07]Write to MH i2c: E2 02 01 E2 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 C4 C9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1C 01 00 35 04 06 00 C3 00 00 2A [05:53:07]Write i2c OK [05:53:07]MH_I2C_Read... [05:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:07]Read from MH i2c: E2 [05:53:07]MH_I2C_Read... [05:53:07]Read from MH i2c: E2 03 00 [05:53:07]MH_I2C_Read... [05:53:07]Read from MH i2c: E2 03 00 E2 05 00 90 00 5B [05:53:07]RAPDU: 90 00 [05:53:07]wFMCommunicate OK [05:53:07]wFMCommunicate request_size=10 [05:53:07]MH_SAM_APDU [05:53:07]CAPDU: 80 0D 02 02 05 8F 56 E5 58 9C [05:53:07]Write to MH i2c: E2 0D 00 E3 05 80 0D 02 02 05 00 8F 56 E5 58 9C 00 00 2A [05:53:07]Write i2c OK [05:53:07]MH_I2C_Read... [05:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:07]Read from MH i2c: E2 [05:53:07]MH_I2C_Read... [05:53:07]Read from MH i2c: E2 03 00 [05:53:07]MH_I2C_Read... [05:53:07]Read from MH i2c: E2 03 00 E3 05 00 90 00 5C [05:53:07]RAPDU: 90 00 [05:53:07]wFMCommunicate OK [05:53:07]wFMCommunicate request_size=4 [05:53:07]MH_SAM_APDU [05:53:07]CAPDU: 80 0D 03 02 [05:53:07]Write to MH i2c: E2 08 00 E4 05 80 0D 03 02 00 00 00 00 64 [05:53:07]Write i2c OK [05:53:07]MH_I2C_Read... [05:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:53:08]Read from MH i2c: E2 [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: E2 0B 00 [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: E2 0B 00 E4 05 00 B3 63 EA 34 57 1B B3 3F 90 00 FD [05:53:08]RAPDU: B3 63 EA 34 57 1B B3 3F 90 00 [05:53:08]wFMCommunicate OK [05:53:08]SAM_PROTO_SignData done [05:53:08]FM_MakeSignedData done [05:53:08]CreateOFDProtocolMessage [05:53:08]wFMCommunicate request_size=4 [05:53:08]MH_SAM_APDU [05:53:08]CAPDU: 80 11 00 00 [05:53:08]Write to MH i2c: E2 08 00 E5 05 80 11 00 00 00 00 00 00 64 [05:53:08]Write i2c OK [05:53:08]MH_I2C_Read... [05:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:08]Read from MH i2c: E2 [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: E2 17 00 [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: E2 17 00 E5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B8 [05:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:53:08]wFMCommunicate OK [05:53:08]CreateOFDProtocolMessage done [05:53:08]OFDSenderStorePacket 72785 [05:53:08]StoreOFDPacket docnum=72785 [05:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DA 49 07 01 4A 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 C4 C9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1C 01 00 35 04 06 00 C3 8F 56 E5 58 9C B3 63 EA 34 57 1B B3 3F [05:53:08]CheckFolder [05:53:08]dirname=/storage/ofd_packets [05:53:08]CheckFolder done [05:53:08]ProducePacketName [05:53:08]name=ofd_packets/00072785 [05:53:08]NVStorageSaveData ofd_packets/00072785 [05:53:08]File name is /storage/ofd_packets/00072785 [05:53:08]Write 301 bytes [05:53:08]NVStorageSaveData done [05:53:08]OFDSenderStorePacket done [05:53:08]KKMCreateOFDPacket done [05:53:08]NVStorageSaveData kkm_last_timestamp [05:53:08]File name is /storage/kkm_last_timestamp [05:53:08]Write 4 bytes [05:53:08]NVStorageSaveData done [05:53:08]ExternCall_PrintAddStr [05:53:08]wPrintStart [05:53:08]Write to MH i2c: 01 00 00 E6 05 EB [05:53:08]Write i2c OK [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: 01 [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: 01 07 00 [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: 01 07 00 E6 05 00 00 00 00 00 FF 0F 00 [05:53:08]RasterBufferAndPrint [05:53:08]line Счет N : (1)952341 [05:53:08]line ИНН: 02508201610067 [05:53:08]line Контрольно-Кассовый Чек [05:53:08]line ПРОДАЖА [05:53:08]line ТРК (МРК, ГНК) : 63 [05:53:08]line Товар: 2710124130 [05:53:08]line Аи-92-К-5 [05:53:08]line 10.000 * 0.00 [05:53:08]line = 0.00 [05:53:08]line НДС 12% НСП 1% [05:53:08]line > о реализуемом товаре [05:53:08]line ИТОГО: 0.00 [05:53:08]line НСП 1% : 0.00 [05:53:08]line НДС 12% : 0.00 [05:53:08]line Наличными: 0.00 [05:53:08]line Безнал.: 0.00 [05:53:08]line Место: АЗС № 113 "Партнер Нефть" [05:53:08]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:53:08]line СНО: Общий режим [05:53:08]line Чек 22 30.10.2024 05:53 [05:53:08]line Смена: 556 ФФД: 1.0 [05:53:08]line ЗНМ: 0300000087 [05:53:08]line РНМ: 0000000000091644 [05:53:08]line Версия ККМ: 001 [05:53:08]line Талоны: Топливная Карта [05:53:08]line 03047 [05:53:08]line ФМ: 0000000000874662 [05:53:08]line ФД: 72785 [05:53:08]line ФПД: 215020405610652 [05:53:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T055308&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72785&fm=215020405610652&tin=02508201610067®Number=0000000000091644&sum=0 [05:53:08]written 0, free lines is 4095 [05:53:08]OFD Sender: Processing packet 72785 [packets to send 278, broken 277] [05:53:08]ProducePacketName [05:53:08]name=ofd_packets/00072785 [05:53:08]OFD Sender: To server: pG, [05:53:08]CommunicateWithHost lk.salyk.kg:30040 [05:53:08]ConnectInit lk.salyk.kg [05:53:08]Write to MH i2c: 01 00 00 10 06 16 [05:53:08]Write i2c OK [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: 01 [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: 01 07 00 [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: 01 07 00 10 06 00 00 00 00 00 DF 0C 08 [05:53:08]RasterBufferAndPrint [05:53:08]line [05:53:08]line [05:53:08]line [05:53:08]line [05:53:08]line [05:53:08]written 0, free lines is 3301 [05:53:08]MH_Cut [05:53:08]Write to MH i2c: D1 01 00 17 06 01 EF [05:53:08]Write i2c OK [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: D1 [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: D1 01 00 [05:53:08]MH_I2C_Read... [05:53:08]Read from MH i2c: D1 01 00 17 06 00 EE [05:53:08]Write to MH i2c: 01 00 00 18 06 1E [05:53:08]Write i2c OK [05:53:08]MH_I2C_Read... [05:53:08]Connected sock=10 [05:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DA 49 07 01 4A 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 C4 C9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1C 01 00 35 04 06 00 C3 8F 56 E5 58 9C B3 63 EA 34 57 1B B3 3F [05:53:09]*** Cut start [05:53:09]*** Partial cut [05:53:09]*** CUTSNS_PIN = 1 [05:53:09]*** CUTSNS_PIN = 0 [05:53:09]*** Brake cut motor [05:53:09]Read from MH i2c: 01 [05:53:09]MH_I2C_Read... [05:53:09]*** Stop cut motor [05:53:09]*** Cut end [05:53:09]Read from MH i2c: 01 07 00 [05:53:09]MH_I2C_Read... [05:53:09]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [05:53:09]process_action close_receipt done [05:53:09]requested_data is exist [05:53:09]produce_requested_data [05:53:09]requested_item fm.sn is exist - process it [05:53:09]wFMCommunicate request_size=4 [05:53:09]MH_SAM_APDU [05:53:09]CAPDU: 80 11 00 00 [05:53:09]Write to MH i2c: E2 08 00 19 06 80 11 00 00 00 00 00 00 99 [05:53:09]Write i2c OK [05:53:09]MH_I2C_Read... [05:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:09]Read from MH i2c: E2 [05:53:09]MH_I2C_Read... [05:53:09]Read from MH i2c: E2 17 00 [05:53:09]MH_I2C_Read... [05:53:09]Read from MH i2c: E2 17 00 19 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 ED [05:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:53:09]wFMCommunicate OK [05:53:09]requested_item fd.num is exist - process it [05:53:09]SAM_PROTO_GetFieldsCounters [05:53:09]wFMCommunicate request_size=4 [05:53:09]MH_SAM_APDU [05:53:09]CAPDU: 80 13 00 00 [05:53:09]Write to MH i2c: E2 08 00 1A 06 80 13 00 00 00 00 00 00 9C [05:53:09]Write i2c OK [05:53:09]MH_I2C_Read... [05:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BB DE 47 00 65 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1C 01 00 F4 03 04 00 7E 74 21 67 B6 04 01 00 00 59 59 69 6E 09 33 B8 F5 [05:53:09]CommunicateWithHost err = 0 [05:53:09]CheckOFDResponse [05:53:09]1017 (14) - 77093643461234 [05:53:09]1041 (16) - 0000000000874662 [05:53:09]1040 (4) - 72785 [05:53:09]1012 (4) - 29.10.2024 23:49 [05:53:09]1206 (1) - 0 [05:53:09]OFD Sender: Remove packet 72785 [05:53:09]ProducePacketName [05:53:09]name=ofd_packets/00072785 [05:53:09]NVStorageDeleteData [05:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:53:10]Read from MH i2c: E2 [05:53:10]MH_I2C_Read... [05:53:10]Read from MH i2c: E2 62 00 [05:53:10]MH_I2C_Read... [05:53:10]Read from MH i2c: E2 62 00 1A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 51 1C 01 00 0E 04 04 00 2C 02 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 9B [05:53:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 51 1C 01 00 0E 04 04 00 2C 02 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 [05:53:10]wFMCommunicate OK [05:53:10]SAM_PROTO_GetFieldsCounters done [05:53:10]requested_item shift.num is exist - process it [05:53:10]requested_item shift.opened is exist - process it [05:53:10]req_shift_opened [05:53:10]FM_GetShiftState [05:53:10]SAM_PROTO_GetShiftState [05:53:10]wFMCommunicate request_size=4 [05:53:10]MH_SAM_APDU [05:53:10]CAPDU: 80 13 01 00 [05:53:10]Write to MH i2c: E2 08 00 1B 06 80 13 01 00 00 00 00 00 9E [05:53:10]Write i2c OK [05:53:10]MH_I2C_Read... [05:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:10]Read from MH i2c: E2 [05:53:10]MH_I2C_Read... [05:53:10]Read from MH i2c: E2 0E 00 [05:53:10]MH_I2C_Read... [05:53:10]Read from MH i2c: E2 0E 00 1B 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 70 [05:53:10]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:53:10]wFMCommunicate OK [05:53:10]SAM_PROTO_GetShiftState done [05:53:10]FM_GetShiftState done [05:53:10]req_shift_opened done [05:53:10]requested_item shift.open_date is exist - process it [05:53:10]req_shift_open_date [05:53:10]req_shift_open_date done [05:53:10]produce_requested_data done [05:53:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72785,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [05:53:10]process_action_free close_receipt [05:53:10]json_value_free [05:53:10]json_value_free done [05:53:10]process_json_proto returns [05:53:10]Send response to host [05:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72785,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [05:53:10]free response buf [05:53:10]execute_script done [05:53:10]execute_script returns [05:53:10]free content buf [05:53:10]Sock 9.Close socket [05:53:10]Sock 9.Thread stoped [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:40]recv_with_timeout no data received [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:26]ConnectInit Can't connect to host [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:58:56]accept exits with 7 [05:58:56]New connection [05:58:56]New thread 3066969444 created [05:58:56]Thread 3067112804 joined [05:58:56]Waiting for new connection... [05:58:56] Sock 7.Parse request [05:58:56]Sock 7.Check first char [05:58:56]Sock 7.First char is OK [05:58:56]request: POST /json_proto HTTP/1.0 [05:58:56]Method: POST [05:58:56]URL: /json_proto [05:58:56]Method is POST - this is cgi request [05:58:56]url: /json_proto [05:58:56]query_string will be loaded in cgi processing [05:58:56]execute_cgi json_proto POST (null) [05:58:56]execute_cgi path=json_proto method=POST [05:58:56]POST find Content-Length [05:58:56]Host: 172.17.43.195:8080 [05:58:56]Content-Length: 792 [05:58:56]Content-Type: application/json [05:58:56] [05:58:56]POST finish read [05:58:56]Found Content-Length = 792 [05:58:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952342", "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" : 37.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:56]execute_script... [05:58:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952342", "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" : 37.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:56]POST & json_proto [05:58:56]process_json_proto [05:58:56]json parsed OK: [05:58:56]protocol is kg_v1.0 [05:58:56]action value=close_receipt [05:58:56]process_action close_receipt [05:58:56]cmd_close_receipt [05:58:56]MH_GetDate [05:58:56]Write to MH i2c: F0 00 00 1C 06 11 [05:58:56]Write i2c OK [05:58:56]MH_I2C_Read... [05:58:56]Read from MH i2c: F0 [05:58:56]MH_I2C_Read... [05:58:56]Read from MH i2c: F0 09 00 [05:58:56]MH_I2C_Read... [05:58:56]Read from MH i2c: F0 09 00 1C 06 00 22 CB 21 67 74 2C AD 66 42 [05:58:56]GetLastDocTimeStamp 1730267588 [05:58:56]current date 1730267938 [05:58:56]FM_GetShiftState [05:58:56]SAM_PROTO_GetShiftState [05:58:56]wFMCommunicate request_size=4 [05:58:56]MH_SAM_APDU [05:58:56]CAPDU: 80 13 01 00 [05:58:56]Write to MH i2c: E2 08 00 1D 06 80 13 01 00 00 00 00 00 A0 [05:58:56]Write i2c OK [05:58:56]MH_I2C_Read... [05:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:56]Read from MH i2c: E2 [05:58:56]MH_I2C_Read... [05:58:56]Read from MH i2c: E2 0E 00 [05:58:56]MH_I2C_Read... [05:58:56]Read from MH i2c: E2 0E 00 1D 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 72 [05:58:56]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:58:56]wFMCommunicate OK [05:58:56]SAM_PROTO_GetShiftState done [05:58:56]FM_GetShiftState done [05:58:56]opened in 1730247109 [05:58:56]opened+sec_in_day 1730333509 [05:58:56]quantity*price = 0 [05:58:56]sum+1 = 1 [05:58:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 23 30.10.2024 05:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72786 ФПД: 260446351206924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T055858&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72786&fm=260446351206924&tin=02508201610067®Number=0000000000091644&sum=0 [05:58:57]StoreToDocumentArchive [05:58:57]shift 556 fd 72786 [05:58:57]save to /storage/0556/doc_00072786 [05:58:57]save last doc name /storage/0556/doc_00072786 to /storage/kkm_last_doc_name [05:58:57]save OK [05:58:57]Clear old archive folders... [05:58:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:58:57]tlvbuf is 01B3ECB0 [05:58:57]SAM_PROTO_ClearQueue [05:58:57]wFMCommunicate request_size=4 [05:58:57]MH_SAM_APDU [05:58:57]CAPDU: 80 09 00 00 [05:58:57]Write to MH i2c: E2 08 00 2A 06 80 09 00 00 00 00 00 00 A2 [05:58:57]Write i2c OK [05:58:57]MH_I2C_Read... [05:58:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:57]Read from MH i2c: E2 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 2A 06 00 90 00 A4 [05:58:57]RAPDU: 90 00 [05:58:57]wFMCommunicate OK [05:58:57]SAM_PROTO_ClearQueue done [05:58:57]KKMCreateOFDPacket [05:58:57]OFDProtocolAddRootSTLVToBuf [05:58:57]FM_MakeSignedData [05:58:57]FM_MakeSignedData [05:58:57]SAM_PROTO_SignData [05:58:57]wFMCommunicate request_size=4 [05:58:57]MH_SAM_APDU [05:58:57]CAPDU: 80 0D 01 02 [05:58:57]Write to MH i2c: E2 08 00 2B 06 80 0D 01 02 00 00 00 00 AA [05:58:57]Write i2c OK [05:58:57]MH_I2C_Read... [05:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:57]Read from MH i2c: E2 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 [05:58:57]MH_I2C_Read... [05:58:57]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [05:58:57]RAPDU: 90 00 [05:58:57]wFMCommunicate OK [05:58:57]wFMCommunicate request_size=255 [05:58:57]MH_SAM_APDU [05:58:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 22 CB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1C 01 00 35 04 06 00 EC [05:58:57]Write to MH i2c: E2 02 01 2C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 22 CB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1C 01 00 35 04 06 00 EC 00 00 54 [05:58:57]Write i2c OK [05:58:57]MH_I2C_Read... [05:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:58]Read from MH i2c: E2 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: E2 03 00 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [05:58:58]RAPDU: 90 00 [05:58:58]wFMCommunicate OK [05:58:58]wFMCommunicate request_size=10 [05:58:58]MH_SAM_APDU [05:58:58]CAPDU: 80 0D 02 02 05 DF E4 3F 2A 0C [05:58:58]Write to MH i2c: E2 0D 00 2D 06 80 0D 02 02 05 00 DF E4 3F 2A 0C 00 00 EF [05:58:58]Write i2c OK [05:58:58]MH_I2C_Read... [05:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:58]Read from MH i2c: E2 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: E2 03 00 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: E2 03 00 2D 06 00 90 00 A7 [05:58:58]RAPDU: 90 00 [05:58:58]wFMCommunicate OK [05:58:58]wFMCommunicate request_size=4 [05:58:58]MH_SAM_APDU [05:58:58]CAPDU: 80 0D 03 02 [05:58:58]Write to MH i2c: E2 08 00 2E 06 80 0D 03 02 00 00 00 00 AF [05:58:58]Write i2c OK [05:58:58]MH_I2C_Read... [05:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:58]Read from MH i2c: E2 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: E2 0B 00 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: E2 0B 00 2E 06 00 99 6C 97 90 3E 1C 73 82 90 00 2B [05:58:58]RAPDU: 99 6C 97 90 3E 1C 73 82 90 00 [05:58:58]wFMCommunicate OK [05:58:58]SAM_PROTO_SignData done [05:58:58]FM_MakeSignedData done [05:58:58]CreateOFDProtocolMessage [05:58:58]wFMCommunicate request_size=4 [05:58:58]MH_SAM_APDU [05:58:58]CAPDU: 80 11 00 00 [05:58:58]Write to MH i2c: E2 08 00 2F 06 80 11 00 00 00 00 00 00 AF [05:58:58]Write i2c OK [05:58:58]MH_I2C_Read... [05:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:58]Read from MH i2c: E2 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: E2 17 00 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: E2 17 00 2F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 03 [05:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:58:58]wFMCommunicate OK [05:58:58]CreateOFDProtocolMessage done [05:58:58]OFDSenderStorePacket 72786 [05:58:58]StoreOFDPacket docnum=72786 [05:59:04]1040 (4) - 72786 [05:59:04]1012 (4) - 29.10.2024 23:55 [05:59:04]1206 (1) - 0 [05:59:04]OFD Sender: Remove packet 72786 [05:59:04]ProducePacketName [05:59:04]name=ofd_packets/00072786 [05:59:04]NVStorageDeleteData [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:11]recv_with_timeout no data received [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:23]recv_with_timeout no data received [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:38]recv_with_timeout no data received [06:00:39]OFD Sender: No OFD packet to send [05:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1A A8 07 01 81 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 22 CB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1C 01 00 35 04 06 00 EC DF E4 3F 2A 0C 99 6C 97 90 3E 1C 73 82 [05:58:58]CheckFolder [05:58:58]dirname=/storage/ofd_packets [05:58:58]CheckFolder done [05:58:58]ProducePacketName [05:58:58]name=ofd_packets/00072786 [05:58:58]NVStorageSaveData ofd_packets/00072786 [05:58:58]File name is /storage/ofd_packets/00072786 [05:58:58]Write 301 bytes [05:58:58]NVStorageSaveData done [05:58:58]OFDSenderStorePacket done [05:58:58]KKMCreateOFDPacket done [05:58:58]NVStorageSaveData kkm_last_timestamp [05:58:58]File name is /storage/kkm_last_timestamp [05:58:58]Write 4 bytes [05:58:58]NVStorageSaveData done [05:58:58]OFD Sender: Processing packet 72786 [packets to send 278, broken 277] [05:58:58]ProducePacketName [05:58:58]name=ofd_packets/00072786 [05:58:58]OFD Sender: To server: pG, [05:58:58]CommunicateWithHost lk.salyk.kg:30040 [05:58:58]ConnectInit lk.salyk.kg [05:58:58]ExternCall_PrintAddStr [05:58:58]wPrintStart [05:58:58]Write to MH i2c: 01 00 00 30 06 36 [05:58:58]Write i2c OK [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: 01 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: 01 07 00 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 FF 0F 4B [05:58:58]RasterBufferAndPrint [05:58:58]line Счет N : (1)952342 [05:58:58]line ИНН: 02508201610067 [05:58:58]line Контрольно-Кассовый Чек [05:58:58]line ПРОДАЖА [05:58:58]line ТРК (МРК, ГНК) : 42 [05:58:58]line Товар: 2710124130 [05:58:58]line Аи-92-К-5 [05:58:58]line 37.370 * 0.00 [05:58:58]line = 0.00 [05:58:58]line НДС 12% НСП 1% [05:58:58]line > о реализуемом товаре [05:58:58]line ИТОГО: 0.00 [05:58:58]line НСП 1% : 0.00 [05:58:58]line НДС 12% : 0.00 [05:58:58]line Наличными: 0.00 [05:58:58]line Безнал.: 0.00 [05:58:58]line Место: АЗС № 113 "Партнер Нефть" [05:58:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:58:58]line СНО: Общий режим [05:58:58]line Чек 23 30.10.2024 05:58 [05:58:58]line Смена: 556 ФФД: 1.0 [05:58:58]line ЗНМ: 0300000087 [05:58:58]line РНМ: 0000000000091644 [05:58:58]line Версия ККМ: 001 [05:58:58]line Талоны: Топливная Карта [05:58:58]line 03047 [05:58:58]line ФМ: 0000000000874662 [05:58:58]line ФД: 72786 [05:58:58]line ФПД: 260446351206924 [05:58:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T055858&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72786&fm=260446351206924&tin=02508201610067®Number=0000000000091644&sum=0 [05:58:58]written 0, free lines is 4095 [05:58:58]Write to MH i2c: 01 00 00 5A 06 60 [05:58:58]Write i2c OK [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: 01 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: 01 07 00 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 EA 0C 5D [05:58:58]RasterBufferAndPrint [05:58:58]line [05:58:58]line [05:58:58]line [05:58:58]line [05:58:58]line [05:58:58]written 0, free lines is 3312 [05:58:58]MH_Cut [05:58:58]Write to MH i2c: D1 01 00 61 06 01 39 [05:58:58]Write i2c OK [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: D1 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: D1 01 00 [05:58:58]MH_I2C_Read... [05:58:58]Read from MH i2c: D1 01 00 61 06 00 38 [05:58:58]Write to MH i2c: 01 00 00 62 06 68 [05:58:58]Write i2c OK [05:58:58]MH_I2C_Read... [05:58:59]*** Cut start [05:58:59]*** Partial cut [05:58:59]*** CUTSNS_PIN = 1 [05:58:59]*** CUTSNS_PIN = 0 [05:58:59]*** Brake cut motor [05:59:00]Read from MH i2c: 01 [05:59:00]MH_I2C_Read... [05:59:00]*** Stop cut motor [05:59:00]*** Cut end [05:59:00]Read from MH i2c: 01 07 00 [05:59:00]MH_I2C_Read... [05:59:00]Read from MH i2c: 01 07 00 62 06 00 00 00 00 00 FF 0F 7D [05:59:00]process_action close_receipt done [05:59:00]requested_data is exist [05:59:00]produce_requested_data [05:59:00]requested_item fm.sn is exist - process it [05:59:00]wFMCommunicate request_size=4 [05:59:00]MH_SAM_APDU [05:59:00]CAPDU: 80 11 00 00 [05:59:00]Write to MH i2c: E2 08 00 63 06 80 11 00 00 00 00 00 00 E3 [05:59:00]Write i2c OK [05:59:00]MH_I2C_Read... [05:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:00]Read from MH i2c: E2 [05:59:00]MH_I2C_Read... [05:59:00]Read from MH i2c: E2 17 00 [05:59:00]MH_I2C_Read... [05:59:00]Read from MH i2c: E2 17 00 63 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 37 [05:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:59:00]wFMCommunicate OK [05:59:00]requested_item fd.num is exist - process it [05:59:00]SAM_PROTO_GetFieldsCounters [05:59:00]wFMCommunicate request_size=4 [05:59:00]MH_SAM_APDU [05:59:00]CAPDU: 80 13 00 00 [05:59:00]Write to MH i2c: E2 08 00 64 06 80 13 00 00 00 00 00 00 E6 [05:59:00]Write i2c OK [05:59:00]MH_I2C_Read... [05:59:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:59:00]Read from MH i2c: E2 [05:59:00]MH_I2C_Read... [05:59:00]Read from MH i2c: E2 62 00 [05:59:00]MH_I2C_Read... [05:59:00]Read from MH i2c: E2 62 00 64 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 52 1C 01 00 0E 04 04 00 2C 02 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 E9 [05:59:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 52 1C 01 00 0E 04 04 00 2C 02 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 [05:59:00]wFMCommunicate OK [05:59:00]SAM_PROTO_GetFieldsCounters done [05:59:00]requested_item shift.num is exist - process it [05:59:00]requested_item shift.opened is exist - process it [05:59:00]req_shift_opened [05:59:00]FM_GetShiftState [05:59:00]SAM_PROTO_GetShiftState [05:59:00]wFMCommunicate request_size=4 [05:59:00]MH_SAM_APDU [05:59:00]CAPDU: 80 13 01 00 [05:59:00]Write to MH i2c: E2 08 00 65 06 80 13 01 00 00 00 00 00 E8 [05:59:00]Write i2c OK [05:59:00]MH_I2C_Read... [05:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:00]Read from MH i2c: E2 [05:59:00]MH_I2C_Read... [05:59:00]Read from MH i2c: E2 0E 00 [05:59:00]MH_I2C_Read... [05:59:00]Read from MH i2c: E2 0E 00 65 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 BA [05:59:00]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [05:59:00]wFMCommunicate OK [05:59:00]SAM_PROTO_GetShiftState done [05:59:00]FM_GetShiftState done [05:59:00]req_shift_opened done [05:59:00]requested_item shift.open_date is exist - process it [05:59:00]req_shift_open_date [05:59:00]req_shift_open_date done [05:59:00]produce_requested_data done [05:59:00]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72786,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [05:59:00]process_action_free close_receipt [05:59:00]json_value_free [05:59:00]json_value_free done [05:59:00]process_json_proto returns [05:59:00]Send response to host [05:59:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72786,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [05:59:00]free response buf [05:59:00]execute_script done [05:59:00]execute_script returns [05:59:00]free content buf [05:59:00]Sock 7.Close socket [05:59:00]Sock 7.Thread stoped [05:59:01]Connected sock=12 [05:59:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1A A8 07 01 81 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 22 CB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1C 01 00 35 04 06 00 EC DF E4 3F 2A 0C 99 6C 97 90 3E 1C 73 82 [05:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FD A1 47 00 4F 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1C 01 00 F4 03 04 00 DF 75 21 67 B6 04 01 00 00 ED A8 BB 3C EE 79 87 84 [05:59:04]CommunicateWithHost err = 0 [05:59:04]CheckOFDResponse [05:59:04]1017 (14) - 77093643461234 [05:59:04]1041 (16) - 0000000000874662 [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:20]recv_with_timeout no data received [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:43]accept exits with 10 [06:01:43]New connection [06:01:43]New thread 3067112804 created [06:01:43]Thread 3066969444 joined [06:01:43]Waiting for new connection... [06:01:43] Sock 10.Parse request [06:01:43]Sock 10.Check first char [06:01:43]Sock 10.First char is OK [06:01:43]request: POST /json_proto HTTP/1.0 [06:01:43]Method: POST [06:01:43]URL: /json_proto [06:01:43]Method is POST - this is cgi request [06:01:43]url: /json_proto [06:01:43]query_string will be loaded in cgi processing [06:01:43]execute_cgi json_proto POST (null) [06:01:43]execute_cgi path=json_proto method=POST [06:01:43]POST find Content-Length [06:01:43]Host: 172.17.43.195:8080 [06:01:43]Content-Length: 663 [06:01:43]Content-Type: application/json [06:01:43] [06:01:43]POST finish read [06:01:43]Found Content-Length = 663 [06:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.02, "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" ] } } [06:01:43]execute_script... [06:01:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.02, "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" ] } } [06:01:43]POST & json_proto [06:01:43]process_json_proto [06:01:43]json parsed OK: [06:01:43]protocol is kg_v1.0 [06:01:43]action value=close_receipt [06:01:43]process_action close_receipt [06:01:43]cmd_close_receipt [06:01:43]MH_GetDate [06:01:43]Write to MH i2c: F0 00 00 66 06 5B [06:01:43]Write i2c OK [06:01:43]MH_I2C_Read... [06:01:43]Read from MH i2c: F0 [06:01:43]MH_I2C_Read... [06:01:43]Read from MH i2c: F0 09 00 [06:01:43]MH_I2C_Read... [06:01:43]Read from MH i2c: F0 09 00 66 06 00 C9 CB 21 67 74 2C AD 66 33 [06:01:43]GetLastDocTimeStamp 1730267938 [06:01:43]current date 1730268105 [06:01:43]FM_GetShiftState [06:01:43]SAM_PROTO_GetShiftState [06:01:43]wFMCommunicate request_size=4 [06:01:43]MH_SAM_APDU [06:01:43]CAPDU: 80 13 01 00 [06:01:43]Write to MH i2c: E2 08 00 67 06 80 13 01 00 00 00 00 00 EA [06:01:43]Write i2c OK [06:01:43]MH_I2C_Read... [06:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:44]Read from MH i2c: E2 [06:01:44]MH_I2C_Read... [06:01:44]Read from MH i2c: E2 0E 00 [06:01:44]MH_I2C_Read... [06:01:44]Read from MH i2c: E2 0E 00 67 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 BC [06:01:44]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [06:01:44]wFMCommunicate OK [06:01:44]SAM_PROTO_GetShiftState done [06:01:44]FM_GetShiftState done [06:01:44]opened in 1730247109 [06:01:44]opened+sec_in_day 1730333509 [06:01:44]quantity*price = 300002 [06:01:44]sum+1 = 300003 [06:01:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 24 30.10.2024 06:01 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72787 ФПД: 36713340662921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T060145&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72787&fm=36713340662921&tin=02508201610067®Number=0000000000091644&sum=300000 [06:01:45]StoreToDocumentArchive [06:01:45]shift 556 fd 72787 [06:01:45]save to /storage/0556/doc_00072787 [06:01:45]save last doc name /storage/0556/doc_00072787 to /storage/kkm_last_doc_name [06:01:45]save OK [06:01:45]Clear old archive folders... [06:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=244 [06:01:45]tlvbuf is 01B552C0 [06:01:45]SAM_PROTO_ClearQueue [06:01:45]wFMCommunicate request_size=4 [06:01:45]MH_SAM_APDU [06:01:45]CAPDU: 80 09 00 00 [06:01:45]Write to MH i2c: E2 08 00 74 06 80 09 00 00 00 00 00 00 EC [06:01:45]Write i2c OK [06:01:45]MH_I2C_Read... [06:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:45]Read from MH i2c: E2 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: E2 03 00 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [06:01:45]RAPDU: 90 00 [06:01:45]wFMCommunicate OK [06:01:45]SAM_PROTO_ClearQueue done [06:01:45]KKMCreateOFDPacket [06:01:45]OFDProtocolAddRootSTLVToBuf [06:01:45]FM_MakeSignedData [06:01:45]FM_MakeSignedData [06:01:45]SAM_PROTO_SignData [06:01:45]wFMCommunicate request_size=4 [06:01:45]MH_SAM_APDU [06:01:45]CAPDU: 80 0D 01 02 [06:01:45]Write to MH i2c: E2 08 00 75 06 80 0D 01 02 00 00 00 00 F4 [06:01:45]Write i2c OK [06:01:45]MH_I2C_Read... [06:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:45]Read from MH i2c: E2 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: E2 03 00 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [06:01:45]RAPDU: 90 00 [06:01:45]wFMCommunicate OK [06:01:45]wFMCommunicate request_size=253 [06:01:45]MH_SAM_APDU [06:01:45]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 C9 CB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1C 01 00 35 04 06 00 21 63 FD A0 F4 89 [06:01:45]Write to MH i2c: E2 00 01 76 06 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 C9 CB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1C 01 00 35 04 06 00 21 63 FD A0 F4 89 00 00 67 [06:01:45]Write i2c OK [06:01:45]MH_I2C_Read... [06:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:45]Read from MH i2c: E2 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: E2 03 00 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [06:01:45]RAPDU: 90 00 [06:01:45]wFMCommunicate OK [06:01:45]wFMCommunicate request_size=4 [06:01:45]MH_SAM_APDU [06:01:45]CAPDU: 80 0D 03 02 [06:01:45]Write to MH i2c: E2 08 00 77 06 80 0D 03 02 00 00 00 00 F8 [06:01:45]Write i2c OK [06:01:45]MH_I2C_Read... [06:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:45]Read from MH i2c: E2 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: E2 0B 00 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: E2 0B 00 77 06 00 83 E0 89 66 07 7A 8B 39 90 00 90 [06:01:45]RAPDU: 83 E0 89 66 07 7A 8B 39 90 00 [06:01:45]wFMCommunicate OK [06:01:45]SAM_PROTO_SignData done [06:01:45]FM_MakeSignedData done [06:01:45]CreateOFDProtocolMessage [06:01:45]wFMCommunicate request_size=4 [06:01:45]MH_SAM_APDU [06:01:45]CAPDU: 80 11 00 00 [06:01:45]Write to MH i2c: E2 08 00 78 06 80 11 00 00 00 00 00 00 F8 [06:01:45]Write i2c OK [06:01:45]MH_I2C_Read... [06:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:45]Read from MH i2c: E2 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: E2 17 00 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: E2 17 00 78 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 4C [06:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:01:45]wFMCommunicate OK [06:01:45]CreateOFDProtocolMessage done [06:01:45]OFDSenderStorePacket 72787 [06:01:45]StoreOFDPacket docnum=72787 [06:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 50 A2 00 01 5D 85 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 C9 CB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1C 01 00 35 04 06 00 21 63 FD A0 F4 89 83 E0 89 66 07 7A 8B 39 [06:01:45]CheckFolder [06:01:45]dirname=/storage/ofd_packets [06:01:45]CheckFolder done [06:01:45]ProducePacketName [06:01:45]name=ofd_packets/00072787 [06:01:45]NVStorageSaveData ofd_packets/00072787 [06:01:45]File name is /storage/ofd_packets/00072787 [06:01:45]Write 294 bytes [06:01:45]NVStorageSaveData done [06:01:45]OFDSenderStorePacket done [06:01:45]KKMCreateOFDPacket done [06:01:45]NVStorageSaveData kkm_last_timestamp [06:01:45]File name is /storage/kkm_last_timestamp [06:01:45]Write 4 bytes [06:01:45]NVStorageSaveData done [06:01:45]ExternCall_PrintAddStr [06:01:45]wPrintStart [06:01:45]Write to MH i2c: 01 00 00 79 06 7F [06:01:45]Write i2c OK [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: 01 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: 01 07 00 [06:01:45]MH_I2C_Read... [06:01:45]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [06:01:45]RasterBufferAndPrint [06:01:45]line Счет N : (1)952343 [06:01:45]line ИНН: 02508201610067 [06:01:45]line Контрольно-Кассовый Чек [06:01:45]line ПРОДАЖА [06:01:45]line ТРК (МРК, ГНК) : 61 [06:01:45]line Товар: 50.50.0 [06:01:45]line Super 92 [06:01:45]line 43.860 * 68.40 [06:01:45]line = 3000.02 [06:01:45]line НДС 12% НСП 1% [06:01:45]line > о реализуемом товаре [06:01:45]line ОКРУГЛЕНИЕ: -0.02 [06:01:45]line ИТОГО: 3000.00 [06:01:45]line Внесено: 3000.00 [06:01:45]line СДАЧА: 0.00 [06:01:45]line НСП 1% : 26.55 [06:01:45]line НДС 12% : 318.59 [06:01:45]line Наличными: 3000.00 [06:01:45]line Безнал.: 0.00 [06:01:45]line Место: АЗС № 113 "Партнер Нефть" [06:01:45]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:01:45]line СНО: Общий режим [06:01:45]line Чек 24 30.10.2024 06:01 [06:01:45]line Смена: 556 ФФД: 1.0 [06:01:45]line ЗНМ: 0300000087 [06:01:45]line РНМ: 0000000000091644 [06:01:45]line Версия ККМ: 001 [06:01:45]line ФМ: 0000000000874662 [06:01:45]line ФД: 72787 [06:01:45]line ФПД: 36713340662921 [06:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T060145&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72787&fm=36713340662921&tin=02508201610067®Number=0000000000091644&sum=300000 [06:01:45]written 0, free lines is 4095 [06:01:45]OFD Sender: Processing packet 72787 [packets to send 278, broken 277] [06:01:45]ProducePacketName [06:01:45]name=ofd_packets/00072787 [06:01:45]OFD Sender: To server: pG, [06:01:45]CommunicateWithHost lk.salyk.kg:30040 [06:01:45]ConnectInit lk.salyk.kg [06:01:46]Write to MH i2c: 01 00 00 A4 06 AA [06:01:46]Write i2c OK [06:01:46]MH_I2C_Read... [06:01:46]Read from MH i2c: 01 [06:01:46]MH_I2C_Read... [06:01:46]Read from MH i2c: 01 07 00 [06:01:46]MH_I2C_Read... [06:01:46]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 DD 0C 9A [06:01:46]RasterBufferAndPrint [06:01:46]line [06:01:46]line [06:01:46]line [06:01:46]line [06:01:46]line [06:01:46]written 0, free lines is 3297 [06:01:46]MH_Cut [06:01:46]Write to MH i2c: D1 01 00 AB 06 01 83 [06:01:46]Write i2c OK [06:01:46]MH_I2C_Read... [06:01:46]Read from MH i2c: D1 [06:01:46]MH_I2C_Read... [06:01:46]Read from MH i2c: D1 01 00 [06:01:46]MH_I2C_Read... [06:01:46]Read from MH i2c: D1 01 00 AB 06 00 82 [06:01:46]Write to MH i2c: 01 00 00 AC 06 B2 [06:01:46]Write i2c OK [06:01:46]MH_I2C_Read... [06:01:46]*** Cut start [06:01:46]*** Partial cut [06:01:46]*** CUTSNS_PIN = 1 [06:01:46]*** CUTSNS_PIN = 0 [06:01:47]*** Brake cut motor [06:01:47]Read from MH i2c: 01 [06:01:47]MH_I2C_Read... [06:01:47]*** Stop cut motor [06:01:47]*** Cut end [06:01:47]Read from MH i2c: 01 07 00 [06:01:47]MH_I2C_Read... [06:01:47]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [06:01:47]process_action close_receipt done [06:01:47]requested_data is exist [06:01:47]produce_requested_data [06:01:47]requested_item fm.sn is exist - process it [06:01:47]wFMCommunicate request_size=4 [06:01:47]MH_SAM_APDU [06:01:47]CAPDU: 80 11 00 00 [06:01:47]Write to MH i2c: E2 08 00 AD 06 80 11 00 00 00 00 00 00 2D [06:01:47]Write i2c OK [06:01:47]MH_I2C_Read... [06:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:47]Read from MH i2c: E2 [06:01:47]MH_I2C_Read... [06:01:47]Read from MH i2c: E2 17 00 [06:01:47]MH_I2C_Read... [06:01:47]Read from MH i2c: E2 17 00 AD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 81 [06:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:01:47]wFMCommunicate OK [06:01:47]requested_item fd.num is exist - process it [06:01:47]SAM_PROTO_GetFieldsCounters [06:01:47]wFMCommunicate request_size=4 [06:01:47]MH_SAM_APDU [06:01:47]CAPDU: 80 13 00 00 [06:01:47]Write to MH i2c: E2 08 00 AE 06 80 13 00 00 00 00 00 00 30 [06:01:47]Write i2c OK [06:01:47]MH_I2C_Read... [06:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:47]Read from MH i2c: E2 [06:01:47]MH_I2C_Read... [06:01:47]Read from MH i2c: E2 62 00 [06:01:47]MH_I2C_Read... [06:01:47]Read from MH i2c: E2 62 00 AE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 53 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [06:01:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 53 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:01:47]wFMCommunicate OK [06:01:47]SAM_PROTO_GetFieldsCounters done [06:01:47]requested_item shift.num is exist - process it [06:01:47]requested_item shift.opened is exist - process it [06:01:47]req_shift_opened [06:01:47]FM_GetShiftState [06:01:47]SAM_PROTO_GetShiftState [06:01:47]wFMCommunicate request_size=4 [06:01:47]MH_SAM_APDU [06:01:47]CAPDU: 80 13 01 00 [06:01:47]Write to MH i2c: E2 08 00 AF 06 80 13 01 00 00 00 00 00 32 [06:01:47]Write i2c OK [06:01:47]MH_I2C_Read... [06:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:47]Read from MH i2c: E2 [06:01:47]MH_I2C_Read... [06:01:47]Read from MH i2c: E2 0E 00 [06:01:47]MH_I2C_Read... [06:01:47]Read from MH i2c: E2 0E 00 AF 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 04 [06:01:47]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [06:01:47]wFMCommunicate OK [06:01:47]SAM_PROTO_GetShiftState done [06:01:47]FM_GetShiftState done [06:01:47]req_shift_opened done [06:01:47]requested_item shift.open_date is exist - process it [06:01:47]req_shift_open_date [06:01:47]req_shift_open_date done [06:01:47]produce_requested_data done [06:01:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72787,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [06:01:47]process_action_free close_receipt [06:01:47]json_value_free [06:01:47]json_value_free done [06:01:47]process_json_proto returns [06:01:47]Send response to host [06:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72787,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [06:01:47]free response buf [06:01:47]execute_script done [06:01:47]execute_script returns [06:01:47]free content buf [06:01:47]Sock 10.Close socket [06:01:47]Sock 10.Thread stoped [06:01:49]Connected sock=11 [06:01:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 50 A2 00 01 5D 85 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 C9 CB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1C 01 00 35 04 06 00 21 63 FD A0 F4 89 83 E0 89 66 07 7A 8B 39 [06:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FA DD 47 00 A0 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1C 01 00 F4 03 04 00 86 76 21 67 B6 04 01 00 00 06 A2 4F 44 8D 80 E7 EA [06:01:50]CommunicateWithHost err = 0 [06:01:50]CheckOFDResponse [06:01:50]1017 (14) - 77093643461234 [06:01:50]1041 (16) - 0000000000874662 [06:01:50]1040 (4) - 72787 [06:01:50]1012 (4) - 29.10.2024 23:57 [06:01:50]1206 (1) - 0 [06:01:50]OFD Sender: Remove packet 72787 [06:01:50]ProducePacketName [06:01:50]name=ofd_packets/00072787 [06:01:50]NVStorageDeleteData [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:14]recv_with_timeout no data received [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:14]recv_with_timeout no data received [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]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:48]ConnectInit Can't connect to host [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]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: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:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:25]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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:46]recv_with_timeout no data received [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [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:18]recv_with_timeout no data received [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:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:05]recv_with_timeout no data received [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:23]recv_with_timeout no data received [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:06]recv_with_timeout no data received [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:04]recv_with_timeout no data received [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:34]recv_with_timeout no data received [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:48]accept exits with 7 [06:19:48]New connection [06:19:48]New thread 3066969444 created [06:19:48]Thread 3067112804 joined [06:19:48]Waiting for new connection... [06:19:48] Sock 7.Parse request [06:19:48]Sock 7.Check first char [06:19:48]Sock 7.First char is OK [06:19:48]request: POST /json_proto HTTP/1.0 [06:19:48]Method: POST [06:19:48]URL: /json_proto [06:19:48]Method is POST - this is cgi request [06:19:48]url: /json_proto [06:19:48]query_string will be loaded in cgi processing [06:19:48]execute_cgi json_proto POST (null) [06:19:48]execute_cgi path=json_proto method=POST [06:19:48]POST find Content-Length [06:19:48]Host: 172.17.43.195:8080 [06:19:48]Content-Length: 791 [06:19:48]Content-Type: application/json [06:19:48] [06:19:48]POST finish read [06:19:48]Found Content-Length = 791 [06:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:19:48]execute_script... [06:19:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:19:48]POST & json_proto [06:19:48]process_json_proto [06:19:48]json parsed OK: [06:19:48]protocol is kg_v1.0 [06:19:48]action value=close_receipt [06:19:48]process_action close_receipt [06:19:48]cmd_close_receipt [06:19:48]MH_GetDate [06:19:48]Write to MH i2c: F0 00 00 B0 06 A5 [06:19:48]Write i2c OK [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: F0 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: F0 09 00 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: F0 09 00 B0 06 00 06 D0 21 67 74 2C AD 66 BF [06:19:48]GetLastDocTimeStamp 1730268105 [06:19:48]current date 1730269190 [06:19:48]FM_GetShiftState [06:19:48]SAM_PROTO_GetShiftState [06:19:48]wFMCommunicate request_size=4 [06:19:48]MH_SAM_APDU [06:19:48]CAPDU: 80 13 01 00 [06:19:48]Write to MH i2c: E2 08 00 B1 06 80 13 01 00 00 00 00 00 34 [06:19:48]Write i2c OK [06:19:48]MH_I2C_Read... [06:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:19:48]Read from MH i2c: E2 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 0E 00 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 0E 00 B1 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 06 [06:19:48]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [06:19:48]wFMCommunicate OK [06:19:48]SAM_PROTO_GetShiftState done [06:19:48]FM_GetShiftState done [06:19:48]opened in 1730247109 [06:19:48]opened+sec_in_day 1730333509 [06:19:48]quantity*price = 0 [06:19:48]sum+1 = 1 [06:19:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 26 30.10.2024 06:39 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72789 ФПД: 219669039454333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T063906&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72789&fm=219669039454333&tin=02508201610067®Number=0000000000091644&sum=0 [06:39:06]StoreToDocumentArchive [06:39:06]shift 556 fd 72789 [06:39:06]save to /storage/0556/doc_00072789 [06:39:06]save last doc name /storage/0556/doc_00072789 to /storage/kkm_last_doc_name [06:39:06]save OK [06:39:06]Clear old archive folders... [06:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:39:06]tlvbuf is 01B44CD0 [06:39:06]SAM_PROTO_ClearQueue [06:39:06]wFMCommunicate request_size=4 [06:39:06]MH_SAM_APDU [06:39:06]CAPDU: 80 09 00 00 [06:39:06]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [06:39:06]Write i2c OK [06:39:06]MH_I2C_Read... [06:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:39:06]Read from MH i2c: E2 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [06:39:06]RAPDU: 90 00 [06:39:06]wFMCommunicate OK [06:39:06]SAM_PROTO_ClearQueue done [06:39:06]KKMCreateOFDPacket [06:39:06]OFDProtocolAddRootSTLVToBuf [06:39:06]FM_MakeSignedData [06:39:06]FM_MakeSignedData [06:39:06]SAM_PROTO_SignData [06:39:06]wFMCommunicate request_size=4 [06:39:06]MH_SAM_APDU [06:39:06]CAPDU: 80 0D 01 02 [06:39:06]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [06:39:06]Write i2c OK [06:39:06]MH_I2C_Read... [06:39:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:39:06]Read from MH i2c: E2 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 [06:39:06]MH_I2C_Read... [06:39:06]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [06:39:07]RAPDU: 90 00 [06:39:07]wFMCommunicate OK [06:39:07]wFMCommunicate request_size=255 [06:39:07]MH_SAM_APDU [06:39:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 8A D4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1C 01 00 35 04 06 00 C7 [06:39:07]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 8A D4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1C 01 00 35 04 06 00 C7 00 00 6B [06:39:07]Write i2c OK [06:39:07]MH_I2C_Read... [06:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:07]Read from MH i2c: E2 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: E2 03 00 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [06:39:07]RAPDU: 90 00 [06:39:07]wFMCommunicate OK [06:39:07]wFMCommunicate request_size=10 [06:39:07]MH_SAM_APDU [06:39:07]CAPDU: 80 0D 02 02 05 C9 AF 10 98 7D [06:39:07]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 C9 AF 10 98 7D 00 00 4F [06:39:07]Write i2c OK [06:39:07]MH_I2C_Read... [06:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:07]Read from MH i2c: E2 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: E2 03 00 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [06:39:07]RAPDU: 90 00 [06:39:07]wFMCommunicate OK [06:39:07]wFMCommunicate request_size=4 [06:39:07]MH_SAM_APDU [06:39:07]CAPDU: 80 0D 03 02 [06:39:07]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [06:39:07]Write i2c OK [06:39:07]MH_I2C_Read... [06:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:39:07]Read from MH i2c: E2 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: E2 0B 00 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: E2 0B 00 2F 00 00 1D 8A CE 0F 8B 5F A6 70 90 00 2F [06:39:07]RAPDU: 1D 8A CE 0F 8B 5F A6 70 90 00 [06:39:07]wFMCommunicate OK [06:39:07]SAM_PROTO_SignData done [06:39:07]FM_MakeSignedData done [06:39:07]CreateOFDProtocolMessage [06:39:07]wFMCommunicate request_size=4 [06:39:07]MH_SAM_APDU [06:39:07]CAPDU: 80 11 00 00 [06:39:07]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [06:39:07]Write i2c OK [06:39:07]MH_I2C_Read... [06:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:07]Read from MH i2c: E2 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: E2 17 00 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [06:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:39:07]wFMCommunicate OK [06:39:07]CreateOFDProtocolMessage done [06:39:07]OFDSenderStorePacket 72789 [06:39:07]StoreOFDPacket docnum=72789 [06:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 91 85 07 01 4A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 8A D4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1C 01 00 35 04 06 00 C7 C9 AF 10 98 7D 1D 8A CE 0F 8B 5F A6 70 [06:39:07]CheckFolder [06:39:07]dirname=/storage/ofd_packets [06:39:07]CheckFolder done [06:39:07]ProducePacketName [06:39:07]name=ofd_packets/00072789 [06:39:07]NVStorageSaveData ofd_packets/00072789 [06:39:07]File name is /storage/ofd_packets/00072789 [06:39:07]Write 301 bytes [06:39:07]NVStorageSaveData done [06:39:07]OFDSenderStorePacket done [06:39:07]KKMCreateOFDPacket done [06:39:07]NVStorageSaveData kkm_last_timestamp [06:39:07]File name is /storage/kkm_last_timestamp [06:39:07]Write 4 bytes [06:39:07]NVStorageSaveData done [06:39:07]ExternCall_PrintAddStr [06:39:07]wPrintStart [06:39:07]Write to MH i2c: 01 00 00 31 00 31 [06:39:07]Write i2c OK [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: 01 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: 01 07 00 [06:39:07]MH_I2C_Read... [06:39:07]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [06:39:07]RasterBufferAndPrint [06:39:07]line Счет N : (1)952344 [06:39:07]line ИНН: 02508201610067 [06:39:07]line Контрольно-Кассовый Чек [06:39:07]line ПРОДАЖА [06:39:07]line ТРК (МРК, ГНК) : 53 [06:39:07]line Товар: 2710124130 [06:39:07]line Аи-92-К-5 [06:39:07]line 7.480 * 0.00 [06:39:07]line = 0.00 [06:39:07]line НДС 12% НСП 1% [06:39:07]line > о реализуемом товаре [06:39:07]line ИТОГО: 0.00 [06:39:07]line НСП 1% : 0.00 [06:39:07]line НДС 12% : 0.00 [06:39:07]line Наличными: 0.00 [06:39:07]line Безнал.: 0.00 [06:39:07]line Место: АЗС № 113 "Партнер Нефть" [06:39:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:39:07]line СНО: Общий режим [06:39:07]line Чек 26 30.10.2024 06:39 [06:39:07]line Смена: 556 ФФД: 1.0 [06:39:07]line ЗНМ: 0300000087 [06:39:07]line РНМ: 0000000000091644 [06:39:07]line Версия ККМ: 001 [06:39:07]line Талоны: Топливная Карта [06:39:07]line 03047 [06:39:07]line ФМ: 0000000000874662 [06:39:07]line ФД: 72789 [06:39:07]line ФПД: 219669039454333 [06:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T063906&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72789&fm=219669039454333&tin=02508201610067®Number=0000000000091644&sum=0 [06:39:07]written 0, free lines is 4095 [06:39:07]OFD Sender: Processing packet 72789 [packets to send 278, broken 277] [06:39:07]ProducePacketName [06:39:07]name=ofd_packets/00072789 [06:39:07]OFD Sender: To server: pG, [06:39:07]CommunicateWithHost lk.salyk.kg:30040 [06:39:07]ConnectInit lk.salyk.kg [06:39:08]Write to MH i2c: 01 00 00 5B 00 5B [06:39:08]Write i2c OK [06:39:08]MH_I2C_Read... [06:39:08]Read from MH i2c: 01 [06:39:08]MH_I2C_Read... [06:39:08]Read from MH i2c: 01 07 00 [06:39:08]MH_I2C_Read... [06:39:08]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F7 0C 65 [06:39:08]RasterBufferAndPrint [06:39:08]line [06:39:08]line [06:39:08]line [06:39:08]line [06:39:08]line [06:39:08]written 0, free lines is 3342 [06:39:08]MH_Cut [06:39:08]Write to MH i2c: D1 01 00 62 00 01 34 [06:39:08]Write i2c OK [06:39:08]MH_I2C_Read... [06:39:08]Read from MH i2c: D1 [06:39:08]MH_I2C_Read... [06:39:08]Read from MH i2c: D1 01 00 [06:39:08]MH_I2C_Read... [06:39:08]Read from MH i2c: D1 01 00 62 00 00 33 [06:39:08]Write to MH i2c: 01 00 00 63 00 63 [06:39:08]Write i2c OK [06:39:08]MH_I2C_Read... [06:39:08]*** Cut start [06:39:08]*** Partial cut [06:39:08]*** CUTSNS_PIN = 1 [06:39:08]*** CUTSNS_PIN = 0 [06:39:09]*** Brake cut motor [06:39:09]recv_with_timeout no data received [06:39:09]Read from MH i2c: 01 [06:39:09]MH_I2C_Read... [06:39:09]*** Stop cut motor [06:39:09]*** Cut end [06:39:09]Read from MH i2c: 01 07 00 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [06:39:09]process_action close_receipt done [06:39:09]requested_data is exist [06:39:09]produce_requested_data [06:39:09]requested_item fm.sn is exist - process it [06:39:09]wFMCommunicate request_size=4 [06:39:09]MH_SAM_APDU [06:39:09]CAPDU: 80 11 00 00 [06:39:09]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [06:39:09]Write i2c OK [06:39:09]MH_I2C_Read... [06:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:09]Read from MH i2c: E2 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 17 00 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [06:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:39:09]wFMCommunicate OK [06:39:09]requested_item fd.num is exist - process it [06:39:09]SAM_PROTO_GetFieldsCounters [06:39:09]wFMCommunicate request_size=4 [06:39:09]MH_SAM_APDU [06:39:09]CAPDU: 80 13 00 00 [06:39:09]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [06:39:09]Write i2c OK [06:39:09]MH_I2C_Read... [06:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:39:09]Read from MH i2c: E2 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 62 00 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 55 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [06:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 55 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:39:09]wFMCommunicate OK [06:39:09]SAM_PROTO_GetFieldsCounters done [06:39:09]requested_item shift.num is exist - process it [06:39:09]requested_item shift.opened is exist - process it [06:39:09]req_shift_opened [06:39:09]FM_GetShiftState [06:39:09]SAM_PROTO_GetShiftState [06:39:09]wFMCommunicate request_size=4 [06:39:09]MH_SAM_APDU [06:39:09]CAPDU: 80 13 01 00 [06:39:09]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [06:39:09]Write i2c OK [06:39:09]MH_I2C_Read... [06:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:09]Read from MH i2c: E2 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 0E 00 [06:39:09]MH_I2C_Read... [06:39:09]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B5 [06:39:09]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [06:39:09]wFMCommunicate OK [06:39:09]SAM_PROTO_GetShiftState done [06:39:09]FM_GetShiftState done [06:39:09]req_shift_opened done [06:39:09]requested_item shift.open_date is exist - process it [06:39:09]req_shift_open_date [06:39:09]req_shift_open_date done [06:39:09]produce_requested_data done [06:39:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72789,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [06:39:09]process_action_free close_receipt [06:39:09]json_value_free [06:39:09]json_value_free done [06:39:09]process_json_proto returns [06:39:09]Send response to host [06:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72789,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [06:39:09]free response buf [06:39:09]execute_script done [06:39:09]execute_script returns [06:39:09]free content buf [06:39:09]Sock 6.Close socket [06:39:09]Sock 6.Thread stoped [06:39:12]ConnectInit Can't take IP for lk.salyk.kg [06:39:12]CommunicateWithHost connect error [06:39:12]CommunicateWithHost err = -1 [06:39:12]OFD Sender: Server communicate error [06:39:17]OFD Sender: Processing packet 72789 [packets to send 278, broken 277] [06:39:17]ProducePacketName [06:39:17]name=ofd_packets/00072789 [06:39:17]OFD Sender: To server: pG, [06:39:17]CommunicateWithHost lk.salyk.kg:30040 [06:39:17]ConnectInit lk.salyk.kg [06:39:20]Connected sock=9 [06:39:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 91 85 07 01 4A 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 8A D4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1C 01 00 35 04 06 00 C7 C9 AF 10 98 7D 1D 8A CE 0F 8B 5F A6 70 [06:39:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0D 01 47 00 44 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1C 01 00 F4 03 04 00 50 7F 21 67 B6 04 01 00 00 44 EE 38 99 1A 59 0F CD [06:39:20]CommunicateWithHost err = 0 [06:39:20]CheckOFDResponse [06:39:20]1017 (14) - 77093643461234 [06:39:20]1041 (16) - 0000000000874662 [06:39:20]1040 (4) - 72789 [06:39:20]1012 (4) - 30.10.2024 00:35 [06:39:20]1206 (1) - 0 [06:39:20]OFD Sender: Remove packet 72789 [06:39:20]ProducePacketName [06:39:20]name=ofd_packets/00072789 [06:39:20]NVStorageDeleteData [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:39]recv_with_timeout no data received [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:52]recv_with_timeout no data received [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]recv_with_timeout no data received [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:13]accept exits with 10 [06:40:13]New connection [06:40:13]New thread 3066514788 created [06:40:13]Thread 3066658148 joined [06:40:13]Waiting for new connection... [06:40:13] Sock 10.Parse request [06:40:13]Sock 10.Check first char [06:40:13]Sock 10.First char is OK [06:40:13]request: POST /json_proto HTTP/1.0 [06:40:13]Method: POST [06:40:13]URL: /json_proto [06:40:13]Method is POST - this is cgi request [06:40:13]url: /json_proto [06:40:13]query_string will be loaded in cgi processing [06:40:13]execute_cgi json_proto POST (null) [06:40:13]execute_cgi path=json_proto method=POST [06:40:13]POST find Content-Length [06:40:13]Host: 172.17.43.195:8080 [06:40:13]Content-Length: 792 [06:40:13]Content-Type: application/json [06:40:13] [06:40:13]POST finish read [06:40:13]Found Content-Length = 792 [06:40:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.040, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:13]execute_script... [06:40:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.040, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:40:13]POST & json_proto [06:40:13]process_json_proto [06:40:13]json parsed OK: [06:40:13]protocol is kg_v1.0 [06:40:13]action value=close_receipt [06:40:13]process_action close_receipt [06:40:13]cmd_close_receipt [06:40:13]MH_GetDate [06:40:13]Write to MH i2c: F0 00 00 67 00 56 [06:40:13]Write i2c OK [06:40:13]MH_I2C_Read... [06:40:13]Read from MH i2c: F0 [06:40:13]MH_I2C_Read... [06:40:13]Read from MH i2c: F0 09 00 [06:40:13]MH_I2C_Read... [06:40:13]Read from MH i2c: F0 09 00 67 00 00 CD D4 21 67 74 2C AD 66 3B [06:40:13]GetLastDocTimeStamp 1730270346 [06:40:13]current date 1730270413 [06:40:13]FM_GetShiftState [06:40:13]SAM_PROTO_GetShiftState [06:40:13]wFMCommunicate request_size=4 [06:40:13]MH_SAM_APDU [06:40:13]CAPDU: 80 13 01 00 [06:40:13]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [06:40:13]Write i2c OK [06:40:13]MH_I2C_Read... [06:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:13]Read from MH i2c: E2 [06:40:13]MH_I2C_Read... [06:40:13]Read from MH i2c: E2 0E 00 [06:40:13]MH_I2C_Read... [06:40:13]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B7 [06:40:13]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [06:40:13]wFMCommunicate OK [06:40:13]SAM_PROTO_GetShiftState done [06:40:13]FM_GetShiftState done [06:40:13]opened in 1730247109 [06:40:13]opened+sec_in_day 1730333509 [06:40:13]quantity*price = 0 [06:40:13]sum+1 = 1 [06:40:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 27 30.10.2024 06:40 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72790 ФПД: 211968264157582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T064013&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72790&fm=211968264157582&tin=02508201610067®Number=0000000000091644&sum=0 [06:40:14]StoreToDocumentArchive [06:40:14]shift 556 fd 72790 [06:40:14]save to /storage/0556/doc_00072790 [06:40:14]save last doc name /storage/0556/doc_00072790 to /storage/kkm_last_doc_name [06:40:14]save OK [06:40:14]Clear old archive folders... [06:40:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:40:14]tlvbuf is 01B4CD10 [06:40:14]SAM_PROTO_ClearQueue [06:40:14]wFMCommunicate request_size=4 [06:40:14]MH_SAM_APDU [06:40:14]CAPDU: 80 09 00 00 [06:40:14]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [06:40:14]Write i2c OK [06:40:14]MH_I2C_Read... [06:40:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:40:14]Read from MH i2c: E2 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 03 00 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [06:40:14]RAPDU: 90 00 [06:40:14]wFMCommunicate OK [06:40:14]SAM_PROTO_ClearQueue done [06:40:14]KKMCreateOFDPacket [06:40:14]OFDProtocolAddRootSTLVToBuf [06:40:14]FM_MakeSignedData [06:40:14]FM_MakeSignedData [06:40:14]SAM_PROTO_SignData [06:40:14]wFMCommunicate request_size=4 [06:40:14]MH_SAM_APDU [06:40:14]CAPDU: 80 0D 01 02 [06:40:14]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [06:40:14]Write i2c OK [06:40:14]MH_I2C_Read... [06:40:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:40:14]Read from MH i2c: E2 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 03 00 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [06:40:14]RAPDU: 90 00 [06:40:14]wFMCommunicate OK [06:40:14]wFMCommunicate request_size=255 [06:40:14]MH_SAM_APDU [06:40:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 3A 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 1B 00 00 00 F4 03 04 00 CD D4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 56 1C 01 00 35 04 06 00 C0 [06:40:14]Write to MH i2c: E2 02 01 77 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 C0 3A 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 1B 00 00 00 F4 03 04 00 CD D4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 56 1C 01 00 35 04 06 00 C0 00 00 98 [06:40:14]Write i2c OK [06:40:14]MH_I2C_Read... [06:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:14]Read from MH i2c: E2 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 03 00 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [06:40:14]RAPDU: 90 00 [06:40:14]wFMCommunicate OK [06:40:14]wFMCommunicate request_size=10 [06:40:14]MH_SAM_APDU [06:40:14]CAPDU: 80 0D 02 02 05 C8 B5 16 B9 8E [06:40:14]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 C8 B5 16 B9 8E 00 00 D6 [06:40:14]Write i2c OK [06:40:14]MH_I2C_Read... [06:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:40:14]Read from MH i2c: E2 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 03 00 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [06:40:14]RAPDU: 90 00 [06:40:14]wFMCommunicate OK [06:40:14]wFMCommunicate request_size=4 [06:40:14]MH_SAM_APDU [06:40:14]CAPDU: 80 0D 03 02 [06:40:14]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [06:40:14]Write i2c OK [06:40:14]MH_I2C_Read... [06:40:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:40:14]Read from MH i2c: E2 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 0B 00 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 0B 00 79 00 00 36 EA 7F BF AC E9 9A F3 90 00 75 [06:40:14]RAPDU: 36 EA 7F BF AC E9 9A F3 90 00 [06:40:14]wFMCommunicate OK [06:40:14]SAM_PROTO_SignData done [06:40:14]FM_MakeSignedData done [06:40:14]CreateOFDProtocolMessage [06:40:14]wFMCommunicate request_size=4 [06:40:14]MH_SAM_APDU [06:40:14]CAPDU: 80 11 00 00 [06:40:14]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [06:40:14]Write i2c OK [06:40:14]MH_I2C_Read... [06:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:14]Read from MH i2c: E2 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 17 00 [06:40:14]MH_I2C_Read... [06:40:14]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [06:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:40:14]wFMCommunicate OK [06:40:14]CreateOFDProtocolMessage done [06:40:14]OFDSenderStorePacket 72790 [06:40:14]StoreOFDPacket docnum=72790 [06:40:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D2 14 07 01 E4 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 3A 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 1B 00 00 00 F4 03 04 00 CD D4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 56 1C 01 00 35 04 06 00 C0 C8 B5 16 B9 8E 36 EA 7F BF AC E9 9A F3 [06:40:14]CheckFolder [06:40:14]dirname=/storage/ofd_packets [06:40:14]CheckFolder done [06:40:14]ProducePacketName [06:40:14]name=ofd_packets/00072790 [06:40:14]NVStorageSaveData ofd_packets/00072790 [06:40:14]File name is /storage/ofd_packets/00072790 [06:40:14]Write 301 bytes [06:40:14]NVStorageSaveData done [06:40:14]OFDSenderStorePacket done [06:40:14]KKMCreateOFDPacket done [06:40:15]NVStorageSaveData kkm_last_timestamp [06:40:15]File name is /storage/kkm_last_timestamp [06:40:15]Write 4 bytes [06:40:15]NVStorageSaveData done [06:40:15]ExternCall_PrintAddStr [06:40:15]wPrintStart [06:40:15]Write to MH i2c: 01 00 00 7B 00 7B [06:40:15]Write i2c OK [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: 01 [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: 01 07 00 [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [06:40:15]RasterBufferAndPrint [06:40:15]line Счет N : (1)952345 [06:40:15]line ИНН: 02508201610067 [06:40:15]line Контрольно-Кассовый Чек [06:40:15]line ПРОДАЖА [06:40:15]line ТРК (МРК, ГНК) : 53 [06:40:15]line Товар: 2710124130 [06:40:15]line Аи-92-К-5 [06:40:15]line 15.040 * 0.00 [06:40:15]line = 0.00 [06:40:15]line НДС 12% НСП 1% [06:40:15]line > о реализуемом товаре [06:40:15]line ИТОГО: 0.00 [06:40:15]line НСП 1% : 0.00 [06:40:15]line НДС 12% : 0.00 [06:40:15]line Наличными: 0.00 [06:40:15]line Безнал.: 0.00 [06:40:15]line Место: АЗС № 113 "Партнер Нефть" [06:40:15]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:40:15]line СНО: Общий режим [06:40:15]line Чек 27 30.10.2024 06:40 [06:40:15]line Смена: 556 ФФД: 1.0 [06:40:15]line ЗНМ: 0300000087 [06:40:15]line РНМ: 0000000000091644 [06:40:15]line Версия ККМ: 001 [06:40:15]line Талоны: Топливная Карта [06:40:15]line 03047 [06:40:15]line ФМ: 0000000000874662 [06:40:15]line ФД: 72790 [06:40:15]line ФПД: 211968264157582 [06:40:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T064013&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72790&fm=211968264157582&tin=02508201610067®Number=0000000000091644&sum=0 [06:40:15]written 0, free lines is 4095 [06:40:15]OFD Sender: Processing packet 72790 [packets to send 278, broken 277] [06:40:15]ProducePacketName [06:40:15]name=ofd_packets/00072790 [06:40:15]OFD Sender: To server: pG, [06:40:15]CommunicateWithHost lk.salyk.kg:30040 [06:40:15]ConnectInit lk.salyk.kg [06:40:15]Write to MH i2c: 01 00 00 A5 00 A5 [06:40:15]Write i2c OK [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: 01 [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: 01 07 00 [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E6 0C 9E [06:40:15]RasterBufferAndPrint [06:40:15]line [06:40:15]line [06:40:15]line [06:40:15]line [06:40:15]line [06:40:15]written 0, free lines is 3309 [06:40:15]MH_Cut [06:40:15]Write to MH i2c: D1 01 00 AC 00 01 7E [06:40:15]Write i2c OK [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: D1 [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: D1 01 00 [06:40:15]MH_I2C_Read... [06:40:15]Read from MH i2c: D1 01 00 AC 00 00 7D [06:40:15]Write to MH i2c: 01 00 00 AD 00 AD [06:40:15]Write i2c OK [06:40:15]MH_I2C_Read... [06:40:16]*** Cut start [06:40:16]*** Partial cut [06:40:16]*** CUTSNS_PIN = 1 [06:40:16]*** CUTSNS_PIN = 0 [06:40:16]*** Brake cut motor [06:40:16]Read from MH i2c: 01 [06:40:16]MH_I2C_Read... [06:40:16]*** Stop cut motor [06:40:16]*** Cut end [06:40:16]Read from MH i2c: 01 07 00 [06:40:16]MH_I2C_Read... [06:40:16]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [06:40:16]process_action close_receipt done [06:40:16]requested_data is exist [06:40:16]produce_requested_data [06:40:16]requested_item fm.sn is exist - process it [06:40:16]wFMCommunicate request_size=4 [06:40:16]MH_SAM_APDU [06:40:16]CAPDU: 80 11 00 00 [06:40:16]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [06:40:16]Write i2c OK [06:40:16]MH_I2C_Read... [06:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:40:16]Read from MH i2c: E2 [06:40:16]MH_I2C_Read... [06:40:16]Read from MH i2c: E2 17 00 [06:40:16]MH_I2C_Read... [06:40:16]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [06:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:40:16]wFMCommunicate OK [06:40:16]requested_item fd.num is exist - process it [06:40:16]SAM_PROTO_GetFieldsCounters [06:40:16]wFMCommunicate request_size=4 [06:40:16]MH_SAM_APDU [06:40:16]CAPDU: 80 13 00 00 [06:40:16]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [06:40:16]Write i2c OK [06:40:16]MH_I2C_Read... [06:40:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:40:17]Read from MH i2c: E2 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 62 00 [06:40:17]MH_I2C_Read... [06:40:17]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 56 1C 01 00 0E 04 04 00 2C 02 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 3E [06:40:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 56 1C 01 00 0E 04 04 00 2C 02 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 [06:40:17]wFMCommunicate OK [06:40:17]SAM_PROTO_GetFieldsCounters done [06:40:17]requested_item shift.num is exist - process it [06:40:17]requested_item shift.opened is exist - process it [06:40:17]req_shift_opened [06:40:17]FM_GetShiftState [06:40:17]SAM_PROTO_GetShiftState [06:40:17]wFMCommunicate request_size=4 [06:40:17]MH_SAM_APDU [06:40:17]CAPDU: 80 13 01 00 [06:40:17]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [06:40:17]Write i2c OK [06:40:17]MH_I2C_Read... [06:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:40:17]Read from MH i2c: E2 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 0E 00 [06:40:17]MH_I2C_Read... [06:40:17]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 FF [06:40:17]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [06:40:17]wFMCommunicate OK [06:40:17]SAM_PROTO_GetShiftState done [06:40:17]FM_GetShiftState done [06:40:17]req_shift_opened done [06:40:17]requested_item shift.open_date is exist - process it [06:40:17]req_shift_open_date [06:40:17]req_shift_open_date done [06:40:17]produce_requested_data done [06:40:17]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72790,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [06:40:17]process_action_free close_receipt [06:40:17]json_value_free [06:40:17]json_value_free done [06:40:17]process_json_proto returns [06:40:17]Send response to host [06:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72790,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [06:40:17]free response buf [06:40:17]execute_script done [06:40:17]execute_script returns [06:40:17]free content buf [06:40:17]Sock 10.Close socket [06:40:17]Sock 10.Thread stoped [06:40:20]recv_with_timeout no data received [06:40:29]Connected sock=11 [06:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D2 14 07 01 E4 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 3A 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 1B 00 00 00 F4 03 04 00 CD D4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 56 1C 01 00 35 04 06 00 C0 C8 B5 16 B9 8E 36 EA 7F BF AC E9 9A F3 [06:40:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0E 7A 47 00 D9 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 56 1C 01 00 F4 03 04 00 98 7F 21 67 B6 04 01 00 00 06 6F 7D 6F B9 1A 11 D6 [06:40:33]CommunicateWithHost err = 0 [06:40:33]CheckOFDResponse [06:40:33]1017 (14) - 77093643461234 [06:40:33]1041 (16) - 0000000000874662 [06:40:33]1040 (4) - 72790 [06:40:33]1012 (4) - 30.10.2024 00:36 [06:40:33]1206 (1) - 0 [06:40:33]OFD Sender: Remove packet 72790 [06:40:33]ProducePacketName [06:40:33]name=ofd_packets/00072790 [06:40:33]NVStorageDeleteData [06:40:33]OFD Sender: No OFD packet to send [06:40:37]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:06]recv_with_timeout no data received [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:22]recv_with_timeout no data received [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:22]recv_with_timeout no data received [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:50]recv_with_timeout no data received [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:10]recv_with_timeout no data received [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:07]accept exits with 9 [06:48:07]New connection [06:48:07]New thread 3066658148 created [06:48:07]Thread 3066514788 joined [06:48:07]Waiting for new connection... [06:48:07] Sock 9.Parse request [06:48:07]Sock 9.Check first char [06:48:07]Sock 9.First char is OK [06:48:07]request: POST /json_proto HTTP/1.0 [06:48:07]Method: POST [06:48:07]URL: /json_proto [06:48:07]Method is POST - this is cgi request [06:48:07]url: /json_proto [06:48:07]query_string will be loaded in cgi processing [06:48:07]execute_cgi json_proto POST (null) [06:48:07]execute_cgi path=json_proto method=POST [06:48:07]POST find Content-Length [06:48:07]Host: 172.17.43.195:8080 [06:48:07]Content-Length: 792 [06:48:07]Content-Type: application/json [06:48:07] [06:48:07]POST finish read [06:48:07]Found Content-Length = 792 [06:48:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:07]execute_script... [06:48:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:07]POST & json_proto [06:48:07]process_json_proto [06:48:07]json parsed OK: [06:48:07]protocol is kg_v1.0 [06:48:07]action value=close_receipt [06:48:07]process_action close_receipt [06:48:07]cmd_close_receipt [06:48:07]MH_GetDate [06:48:07]Write to MH i2c: F0 00 00 B1 00 A0 [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: F0 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: F0 09 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: F0 09 00 B1 00 00 A7 D6 21 67 74 2C AD 66 61 [06:48:07]GetLastDocTimeStamp 1730270413 [06:48:07]current date 1730270887 [06:48:07]FM_GetShiftState [06:48:07]SAM_PROTO_GetShiftState [06:48:07]wFMCommunicate request_size=4 [06:48:07]MH_SAM_APDU [06:48:07]CAPDU: 80 13 01 00 [06:48:07]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:07]Read from MH i2c: E2 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: E2 0E 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 01 [06:48:07]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [06:48:07]wFMCommunicate OK [06:48:07]SAM_PROTO_GetShiftState done [06:48:07]FM_GetShiftState done [06:48:07]opened in 1730247109 [06:48:07]opened+sec_in_day 1730333509 [06:48:07]quantity*price = 0 [06:48:07]sum+1 = 1 [06:48:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 28 30.10.2024 06:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72791 ФПД: 34714679246651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T064807&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72791&fm=34714679246651&tin=02508201610067®Number=0000000000091644&sum=0 [06:48:08]StoreToDocumentArchive [06:48:08]shift 556 fd 72791 [06:48:08]save to /storage/0556/doc_00072791 [06:48:08]save last doc name /storage/0556/doc_00072791 to /storage/kkm_last_doc_name [06:48:08]save OK [06:48:08]Clear old archive folders... [06:48:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:48:08]tlvbuf is 01AE3C10 [06:48:08]SAM_PROTO_ClearQueue [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 09 00 00 [06:48:08]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 03 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [06:48:08]RAPDU: 90 00 [06:48:08]wFMCommunicate OK [06:48:08]SAM_PROTO_ClearQueue done [06:48:08]KKMCreateOFDPacket [06:48:08]OFDProtocolAddRootSTLVToBuf [06:48:08]FM_MakeSignedData [06:48:08]FM_MakeSignedData [06:48:08]SAM_PROTO_SignData [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 0D 01 02 [06:48:08]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 03 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [06:48:08]RAPDU: 90 00 [06:48:08]wFMCommunicate OK [06:48:08]wFMCommunicate request_size=255 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1C 00 00 00 F4 03 04 00 A7 D6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 57 1C 01 00 35 04 06 00 1F [06:48:08]Write to MH i2c: E2 02 01 C1 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 1C 00 00 00 F4 03 04 00 A7 D6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 57 1C 01 00 35 04 06 00 1F 00 00 5C [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 03 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [06:48:08]RAPDU: 90 00 [06:48:08]wFMCommunicate OK [06:48:08]wFMCommunicate request_size=10 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 0D 02 02 05 92 A4 1F FF 3B [06:48:08]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 92 A4 1F FF 3B 00 00 D5 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 03 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [06:48:08]RAPDU: 90 00 [06:48:08]wFMCommunicate OK [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 0D 03 02 [06:48:08]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 0B 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 0B 00 C3 00 00 D2 3D E6 B0 34 2F 76 A0 90 00 5D [06:48:08]RAPDU: D2 3D E6 B0 34 2F 76 A0 90 00 [06:48:08]wFMCommunicate OK [06:48:08]SAM_PROTO_SignData done [06:48:08]FM_MakeSignedData done [06:48:08]CreateOFDProtocolMessage [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 11 00 00 [06:48:08]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 17 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [06:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:48:08]wFMCommunicate OK [06:48:08]CreateOFDProtocolMessage done [06:48:08]OFDSenderStorePacket 72791 [06:48:08]StoreOFDPacket docnum=72791 [06:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA 11 07 01 34 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1C 00 00 00 F4 03 04 00 A7 D6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 57 1C 01 00 35 04 06 00 1F 92 A4 1F FF 3B D2 3D E6 B0 34 2F 76 A0 [06:48:08]CheckFolder [06:48:08]dirname=/storage/ofd_packets [06:48:08]CheckFolder done [06:48:08]ProducePacketName [06:48:08]name=ofd_packets/00072791 [06:48:08]NVStorageSaveData ofd_packets/00072791 [06:48:08]File name is /storage/ofd_packets/00072791 [06:48:08]Write 301 bytes [06:48:08]NVStorageSaveData done [06:48:08]OFDSenderStorePacket done [06:48:08]KKMCreateOFDPacket done [06:48:08]NVStorageSaveData kkm_last_timestamp [06:48:08]File name is /storage/kkm_last_timestamp [06:48:08]Write 4 bytes [06:48:08]NVStorageSaveData done [06:48:08]ExternCall_PrintAddStr [06:48:08]wPrintStart [06:48:08]Write to MH i2c: 01 00 00 C5 00 C5 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: 01 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: 01 07 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [06:48:08]RasterBufferAndPrint [06:48:08]line Счет N : (1)952347 [06:48:08]line ИНН: 02508201610067 [06:48:08]line Контрольно-Кассовый Чек [06:48:08]line ПРОДАЖА [06:48:08]line ТРК (МРК, ГНК) : 53 [06:48:08]line Товар: 2710124130 [06:48:08]line Аи-92-К-5 [06:48:08]line 10.000 * 0.00 [06:48:08]line = 0.00 [06:48:08]line НДС 12% НСП 1% [06:48:08]line > о реализуемом товаре [06:48:08]line ИТОГО: 0.00 [06:48:08]line НСП 1% : 0.00 [06:48:08]line НДС 12% : 0.00 [06:48:08]line Наличными: 0.00 [06:48:08]line Безнал.: 0.00 [06:48:08]line Место: АЗС № 113 "Партнер Нефть" [06:48:08]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:48:08]line СНО: Общий режим [06:48:08]line Чек 28 30.10.2024 06:48 [06:48:08]line Смена: 556 ФФД: 1.0 [06:48:08]line ЗНМ: 0300000087 [06:48:08]line РНМ: 0000000000091644 [06:48:08]line Версия ККМ: 001 [06:48:08]line Талоны: Топливная Карта [06:48:08]line 03047 [06:48:08]line ФМ: 0000000000874662 [06:48:08]line ФД: 72791 [06:48:08]line ФПД: 34714679246651 [06:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T064807&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72791&fm=34714679246651&tin=02508201610067®Number=0000000000091644&sum=0 [06:48:08]written 0, free lines is 4095 [06:48:08]OFD Sender: Processing packet 72791 [packets to send 278, broken 277] [06:48:08]ProducePacketName [06:48:08]name=ofd_packets/00072791 [06:48:08]OFD Sender: To server: pG, [06:48:08]CommunicateWithHost lk.salyk.kg:30040 [06:48:08]ConnectInit lk.salyk.kg [06:48:09]Write to MH i2c: 01 00 00 EF 00 EF [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: 01 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: 01 07 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 E5 0C E7 [06:48:09]RasterBufferAndPrint [06:48:09]line [06:48:09]line [06:48:09]line [06:48:09]line [06:48:09]line [06:48:09]written 0, free lines is 3309 [06:48:09]MH_Cut [06:48:09]Write to MH i2c: D1 01 00 F6 00 01 C8 [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: D1 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: D1 01 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: D1 01 00 F6 00 00 C7 [06:48:09]Write to MH i2c: 01 00 00 F7 00 F7 [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]Connected sock=7 [06:48:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA 11 07 01 34 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1C 00 00 00 F4 03 04 00 A7 D6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 57 1C 01 00 35 04 06 00 1F 92 A4 1F FF 3B D2 3D E6 B0 34 2F 76 A0 [06:48:09]*** Cut start [06:48:09]*** Partial cut [06:48:09]*** CUTSNS_PIN = 1 [06:48:09]*** CUTSNS_PIN = 0 [06:48:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 99 39 47 00 2D 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 57 1C 01 00 F4 03 04 00 61 81 21 67 B6 04 01 00 00 75 09 89 98 BB AA 9E 70 [06:48:10]CommunicateWithHost err = 0 [06:48:10]CheckOFDResponse [06:48:10]1017 (14) - 77093643461234 [06:48:10]1041 (16) - 0000000000874662 [06:48:10]1040 (4) - 72791 [06:48:10]1012 (4) - 30.10.2024 00:44 [06:48:10]1206 (1) - 0 [06:48:10]OFD Sender: Remove packet 72791 [06:48:10]ProducePacketName [06:48:10]name=ofd_packets/00072791 [06:48:10]NVStorageDeleteData [06:48:10]*** Brake cut motor [06:48:10]Read from MH i2c: 01 [06:48:10]MH_I2C_Read... [06:48:10]*** Stop cut motor [06:48:10]*** Cut end [06:48:10]OFD Sender: No OFD packet to send [06:48:10]Read from MH i2c: 01 07 00 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [06:48:10]process_action close_receipt done [06:48:10]requested_data is exist [06:48:10]produce_requested_data [06:48:10]requested_item fm.sn is exist - process it [06:48:10]wFMCommunicate request_size=4 [06:48:10]MH_SAM_APDU [06:48:10]CAPDU: 80 11 00 00 [06:48:10]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [06:48:10]Write i2c OK [06:48:10]MH_I2C_Read... [06:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:10]Read from MH i2c: E2 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: E2 17 00 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C6 [06:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:48:10]wFMCommunicate OK [06:48:10]requested_item fd.num is exist - process it [06:48:10]SAM_PROTO_GetFieldsCounters [06:48:10]wFMCommunicate request_size=4 [06:48:10]MH_SAM_APDU [06:48:10]CAPDU: 80 13 00 00 [06:48:10]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [06:48:10]Write i2c OK [06:48:10]MH_I2C_Read... [06:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:10]Read from MH i2c: E2 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: E2 62 00 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 57 1C 01 00 0E 04 04 00 2C 02 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 8C [06:48:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 57 1C 01 00 0E 04 04 00 2C 02 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 [06:48:10]wFMCommunicate OK [06:48:10]SAM_PROTO_GetFieldsCounters done [06:48:10]requested_item shift.num is exist - process it [06:48:10]requested_item shift.opened is exist - process it [06:48:10]req_shift_opened [06:48:10]FM_GetShiftState [06:48:10]SAM_PROTO_GetShiftState [06:48:10]wFMCommunicate request_size=4 [06:48:10]MH_SAM_APDU [06:48:10]CAPDU: 80 13 01 00 [06:48:10]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [06:48:10]Write i2c OK [06:48:10]MH_I2C_Read... [06:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:10]Read from MH i2c: E2 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: E2 0E 00 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 49 [06:48:10]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [06:48:10]wFMCommunicate OK [06:48:10]SAM_PROTO_GetShiftState done [06:48:10]FM_GetShiftState done [06:48:10]req_shift_opened done [06:48:10]requested_item shift.open_date is exist - process it [06:48:10]req_shift_open_date [06:48:10]req_shift_open_date done [06:48:10]produce_requested_data done [06:48:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72791,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [06:48:10]process_action_free close_receipt [06:48:10]json_value_free [06:48:10]json_value_free done [06:48:10]process_json_proto returns [06:48:10]Send response to host [06:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72791,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [06:48:10]free response buf [06:48:10]execute_script done [06:48:10]execute_script returns [06:48:10]free content buf [06:48:10]Sock 9.Close socket [06:48:10]Sock 9.Thread stoped [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:32]accept exits with 10 [06:48:32]New connection [06:48:32]New thread 3066514788 created [06:48:32]Thread 3066658148 joined [06:48:32]Waiting for new connection... [06:48:32] Sock 10.Parse request [06:48:32]Sock 10.Check first char [06:48:32]Sock 10.First char is OK [06:48:32]request: POST /json_proto HTTP/1.0 [06:48:32]Method: POST [06:48:32]URL: /json_proto [06:48:32]Method is POST - this is cgi request [06:48:32]url: /json_proto [06:48:32]query_string will be loaded in cgi processing [06:48:32]execute_cgi json_proto POST (null) [06:48:32]execute_cgi path=json_proto method=POST [06:48:32]POST find Content-Length [06:48:32]Host: 172.17.43.195:8080 [06:48:32]Content-Length: 685 [06:48:32]Content-Type: application/json [06:48:32] [06:48:32]POST finish read [06:48:32]Found Content-Length = 685 [06:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.530, "sum" : 1187.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1187.00, "payments": [ { "type": 0, "sum" : 1187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:32]execute_script... [06:48: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)952346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.530, "sum" : 1187.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1187.00, "payments": [ { "type": 0, "sum" : 1187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:32]POST & json_proto [06:48:32]process_json_proto [06:48:32]json parsed OK: [06:48:32]protocol is kg_v1.0 [06:48:32]action value=close_receipt [06:48:32]process_action close_receipt [06:48:32]cmd_close_receipt [06:48:32]MH_GetDate [06:48:32]Write to MH i2c: F0 00 00 FB 00 EA [06:48:32]Write i2c OK [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: F0 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: F0 09 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: F0 09 00 FB 00 00 C0 D6 21 67 74 2C AD 66 C4 [06:48:32]GetLastDocTimeStamp 1730270887 [06:48:32]current date 1730270912 [06:48:32]FM_GetShiftState [06:48:32]SAM_PROTO_GetShiftState [06:48:32]wFMCommunicate request_size=4 [06:48:32]MH_SAM_APDU [06:48:32]CAPDU: 80 13 01 00 [06:48:32]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [06:48:32]Write i2c OK [06:48:32]MH_I2C_Read... [06:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:32]Read from MH i2c: E2 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 0E 00 [06:48:32]MH_I2C_Read... [06:48:32]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4B [06:48:32]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [06:48:32]wFMCommunicate OK [06:48:32]SAM_PROTO_GetShiftState done [06:48:32]FM_GetShiftState done [06:48:32]opened in 1730247109 [06:48:32]opened+sec_in_day 1730333509 [06:48:32]quantity*price = 118761 [06:48:32]sum+1 = 118763 [06:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1187.00 Внесено: 2000.00 СДАЧА: 813.00 НСП 1% : 10.51 НДС 12% : 126.12 Наличными: 1187.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 29 30.10.2024 06:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72792 ФПД: 238261933540058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T064832&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72792&fm=238261933540058&tin=02508201610067®Number=0000000000091644&sum=118700 [06:48:33]StoreToDocumentArchive [06:48:33]shift 556 fd 72792 [06:48:33]save to /storage/0556/doc_00072792 [06:48:33]save last doc name /storage/0556/doc_00072792 to /storage/kkm_last_doc_name [06:48:33]save OK [06:48:33]Clear old archive folders... [06:48:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:48:33]tlvbuf is 01AE7260 [06:48:33]SAM_PROTO_ClearQueue [06:48:33]wFMCommunicate request_size=4 [06:48:33]MH_SAM_APDU [06:48:33]CAPDU: 80 09 00 00 [06:48:33]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [06:48:33]Write i2c OK [06:48:33]MH_I2C_Read... [06:48:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:33]Read from MH i2c: E2 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 03 00 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [06:48:33]RAPDU: 90 00 [06:48:33]wFMCommunicate OK [06:48:33]SAM_PROTO_ClearQueue done [06:48:33]KKMCreateOFDPacket [06:48:33]OFDProtocolAddRootSTLVToBuf [06:48:33]FM_MakeSignedData [06:48:33]FM_MakeSignedData [06:48:33]SAM_PROTO_SignData [06:48:33]wFMCommunicate request_size=4 [06:48:33]MH_SAM_APDU [06:48:33]CAPDU: 80 0D 01 02 [06:48:33]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [06:48:33]Write i2c OK [06:48:33]MH_I2C_Read... [06:48:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:33]Read from MH i2c: E2 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 03 00 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [06:48:33]RAPDU: 90 00 [06:48:33]wFMCommunicate OK [06:48:33]wFMCommunicate request_size=255 [06:48:33]MH_SAM_APDU [06:48:33]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 42 77 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA CF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC CF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 31 00 00 00 00 07 04 06 00 AC CF 01 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 C0 D6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1C 01 00 35 04 06 00 D8 B2 [06:48:33]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 42 77 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA CF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC CF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 31 00 00 00 00 07 04 06 00 AC CF 01 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 C0 D6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1C 01 00 35 04 06 00 D8 B2 00 00 DB [06:48:33]Write i2c OK [06:48:33]MH_I2C_Read... [06:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:33]Read from MH i2c: E2 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 03 00 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [06:48:33]RAPDU: 90 00 [06:48:33]wFMCommunicate OK [06:48:33]wFMCommunicate request_size=9 [06:48:33]MH_SAM_APDU [06:48:33]CAPDU: 80 0D 02 02 04 AD E9 82 DA [06:48:33]Write to MH i2c: E2 0C 00 0C 01 80 0D 02 02 04 00 AD E9 82 DA 00 00 81 [06:48:33]Write i2c OK [06:48:33]MH_I2C_Read... [06:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:33]Read from MH i2c: E2 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 03 00 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [06:48:33]RAPDU: 90 00 [06:48:33]wFMCommunicate OK [06:48:33]wFMCommunicate request_size=4 [06:48:33]MH_SAM_APDU [06:48:33]CAPDU: 80 0D 03 02 [06:48:33]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [06:48:33]Write i2c OK [06:48:33]MH_I2C_Read... [06:48:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:33]Read from MH i2c: E2 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 0B 00 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 0B 00 0D 01 00 05 62 C7 A0 15 90 FF 5F 90 00 5B [06:48:33]RAPDU: 05 62 C7 A0 15 90 FF 5F 90 00 [06:48:33]wFMCommunicate OK [06:48:33]SAM_PROTO_SignData done [06:48:33]FM_MakeSignedData done [06:48:33]CreateOFDProtocolMessage [06:48:33]wFMCommunicate request_size=4 [06:48:33]MH_SAM_APDU [06:48:33]CAPDU: 80 11 00 00 [06:48:33]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [06:48:33]Write i2c OK [06:48:33]MH_I2C_Read... [06:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:33]Read from MH i2c: E2 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 17 00 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DD [06:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:48:33]wFMCommunicate OK [06:48:33]CreateOFDProtocolMessage done [06:48:33]OFDSenderStorePacket 72792 [06:48:33]StoreOFDPacket docnum=72792 [06:48:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 4C 78 06 01 12 1B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 42 77 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA CF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC CF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 31 00 00 00 00 07 04 06 00 AC CF 01 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 C0 D6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1C 01 00 35 04 06 00 D8 B2 AD E9 82 DA 05 62 C7 A0 15 90 FF 5F [06:48:33]CheckFolder [06:48:33]dirname=/storage/ofd_packets [06:48:33]CheckFolder done [06:48:33]ProducePacketName [06:48:33]name=ofd_packets/00072792 [06:48:33]NVStorageSaveData ofd_packets/00072792 [06:48:33]File name is /storage/ofd_packets/00072792 [06:48:33]Write 300 bytes [06:48:33]NVStorageSaveData done [06:48:33]OFDSenderStorePacket done [06:48:33]KKMCreateOFDPacket done [06:48:33]NVStorageSaveData kkm_last_timestamp [06:48:33]File name is /storage/kkm_last_timestamp [06:48:33]Write 4 bytes [06:48:33]NVStorageSaveData done [06:48:33]ExternCall_PrintAddStr [06:48:33]wPrintStart [06:48:33]Write to MH i2c: 01 00 00 0F 01 10 [06:48:33]Write i2c OK [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: 01 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: 01 07 00 [06:48:33]MH_I2C_Read... [06:48:33]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [06:48:33]RasterBufferAndPrint [06:48:33]line Счет N : (1)952346 [06:48:33]line ИНН: 02508201610067 [06:48:33]line Контрольно-Кассовый Чек [06:48:33]line ПРОДАЖА [06:48:33]line ТРК (МРК, ГНК) : 71 [06:48:33]line Товар: 2711190000 [06:48:33]line ГАЗ-К-3 [06:48:33]line 30.530 * 38.90 [06:48:33]line = 1187.62 [06:48:33]line НДС 12% НСП 1% [06:48:33]line > о реализуемом товаре [06:48:33]line ОКРУГЛЕНИЕ: -0.62 [06:48:33]line ИТОГО: 1187.00 [06:48:33]line Внесено: 2000.00 [06:48:33]line СДАЧА: 813.00 [06:48:33]line НСП 1% : 10.51 [06:48:33]line НДС 12% : 126.12 [06:48:33]line Наличными: 1187.00 [06:48:33]line Безнал.: 0.00 [06:48:33]line Место: АЗС № 113 "Партнер Нефть" [06:48:33]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:48:33]line СНО: Общий режим [06:48:33]line Чек 29 30.10.2024 06:48 [06:48:33]line Смена: 556 ФФД: 1.0 [06:48:33]line ЗНМ: 0300000087 [06:48:33]line РНМ: 0000000000091644 [06:48:33]line Версия ККМ: 001 [06:48:33]line ФМ: 0000000000874662 [06:48:33]line ФД: 72792 [06:48:33]line ФПД: 238261933540058 [06:48:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T064832&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72792&fm=238261933540058&tin=02508201610067®Number=0000000000091644&sum=118700 [06:48:33]written 0, free lines is 4095 [06:48:33]OFD Sender: Processing packet 72792 [packets to send 278, broken 277] [06:48:33]ProducePacketName [06:48:33]name=ofd_packets/00072792 [06:48:33]OFD Sender: To server: pG, [06:48:33]CommunicateWithHost lk.salyk.kg:30040 [06:48:33]ConnectInit lk.salyk.kg [06:48:34]Write to MH i2c: 01 00 00 3A 01 3B [06:48:34]Write i2c OK [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: 01 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: 01 07 00 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 E2 0C 30 [06:48:34]RasterBufferAndPrint [06:48:34]line [06:48:34]line [06:48:34]line [06:48:34]line [06:48:34]line [06:48:34]written 0, free lines is 3304 [06:48:34]MH_Cut [06:48:34]Write to MH i2c: D1 01 00 41 01 01 14 [06:48:34]Write i2c OK [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: D1 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: D1 01 00 [06:48:34]MH_I2C_Read... [06:48:34]Read from MH i2c: D1 01 00 41 01 00 13 [06:48:34]Write to MH i2c: 01 00 00 42 01 43 [06:48:34]Write i2c OK [06:48:34]MH_I2C_Read... [06:48:34]Connected sock=9 [06:48:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 4C 78 06 01 12 1B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 42 77 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 EA CF 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC CF 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 31 00 00 00 00 07 04 06 00 AC CF 01 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 C0 D6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1C 01 00 35 04 06 00 D8 B2 AD E9 82 DA 05 62 C7 A0 15 90 FF 5F [06:48:35]*** Cut start [06:48:35]*** Partial cut [06:48:35]*** CUTSNS_PIN = 1 [06:48:35]*** CUTSNS_PIN = 0 [06:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 16 46 47 00 22 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1C 01 00 F4 03 04 00 7A 81 21 67 B6 04 01 00 00 01 3B D2 28 5A 01 3A 2C [06:48:35]CommunicateWithHost err = 0 [06:48:35]CheckOFDResponse [06:48:35]1017 (14) - 77093643461234 [06:48:35]1041 (16) - 0000000000874662 [06:48:35]1040 (4) - 72792 [06:48:35]1012 (4) - 30.10.2024 00:44 [06:48:35]1206 (1) - 0 [06:48:35]OFD Sender: Remove packet 72792 [06:48:35]ProducePacketName [06:48:35]name=ofd_packets/00072792 [06:48:35]NVStorageDeleteData [06:48:35]*** Brake cut motor [06:48:35]Read from MH i2c: 01 [06:48:35]MH_I2C_Read... [06:48:35]*** Stop cut motor [06:48:35]*** Cut end [06:48:35]Read from MH i2c: 01 07 00 [06:48:35]MH_I2C_Read... [06:48:35]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [06:48:35]process_action close_receipt done [06:48:35]requested_data is exist [06:48:35]produce_requested_data [06:48:35]requested_item fm.sn is exist - process it [06:48:35]wFMCommunicate request_size=4 [06:48:35]MH_SAM_APDU [06:48:35]CAPDU: 80 11 00 00 [06:48:35]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [06:48:35]Write i2c OK [06:48:35]MH_I2C_Read... [06:48:35]OFD Sender: No OFD packet to send [06:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:35]Read from MH i2c: E2 [06:48:35]MH_I2C_Read... [06:48:35]Read from MH i2c: E2 17 00 [06:48:35]MH_I2C_Read... [06:48:35]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [06:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:48:35]wFMCommunicate OK [06:48:35]requested_item fd.num is exist - process it [06:48:35]SAM_PROTO_GetFieldsCounters [06:48:35]wFMCommunicate request_size=4 [06:48:35]MH_SAM_APDU [06:48:35]CAPDU: 80 13 00 00 [06:48:35]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [06:48:35]Write i2c OK [06:48:35]MH_I2C_Read... [06:48:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:35]Read from MH i2c: E2 [06:48:35]MH_I2C_Read... [06:48:35]Read from MH i2c: E2 62 00 [06:48:35]MH_I2C_Read... [06:48:35]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 58 1C 01 00 0E 04 04 00 2C 02 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 DC [06:48:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 58 1C 01 00 0E 04 04 00 2C 02 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 [06:48:35]wFMCommunicate OK [06:48:35]SAM_PROTO_GetFieldsCounters done [06:48:35]requested_item shift.num is exist - process it [06:48:35]requested_item shift.opened is exist - process it [06:48:35]req_shift_opened [06:48:35]FM_GetShiftState [06:48:35]SAM_PROTO_GetShiftState [06:48:35]wFMCommunicate request_size=4 [06:48:35]MH_SAM_APDU [06:48:35]CAPDU: 80 13 01 00 [06:48:35]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [06:48:35]Write i2c OK [06:48:35]MH_I2C_Read... [06:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:36]Read from MH i2c: E2 [06:48:36]MH_I2C_Read... [06:48:36]Read from MH i2c: E2 0E 00 [06:48:36]MH_I2C_Read... [06:48:36]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 95 [06:48:36]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [06:48:36]wFMCommunicate OK [06:48:36]SAM_PROTO_GetShiftState done [06:48:36]FM_GetShiftState done [06:48:36]req_shift_opened done [06:48:36]requested_item shift.open_date is exist - process it [06:48:36]req_shift_open_date [06:48:36]req_shift_open_date done [06:48:36]produce_requested_data done [06:48:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72792,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [06:48:36]process_action_free close_receipt [06:48:36]json_value_free [06:48:36]json_value_free done [06:48:36]process_json_proto returns [06:48:36]Send response to host [06:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72792,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [06:48:36]free response buf [06:48:36]execute_script done [06:48:36]execute_script returns [06:48:36]free content buf [06:48:36]Sock 10.Close socket [06:48:36]Sock 10.Thread stoped [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:16]recv_with_timeout no data received [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:43]recv_with_timeout no data received [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:54]recv_with_timeout no data received [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:33]recv_with_timeout no data received [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:35]recv_with_timeout no data received [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:13]recv_with_timeout no data received [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:46]recv_with_timeout no data received [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:13]recv_with_timeout no data received [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:21]recv_with_timeout no data received [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:02:57]recv_with_timeout no data received [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:35]recv_with_timeout no data received [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:26]recv_with_timeout no data received [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:34]recv_with_timeout no data received [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:55]recv_with_timeout no data received [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:13]recv_with_timeout no data received [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:50]recv_with_timeout no data received [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:00]recv_with_timeout no data received [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:15]recv_with_timeout no data received [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:26]recv_with_timeout no data received [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:41]recv_with_timeout no data received [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:01]recv_with_timeout no data received [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:13]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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:07]recv_with_timeout no data received [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:50]recv_with_timeout no data received [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:20]recv_with_timeout no data received [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:30]accept exits with 7 [07:14:30]New connection [07:14:30]New thread 3066658148 created [07:14:30]Thread 3066514788 joined [07:14:30]Waiting for new connection... [07:14:30] Sock 7.Parse request [07:14:30]Sock 7.Check first char [07:14:30]Sock 7.First char is OK [07:14:30]request: POST /json_proto HTTP/1.0 [07:14:30]Method: POST [07:14:30]URL: /json_proto [07:14:30]Method is POST - this is cgi request [07:14:30]url: /json_proto [07:14:30]query_string will be loaded in cgi processing [07:14:30]execute_cgi json_proto POST (null) [07:14:30]execute_cgi path=json_proto method=POST [07:14:30]POST find Content-Length [07:14:30]Host: 172.17.43.195:8080 [07:14:30]Content-Length: 792 [07:14:30]Content-Type: application/json [07:14:30] [07:14:30]POST finish read [07:14:30]Found Content-Length = 792 [07:14:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:30]execute_script... [07:14: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)952348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:30]POST & json_proto [07:14:30]process_json_proto [07:14:30]json parsed OK: [07:14:30]protocol is kg_v1.0 [07:14:30]action value=close_receipt [07:14:30]process_action close_receipt [07:14:30]cmd_close_receipt [07:14:30]MH_GetDate [07:14:30]Write to MH i2c: F0 00 00 46 01 36 [07:14:30]Write i2c OK [07:14:30]MH_I2C_Read... [07:14:30]Read from MH i2c: F0 [07:14:30]MH_I2C_Read... [07:14:30]Read from MH i2c: F0 09 00 [07:14:30]MH_I2C_Read... [07:14:30]Read from MH i2c: F0 09 00 46 01 00 D7 DC 21 67 74 2C AD 66 2D [07:14:30]GetLastDocTimeStamp 1730270912 [07:14:30]current date 1730272471 [07:14:30]FM_GetShiftState [07:14:30]SAM_PROTO_GetShiftState [07:14:30]wFMCommunicate request_size=4 [07:14:30]MH_SAM_APDU [07:14:30]CAPDU: 80 13 01 00 [07:14:30]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [07:14:30]Write i2c OK [07:14:30]MH_I2C_Read... [07:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:30]Read from MH i2c: E2 [07:14:30]MH_I2C_Read... [07:14:30]Read from MH i2c: E2 0E 00 [07:14:30]MH_I2C_Read... [07:14:30]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 97 [07:14:30]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:14:30]wFMCommunicate OK [07:14:30]SAM_PROTO_GetShiftState done [07:14:30]FM_GetShiftState done [07:14:30]opened in 1730247109 [07:14:30]opened+sec_in_day 1730333509 [07:14:30]quantity*price = 0 [07:14:30]sum+1 = 1 [07:14:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 30 30.10.2024 07:14 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72793 ФПД: 104161236352950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T071431&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72793&fm=104161236352950&tin=02508201610067®Number=0000000000091644&sum=0 [07:14:31]StoreToDocumentArchive [07:14:31]shift 556 fd 72793 [07:14:31]save to /storage/0556/doc_00072793 [07:14:31]save last doc name /storage/0556/doc_00072793 to /storage/kkm_last_doc_name [07:14:31]save OK [07:14:31]Clear old archive folders... [07:14:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:31]tlvbuf is 01AE0A40 [07:14:31]SAM_PROTO_ClearQueue [07:14:31]wFMCommunicate request_size=4 [07:14:31]MH_SAM_APDU [07:14:31]CAPDU: 80 09 00 00 [07:14:31]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [07:14:31]Write i2c OK [07:14:31]MH_I2C_Read... [07:14:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:31]Read from MH i2c: E2 [07:14:31]MH_I2C_Read... [07:14:31]Read from MH i2c: E2 03 00 [07:14:31]MH_I2C_Read... [07:14:31]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [07:14:31]RAPDU: 90 00 [07:14:31]wFMCommunicate OK [07:14:31]SAM_PROTO_ClearQueue done [07:14:31]KKMCreateOFDPacket [07:14:31]OFDProtocolAddRootSTLVToBuf [07:14:31]FM_MakeSignedData [07:14:31]FM_MakeSignedData [07:14:31]SAM_PROTO_SignData [07:14:31]wFMCommunicate request_size=4 [07:14:31]MH_SAM_APDU [07:14:31]CAPDU: 80 0D 01 02 [07:14:31]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [07:14:31]Write i2c OK [07:14:31]MH_I2C_Read... [07:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:31]Read from MH i2c: E2 [07:14:31]MH_I2C_Read... [07:14:31]Read from MH i2c: E2 03 00 [07:14:31]MH_I2C_Read... [07:14:31]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [07:14:31]RAPDU: 90 00 [07:14:31]wFMCommunicate OK [07:14:31]wFMCommunicate request_size=255 [07:14:31]MH_SAM_APDU [07:14:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 D7 DC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1C 01 00 35 04 06 00 5E [07:14:31]Write to MH i2c: E2 02 01 56 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 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 1E 00 00 00 F4 03 04 00 D7 DC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1C 01 00 35 04 06 00 5E 00 00 6B [07:14:31]Write i2c OK [07:14:31]MH_I2C_Read... [07:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:32]Read from MH i2c: E2 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 03 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [07:14:32]RAPDU: 90 00 [07:14:32]wFMCommunicate OK [07:14:32]wFMCommunicate request_size=10 [07:14:32]MH_SAM_APDU [07:14:32]CAPDU: 80 0D 02 02 05 BB ED 7D FF B6 [07:14:32]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 BB ED 7D FF B6 00 00 B6 [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:32]Read from MH i2c: E2 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 03 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [07:14:32]RAPDU: 90 00 [07:14:32]wFMCommunicate OK [07:14:32]wFMCommunicate request_size=4 [07:14:32]MH_SAM_APDU [07:14:32]CAPDU: 80 0D 03 02 [07:14:32]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:32]Read from MH i2c: E2 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 0B 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 0B 00 58 01 00 1D D5 49 50 AB A1 07 B3 90 00 66 [07:14:32]RAPDU: 1D D5 49 50 AB A1 07 B3 90 00 [07:14:32]wFMCommunicate OK [07:14:32]SAM_PROTO_SignData done [07:14:32]FM_MakeSignedData done [07:14:32]CreateOFDProtocolMessage [07:14:32]wFMCommunicate request_size=4 [07:14:32]MH_SAM_APDU [07:14:32]CAPDU: 80 11 00 00 [07:14:32]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:32]Read from MH i2c: E2 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 17 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [07:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:14:32]wFMCommunicate OK [07:14:32]CreateOFDProtocolMessage done [07:14:32]OFDSenderStorePacket 72793 [07:14:32]StoreOFDPacket docnum=72793 [07:14:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 68 43 07 01 AD DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 F4 03 04 00 D7 DC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1C 01 00 35 04 06 00 5E BB ED 7D FF B6 1D D5 49 50 AB A1 07 B3 [07:14:32]CheckFolder [07:14:32]dirname=/storage/ofd_packets [07:14:32]CheckFolder done [07:14:32]ProducePacketName [07:14:32]name=ofd_packets/00072793 [07:14:32]NVStorageSaveData ofd_packets/00072793 [07:14:32]File name is /storage/ofd_packets/00072793 [07:14:32]Write 301 bytes [07:14:32]NVStorageSaveData done [07:14:32]OFDSenderStorePacket done [07:14:32]KKMCreateOFDPacket done [07:14:32]NVStorageSaveData kkm_last_timestamp [07:14:32]File name is /storage/kkm_last_timestamp [07:14:32]Write 4 bytes [07:14:32]NVStorageSaveData done [07:14:32]ExternCall_PrintAddStr [07:14:32]wPrintStart [07:14:32]Write to MH i2c: 01 00 00 5A 01 5B [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: 01 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: 01 07 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [07:14:32]RasterBufferAndPrint [07:14:32]line Счет N : (1)952348 [07:14:32]line ИНН: 02508201610067 [07:14:32]line Контрольно-Кассовый Чек [07:14:32]line ПРОДАЖА [07:14:32]line ТРК (МРК, ГНК) : 63 [07:14:32]line Товар: 2710124130 [07:14:32]line Аи-92-К-5 [07:14:32]line 10.000 * 0.00 [07:14:32]line = 0.00 [07:14:32]line НДС 12% НСП 1% [07:14:32]line > о реализуемом товаре [07:14:32]line ИТОГО: 0.00 [07:14:32]line НСП 1% : 0.00 [07:14:32]line НДС 12% : 0.00 [07:14:32]line Наличными: 0.00 [07:14:32]line Безнал.: 0.00 [07:14:32]line Место: АЗС № 113 "Партнер Нефть" [07:14:32]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:14:32]line СНО: Общий режим [07:14:32]line Чек 30 30.10.2024 07:14 [07:14:32]line Смена: 556 ФФД: 1.0 [07:14:32]line ЗНМ: 0300000087 [07:14:32]line РНМ: 0000000000091644 [07:14:32]line Версия ККМ: 001 [07:14:32]line Талоны: Топливная Карта [07:14:32]line 03047 [07:14:32]line ФМ: 0000000000874662 [07:14:32]line ФД: 72793 [07:14:32]line ФПД: 104161236352950 [07:14:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T071431&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72793&fm=104161236352950&tin=02508201610067®Number=0000000000091644&sum=0 [07:14:32]written 0, free lines is 4095 [07:14:32]OFD Sender: Processing packet 72793 [packets to send 278, broken 277] [07:14:32]ProducePacketName [07:14:32]name=ofd_packets/00072793 [07:14:32]OFD Sender: To server: pG, [07:14:32]CommunicateWithHost lk.salyk.kg:30040 [07:14:32]ConnectInit lk.salyk.kg [07:14:32]Write to MH i2c: 01 00 00 84 01 85 [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: 01 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: 01 07 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 ED 0C 85 [07:14:32]RasterBufferAndPrint [07:14:32]line [07:14:32]line [07:14:32]line [07:14:32]line [07:14:32]line [07:14:32]written 0, free lines is 3316 [07:14:32]MH_Cut [07:14:32]Write to MH i2c: D1 01 00 8B 01 01 5E [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: D1 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: D1 01 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: D1 01 00 8B 01 00 5D [07:14:32]Write to MH i2c: 01 00 00 8C 01 8D [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]Connected sock=9 [07:14:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 68 43 07 01 AD DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 00 00 00 F4 03 04 00 D7 DC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1C 01 00 35 04 06 00 5E BB ED 7D FF B6 1D D5 49 50 AB A1 07 B3 [07:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C9 87 47 00 1D 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 38 37 34 36 36 32 10 04 04 00 59 1C 01 00 F4 03 04 00 90 87 21 67 B6 04 01 00 00 E7 6F 5B 50 3A A3 92 DA [07:14:33]CommunicateWithHost err = 0 [07:14:33]CheckOFDResponse [07:14:33]1017 (14) - 77093643461234 [07:14:33]1041 (16) - 0000000000874662 [07:14:33]1040 (4) - 72793 [07:14:33]1012 (4) - 30.10.2024 01:10 [07:14:33]1206 (1) - 0 [07:14:33]OFD Sender: Remove packet 72793 [07:14:33]ProducePacketName [07:14:33]name=ofd_packets/00072793 [07:14:33]NVStorageDeleteData [07:14:33]*** Cut start [07:14:33]*** Partial cut [07:14:33]*** CUTSNS_PIN = 1 [07:14:33]*** CUTSNS_PIN = 0 [07:14:33]*** Brake cut motor [07:14:33]OFD Sender: No OFD packet to send [07:14:33]Read from MH i2c: 01 [07:14:33]MH_I2C_Read... [07:14:33]*** Stop cut motor [07:14:33]*** Cut end [07:14:33]Read from MH i2c: 01 07 00 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [07:14:33]process_action close_receipt done [07:14:33]requested_data is exist [07:14:33]produce_requested_data [07:14:33]requested_item fm.sn is exist - process it [07:14:33]wFMCommunicate request_size=4 [07:14:33]MH_SAM_APDU [07:14:33]CAPDU: 80 11 00 00 [07:14:33]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [07:14:33]Write i2c OK [07:14:33]MH_I2C_Read... [07:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:34]Read from MH i2c: E2 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 17 00 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [07:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:14:34]wFMCommunicate OK [07:14:34]requested_item fd.num is exist - process it [07:14:34]SAM_PROTO_GetFieldsCounters [07:14:34]wFMCommunicate request_size=4 [07:14:34]MH_SAM_APDU [07:14:34]CAPDU: 80 13 00 00 [07:14:34]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [07:14:34]Write i2c OK [07:14:34]MH_I2C_Read... [07:14:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:34]Read from MH i2c: E2 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 62 00 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 59 1C 01 00 0E 04 04 00 2C 02 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 2A [07:14:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 59 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:14:34]wFMCommunicate OK [07:14:34]SAM_PROTO_GetFieldsCounters done [07:14:34]requested_item shift.num is exist - process it [07:14:34]requested_item shift.opened is exist - process it [07:14:34]req_shift_opened [07:14:34]FM_GetShiftState [07:14:34]SAM_PROTO_GetShiftState [07:14:34]wFMCommunicate request_size=4 [07:14:34]MH_SAM_APDU [07:14:34]CAPDU: 80 13 01 00 [07:14:34]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [07:14:34]Write i2c OK [07:14:34]MH_I2C_Read... [07:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:34]Read from MH i2c: E2 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 0E 00 [07:14:34]MH_I2C_Read... [07:14:34]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 DF [07:14:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:14:34]wFMCommunicate OK [07:14:34]SAM_PROTO_GetShiftState done [07:14:34]FM_GetShiftState done [07:14:34]req_shift_opened done [07:14:34]requested_item shift.open_date is exist - process it [07:14:34]req_shift_open_date [07:14:34]req_shift_open_date done [07:14:34]produce_requested_data done [07:14:34]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72793,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [07:14:34]process_action_free close_receipt [07:14:34]json_value_free [07:14:34]json_value_free done [07:14:34]process_json_proto returns [07:14:34]Send response to host [07:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72793,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [07:14:34]free response buf [07:14:34]execute_script done [07:14:34]execute_script returns [07:14:34]free content buf [07:14:34]Sock 7.Close socket [07:14:34]Sock 7.Thread stoped [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:20]recv_with_timeout no data received [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:45]recv_with_timeout no data received [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]recv_with_timeout no data received [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:43]recv_with_timeout no data received [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:09]recv_with_timeout no data received [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:00]recv_with_timeout no data received [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:37]recv_with_timeout no data received [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:25:57]recv_with_timeout no data received [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:08]recv_with_timeout no data received [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:00]recv_with_timeout no data received [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:37]recv_with_timeout no data received [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:34]recv_with_timeout no data received [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:23]recv_with_timeout no data received [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:01]recv_with_timeout no data received [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:29]recv_with_timeout no data received [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:27]recv_with_timeout no data received [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:18]recv_with_timeout no data received [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:31]recv_with_timeout no data received [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:48]recv_with_timeout no data received [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:17]recv_with_timeout no data received [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]recv_with_timeout no data received [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:02]recv_with_timeout no data received [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:19]recv_with_timeout no data received [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:38]recv_with_timeout no data received [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:14]recv_with_timeout no data received [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:11]OFD Sender: No OFD packet to send [07:37:16]OFD Sender: No OFD packet to send [07:37:21]OFD Sender: No OFD packet to send [07:37:26]OFD Sender: No OFD packet to send [07:37:31]OFD Sender: No OFD packet to send [07:37:36]OFD Sender: No OFD packet to send [07:37:41]OFD Sender: No OFD packet to send [07:37:46]OFD Sender: No OFD packet to send [07:37:51]OFD Sender: No OFD packet to send [07:37:56]OFD Sender: No OFD packet to send [07:38:01]OFD Sender: No OFD packet to send [07:38:06]OFD Sender: No OFD packet to send [07:38:11]OFD Sender: No OFD packet to send [07:38:16]OFD Sender: No OFD packet to send [07:38:18]recv_with_timeout no data received [07:38:21]OFD Sender: No OFD packet to send [07:38:26]OFD Sender: No OFD packet to send [07:38:31]OFD Sender: No OFD packet to send [07:38:35]recv_with_timeout no data received [07:38:36]OFD Sender: No OFD packet to send [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]recv_with_timeout no data received [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]recv_with_timeout no data received [07:39:56]OFD Sender: No OFD packet to send [07:39:58]accept exits with 10 [07:39:58]New connection [07:39:58]New thread 3066514788 created [07:39:58]Thread 3066658148 joined [07:39:58]Waiting for new connection... [07:39:58] Sock 10.Parse request [07:39:58]Sock 10.Check first char [07:39:58]Sock 10.First char is OK [07:39:58]request: POST /json_proto HTTP/1.0 [07:39:58]Method: POST [07:39:58]URL: /json_proto [07:39:58]Method is POST - this is cgi request [07:39:58]url: /json_proto [07:39:58]query_string will be loaded in cgi processing [07:39:58]execute_cgi json_proto POST (null) [07:39:58]execute_cgi path=json_proto method=POST [07:39:58]POST find Content-Length [07:39:58]Host: 172.17.43.195:8080 [07:39:58]Content-Length: 792 [07:39:58]Content-Type: application/json [07:39:58] [07:39:58]POST finish read [07:39:58]Found Content-Length = 792 [07:39:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952349", "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" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:58]execute_script... [07:39: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)952349", "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" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:58]POST & json_proto [07:39:58]process_json_proto [07:39:58]json parsed OK: [07:39:58]protocol is kg_v1.0 [07:39:58]action value=close_receipt [07:39:58]process_action close_receipt [07:39:58]cmd_close_receipt [07:39:58]MH_GetDate [07:39:58]Write to MH i2c: F0 00 00 90 01 80 [07:39:58]Write i2c OK [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: F0 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: F0 09 00 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: F0 09 00 90 01 00 CF E2 21 67 74 2C AD 66 75 [07:39:58]GetLastDocTimeStamp 1730272471 [07:39:58]current date 1730273999 [07:39:58]FM_GetShiftState [07:39:58]SAM_PROTO_GetShiftState [07:39:58]wFMCommunicate request_size=4 [07:39:58]MH_SAM_APDU [07:39:58]CAPDU: 80 13 01 00 [07:39:58]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [07:39:58]Write i2c OK [07:39:58]MH_I2C_Read... [07:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:58]Read from MH i2c: E2 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: E2 0E 00 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E1 [07:39:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:39:58]wFMCommunicate OK [07:39:58]SAM_PROTO_GetShiftState done [07:39:58]FM_GetShiftState done [07:39:58]opened in 1730247109 [07:39:58]opened+sec_in_day 1730333509 [07:39:58]quantity*price = 0 [07:39:58]sum+1 = 1 [07:39:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 32 30.10.2024 07:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72795 ФПД: 95593006634252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T074122&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72795&fm=95593006634252&tin=02508201610067®Number=0000000000091644&sum=0 [07:41:23]StoreToDocumentArchive [07:41:23]shift 556 fd 72795 [07:41:23]save to /storage/0556/doc_00072795 [07:41:23]save last doc name /storage/0556/doc_00072795 to /storage/kkm_last_doc_name [07:41:23]save OK [07:41:23]Clear old archive folders... [07:41:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:41:23]tlvbuf is 01B49CA0 [07:41:23]SAM_PROTO_ClearQueue [07:41:23]wFMCommunicate request_size=4 [07:41:23]MH_SAM_APDU [07:41:23]CAPDU: 80 09 00 00 [07:41:23]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [07:41:23]Write i2c OK [07:41:23]MH_I2C_Read... [07:41:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:23]Read from MH i2c: E2 [07:41:23]MH_I2C_Read... [07:41:23]Read from MH i2c: E2 03 00 [07:41:23]MH_I2C_Read... [07:41:23]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [07:41:23]RAPDU: 90 00 [07:41:23]wFMCommunicate OK [07:41:23]SAM_PROTO_ClearQueue done [07:41:23]KKMCreateOFDPacket [07:41:23]OFDProtocolAddRootSTLVToBuf [07:41:23]FM_MakeSignedData [07:41:23]FM_MakeSignedData [07:41:23]SAM_PROTO_SignData [07:41:23]wFMCommunicate request_size=4 [07:41:23]MH_SAM_APDU [07:41:23]CAPDU: 80 0D 01 02 [07:41:23]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [07:41:23]Write i2c OK [07:41:23]MH_I2C_Read... [07:41:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:23]Read from MH i2c: E2 [07:41:23]MH_I2C_Read... [07:41:23]Read from MH i2c: E2 03 00 [07:41:23]MH_I2C_Read... [07:41:23]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [07:41:23]RAPDU: 90 00 [07:41:23]wFMCommunicate OK [07:41:23]wFMCommunicate request_size=255 [07:41:23]MH_SAM_APDU [07:41: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 22 E3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1C 01 00 35 04 06 00 56 [07:41:23]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 20 00 00 00 F4 03 04 00 22 E3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1C 01 00 35 04 06 00 56 00 00 C6 [07:41:23]Write i2c OK [07:41:23]MH_I2C_Read... [07:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:24]Read from MH i2c: E2 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 03 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [07:41:24]RAPDU: 90 00 [07:41:24]wFMCommunicate OK [07:41:24]wFMCommunicate request_size=10 [07:41:24]MH_SAM_APDU [07:41:24]CAPDU: 80 0D 02 02 05 F0 FB 34 15 0C [07:41:24]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 F0 FB 34 15 0C 00 00 F2 [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:24]Read from MH i2c: E2 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 03 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [07:41:24]RAPDU: 90 00 [07:41:24]wFMCommunicate OK [07:41:24]wFMCommunicate request_size=4 [07:41:24]MH_SAM_APDU [07:41:24]CAPDU: 80 0D 03 02 [07:41:24]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:24]Read from MH i2c: E2 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 0B 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 0B 00 2F 00 00 40 B3 AF C7 DB 9A 63 42 90 00 2E [07:41:24]RAPDU: 40 B3 AF C7 DB 9A 63 42 90 00 [07:41:24]wFMCommunicate OK [07:41:24]SAM_PROTO_SignData done [07:41:24]FM_MakeSignedData done [07:41:24]CreateOFDProtocolMessage [07:41:24]wFMCommunicate request_size=4 [07:41:24]MH_SAM_APDU [07:41:24]CAPDU: 80 11 00 00 [07:41:24]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:24]Read from MH i2c: E2 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 17 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [07:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:41:24]wFMCommunicate OK [07:41:24]CreateOFDProtocolMessage done [07:41:24]OFDSenderStorePacket 72795 [07:41:24]StoreOFDPacket docnum=72795 [07:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 75 B9 07 01 73 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 22 E3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1C 01 00 35 04 06 00 56 F0 FB 34 15 0C 40 B3 AF C7 DB 9A 63 42 [07:41:24]CheckFolder [07:41:24]dirname=/storage/ofd_packets [07:41:24]CheckFolder done [07:41:24]ProducePacketName [07:41:24]name=ofd_packets/00072795 [07:41:24]NVStorageSaveData ofd_packets/00072795 [07:41:24]File name is /storage/ofd_packets/00072795 [07:41:24]Write 301 bytes [07:41:24]NVStorageSaveData done [07:41:24]OFDSenderStorePacket done [07:41:24]KKMCreateOFDPacket done [07:41:24]NVStorageSaveData kkm_last_timestamp [07:41:24]File name is /storage/kkm_last_timestamp [07:41:24]Write 4 bytes [07:41:24]NVStorageSaveData done [07:41:24]ExternCall_PrintAddStr [07:41:24]wPrintStart [07:41:24]Write to MH i2c: 01 00 00 31 00 31 [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: 01 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: 01 07 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [07:41:24]RasterBufferAndPrint [07:41:24]line Счет N : (1)952349 [07:41:24]OFD Sender: Processing packet 72795 [packets to send 278, broken 277] [07:41:24]ProducePacketName [07:41:24]name=ofd_packets/00072795 [07:41:24]OFD Sender: To server: pG, [07:41:24]CommunicateWithHost lk.salyk.kg:30040 [07:41:24]ConnectInit lk.salyk.kg [07:41:24]line ИНН: 02508201610067 [07:41:24]line Контрольно-Кассовый Чек [07:41:24]line ПРОДАЖА [07:41:24]line ТРК (МРК, ГНК) : 42 [07:41:24]line Товар: 2710124130 [07:41:24]line Аи-92-К-5 [07:41:24]line 20.000 * 0.00 [07:41:24]line = 0.00 [07:41:24]line НДС 12% НСП 1% [07:41:24]line > о реализуемом товаре [07:41:24]line ИТОГО: 0.00 [07:41:24]line НСП 1% : 0.00 [07:41:24]line НДС 12% : 0.00 [07:41:24]line Наличными: 0.00 [07:41:24]line Безнал.: 0.00 [07:41:24]line Место: АЗС № 113 "Партнер Нефть" [07:41:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:41:24]line СНО: Общий режим [07:41:24]line Чек 32 30.10.2024 07:41 [07:41:24]line Смена: 556 ФФД: 1.0 [07:41:24]line ЗНМ: 0300000087 [07:41:24]line РНМ: 0000000000091644 [07:41:24]line Версия ККМ: 001 [07:41:24]line Талоны: Топливная Карта [07:41:24]line 53623 [07:41:24]line ФМ: 0000000000874662 [07:41:24]line ФД: 72795 [07:41:24]line ФПД: 95593006634252 [07:41:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T074122&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72795&fm=95593006634252&tin=02508201610067®Number=0000000000091644&sum=0 [07:41:24]written 0, free lines is 4095 [07:41:24]Write to MH i2c: 01 00 00 5B 00 5B [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: 01 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: 01 07 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E7 0C 55 [07:41:24]RasterBufferAndPrint [07:41:24]line [07:41:24]line [07:41:24]line [07:41:24]line [07:41:24]line [07:41:24]written 0, free lines is 3327 [07:41:24]MH_Cut [07:41:24]Write to MH i2c: D1 01 00 62 00 01 34 [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: D1 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: D1 01 00 [07:41:24]MH_I2C_Read... [07:41:24]Read from MH i2c: D1 01 00 62 00 00 33 [07:41:24]Write to MH i2c: 01 00 00 63 00 63 [07:41:24]Write i2c OK [07:41:24]MH_I2C_Read... [07:41:25]*** Cut start [07:41:25]*** Partial cut [07:41:25]*** CUTSNS_PIN = 1 [07:41:25]*** CUTSNS_PIN = 0 [07:41:25]*** Brake cut motor [07:41:26]Read from MH i2c: 01 [07:41:26]MH_I2C_Read... [07:41:26]*** Stop cut motor [07:41:26]*** Cut end [07:41:26]Read from MH i2c: 01 07 00 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [07:41:26]process_action close_receipt done [07:41:26]requested_data is exist [07:41:26]produce_requested_data [07:41:26]requested_item fm.sn is exist - process it [07:41:26]wFMCommunicate request_size=4 [07:41:26]MH_SAM_APDU [07:41:26]CAPDU: 80 11 00 00 [07:41:26]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [07:41:26]Write i2c OK [07:41:26]MH_I2C_Read... [07:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:26]Read from MH i2c: E2 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: E2 17 00 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [07:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:41:26]wFMCommunicate OK [07:41:26]requested_item fd.num is exist - process it [07:41:26]SAM_PROTO_GetFieldsCounters [07:41:26]wFMCommunicate request_size=4 [07:41:26]MH_SAM_APDU [07:41:26]CAPDU: 80 13 00 00 [07:41:26]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [07:41:26]Write i2c OK [07:41:26]MH_I2C_Read... [07:41:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:26]Read from MH i2c: E2 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: E2 62 00 [07:41:26]MH_I2C_Read... [07:41:26]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5B 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [07:41:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5B 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:26]wFMCommunicate OK [07:41:26]SAM_PROTO_GetFieldsCounters done [07:41:26]requested_item shift.num is exist - process it [07:41:26]requested_item shift.opened is exist - process it [07:41:26]req_shift_opened [07:41:26]FM_GetShiftState [07:41:26]SAM_PROTO_GetShiftState [07:41:26]wFMCommunicate request_size=4 [07:41:26]MH_SAM_APDU [07:41:26]CAPDU: 80 13 01 00 [07:41:26]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [07:41:26]Write i2c OK [07:41:26]MH_I2C_Read... [07:41:26]Connected sock=8 [07:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 75 B9 07 01 73 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 Read from MH i2c: 00 E2 00 [07:41:26]00 MH_I2C_Read... [07:41:26]00 Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:26]0E 00 [07:41:26]MH_I2C_Read... [07:41:26]00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 Read from MH i2c: E2 0E 00 66 00 00 09 00 01 C5 79 03 21 06 67 00 00 00 00 00 00 00 00 00 90 00 00 00 B5 EE [07:41:26]03 RAPDU: 0F 09 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 00 04 01 06 C5 00 79 00 21 00 67 00 00 00 00 00 00 00 90 00 [07:41:26]wFMCommunicate OK [07:41:26]SAM_PROTO_GetShiftState done [07:41:26]FM_GetShiftState done [07:41:26]req_shift_opened done [07:41:26]00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 22 E3 21 67 0E 04 04 00 2C requested_item shift.open_date is exist - process it [07:41:26]02 req_shift_open_date [07:41:26]00 req_shift_open_date done [07:41:26]00 produce_requested_data done [07:41:26]B9 produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72795,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [07:41:26]04 process_action_free close_receipt [07:41:26]01 json_value_free [07:41:26]00 json_value_free done [07:41:26]01 process_json_proto returns [07:41:26]0D Send response to host [07:41:26]04 {"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72795,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [07:41:26]free response buf [07:41:26]10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 execute_script done [07:41:26]30 execute_script returns [07:41:26]30 free content buf [07:41:26]30 Sock 6.Close socket [07:41:26]30 Sock 6.Thread stoped [07:41:26]30 30 38 37 34 36 36 32 10 04 04 00 5B 1C 01 00 35 04 06 00 56 F0 FB 34 15 0C 40 B3 AF C7 DB 9A 63 42 [07:41:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 33 D2 47 00 2C B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1C 01 00 F4 03 04 00 DE 8D 21 67 B6 04 01 00 00 8A B0 F9 DD F5 02 96 45 [07:41:27]CommunicateWithHost err = 0 [07:41:27]CheckOFDResponse [07:41:27]1017 (14) - 77093643461234 [07:41:27]1041 (16) - 0000000000874662 [07:41:27]1040 (4) - 72795 [07:41:27]1012 (4) - 30.10.2024 01:37 [07:41:27]1206 (1) - 0 [07:41:27]OFD Sender: Remove packet 72795 [07:41:27]ProducePacketName [07:41:27]name=ofd_packets/00072795 [07:41:27]NVStorageDeleteData [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:18]recv_with_timeout no data received [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:42:58]accept exits with 10 [07:42:58]New connection [07:42:58]New thread 3066682724 created [07:42:58]Thread 3066826084 joined [07:42:58]Waiting for new connection... [07:42:58] Sock 10.Parse request [07:42:58]Sock 10.Check first char [07:42:58]Sock 10.First char is OK [07:42:58]request: POST /json_proto HTTP/1.0 [07:42:58]Method: POST [07:42:58]URL: /json_proto [07:42:58]Method is POST - this is cgi request [07:42:58]url: /json_proto [07:42:58]query_string will be loaded in cgi processing [07:42:58]execute_cgi json_proto POST (null) [07:42:58]execute_cgi path=json_proto method=POST [07:42:58]POST find Content-Length [07:42:58]Host: 172.17.43.195:8080 [07:42:58]Content-Length: 797 [07:42:58]Content-Type: application/json [07:42:58] [07:42:58]POST finish read [07:42:58]Found Content-Length = 797 [07:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952350", "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" : 0.00, "quantity" : 19.760, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:58]execute_script... [07:42: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)952350", "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" : 0.00, "quantity" : 19.760, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:58]POST & json_proto [07:42:58]process_json_proto [07:42:58]json parsed OK: [07:42:58]protocol is kg_v1.0 [07:42:58]action value=close_receipt [07:42:58]process_action close_receipt [07:42:58]cmd_close_receipt [07:42:58]MH_GetDate [07:42:58]Write to MH i2c: F0 00 00 67 00 56 [07:42:58]Write i2c OK [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: F0 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: F0 09 00 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: F0 09 00 67 00 00 83 E3 21 67 74 2C AD 66 00 [07:42:58]GetLastDocTimeStamp 1730274082 [07:42:58]current date 1730274179 [07:42:58]FM_GetShiftState [07:42:58]SAM_PROTO_GetShiftState [07:42:58]wFMCommunicate request_size=4 [07:42:58]MH_SAM_APDU [07:42:58]CAPDU: 80 13 01 00 [07:42:58]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [07:42:58]Write i2c OK [07:42:58]MH_I2C_Read... [07:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:58]Read from MH i2c: E2 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: E2 0E 00 [07:42:58]MH_I2C_Read... [07:42:58]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B7 [07:42:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:42:58]wFMCommunicate OK [07:42:58]SAM_PROTO_GetShiftState done [07:42:58]FM_GetShiftState done [07:42:58]opened in 1730247109 [07:42:58]opened+sec_in_day 1730333509 [07:42:58]quantity*price = 0 [07:42:58]sum+1 = 1 [07:42:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 33 30.10.2024 07:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72796 ФПД: 213480063677135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T074259&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72796&fm=213480063677135&tin=02508201610067®Number=0000000000091644&sum=0 [07:42:59]StoreToDocumentArchive [07:42:59]shift 556 fd 72796 [07:42:59]save to /storage/0556/doc_00072796 [07:42:59]save last doc name /storage/0556/doc_00072796 to /storage/kkm_last_doc_name [07:42:59]save OK [07:42:59]Clear old archive folders... [07:42:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:42:59]tlvbuf is 01ADF820 [07:42:59]SAM_PROTO_ClearQueue [07:42:59]wFMCommunicate request_size=4 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 09 00 00 [07:42:59]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [07:42:59]RAPDU: 90 00 [07:42:59]wFMCommunicate OK [07:42:59]SAM_PROTO_ClearQueue done [07:42:59]KKMCreateOFDPacket [07:42:59]OFDProtocolAddRootSTLVToBuf [07:42:59]FM_MakeSignedData [07:42:59]FM_MakeSignedData [07:42:59]SAM_PROTO_SignData [07:42:59]wFMCommunicate request_size=4 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 0D 01 02 [07:42:59]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:42:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:59]Read from MH i2c: E2 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 [07:42:59]MH_I2C_Read... [07:42:59]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [07:42:59]RAPDU: 90 00 [07:42:59]wFMCommunicate OK [07:42:59]wFMCommunicate request_size=255 [07:42:59]MH_SAM_APDU [07:42:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 30 4D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 83 E3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1C 01 00 35 04 06 00 [07:42:59]Write to MH i2c: E2 02 01 77 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 30 4D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 83 E3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1C 01 00 35 04 06 00 00 00 67 [07:42:59]Write i2c OK [07:42:59]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [07:43:00]RAPDU: 90 00 [07:43:00]wFMCommunicate OK [07:43:00]wFMCommunicate request_size=11 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 0D 02 02 06 C2 28 B3 5C B2 CF [07:43:00]Write to MH i2c: E2 0E 00 78 00 80 0D 02 02 06 00 C2 28 B3 5C B2 CF 00 00 78 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [07:43:00]RAPDU: 90 00 [07:43:00]wFMCommunicate OK [07:43:00]wFMCommunicate request_size=4 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 0D 03 02 [07:43:00]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 0B 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 0B 00 79 00 00 AE C3 F6 94 14 80 9A D7 90 00 F5 [07:43:00]RAPDU: AE C3 F6 94 14 80 9A D7 90 00 [07:43:00]wFMCommunicate OK [07:43:00]SAM_PROTO_SignData done [07:43:00]FM_MakeSignedData done [07:43:00]CreateOFDProtocolMessage [07:43:00]wFMCommunicate request_size=4 [07:43:00]MH_SAM_APDU [07:43:00]CAPDU: 80 11 00 00 [07:43:00]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:00]Read from MH i2c: E2 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 17 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [07:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:43:00]wFMCommunicate OK [07:43:00]CreateOFDProtocolMessage done [07:43:00]OFDSenderStorePacket 72796 [07:43:00]StoreOFDPacket docnum=72796 [07:43:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E8 CD 08 01 C5 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 30 4D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 83 E3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1C 01 00 35 04 06 00 C2 28 B3 5C B2 CF AE C3 F6 94 14 80 9A D7 [07:43:00]CheckFolder [07:43:00]dirname=/storage/ofd_packets [07:43:00]CheckFolder done [07:43:00]ProducePacketName [07:43:00]name=ofd_packets/00072796 [07:43:00]NVStorageSaveData ofd_packets/00072796 [07:43:00]File name is /storage/ofd_packets/00072796 [07:43:00]Write 302 bytes [07:43:00]NVStorageSaveData done [07:43:00]OFDSenderStorePacket done [07:43:00]KKMCreateOFDPacket done [07:43:00]NVStorageSaveData kkm_last_timestamp [07:43:00]File name is /storage/kkm_last_timestamp [07:43:00]Write 4 bytes [07:43:00]NVStorageSaveData done [07:43:00]ExternCall_PrintAddStr [07:43:00]wPrintStart [07:43:00]Write to MH i2c: 01 00 00 7B 00 7B [07:43:00]Write i2c OK [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 [07:43:00]MH_I2C_Read... [07:43:00]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [07:43:00]RasterBufferAndPrint [07:43:00]line Счет N : (1)952350 [07:43:00]line ИНН: 02508201610067 [07:43:00]line Контрольно-Кассовый Чек [07:43:00]line ПРОДАЖА [07:43:00]line ТРК (МРК, ГНК) : 43 [07:43:00]line Товар: 2710194210 [07:43:00]line ДТ(л)-К-5 [07:43:00]line 19.760 * 0.00 [07:43:00]line = 0.00 [07:43:00]line НДС 12% НСП 1% [07:43:00]line > о реализуемом товаре [07:43:00]line ИТОГО: 0.00 [07:43:00]line НСП 1% : 0.00 [07:43:00]line НДС 12% : 0.00 [07:43:00]line Наличными: 0.00 [07:43:00]line Безнал.: 0.00 [07:43:00]line Место: АЗС № 113 "Партнер Нефть" [07:43:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:43:00]line СНО: Общий режим [07:43:00]line Чек 33 30.10.2024 07:42 [07:43:00]line Смена: 556 ФФД: 1.0 [07:43:00]line ЗНМ: 0300000087 [07:43:00]line РНМ: 0000000000091644 [07:43:00]line Версия ККМ: 001 [07:43:00]line Талоны: Топливная Карта [07:43:00]line 53623 [07:43:00]line ФМ: 0000000000874662 [07:43:00]line ФД: 72796 [07:43:00]line ФПД: 213480063677135 [07:43:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T074259&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72796&fm=213480063677135&tin=02508201610067®Number=0000000000091644&sum=0 [07:43:00]OFD Sender: Processing packet 72796 [packets to send 278, broken 277] [07:43:00]ProducePacketName [07:43:00]name=ofd_packets/00072796 [07:43:00]OFD Sender: To server: pG, [07:43:00]CommunicateWithHost lk.salyk.kg:30040 [07:43:00]ConnectInit lk.salyk.kg [07:43:00]written 0, free lines is 4095 [07:43:01]Write to MH i2c: 01 00 00 A5 00 A5 [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 EC 0C A4 [07:43:01]RasterBufferAndPrint [07:43:01]line [07:43:01]line [07:43:01]line [07:43:01]line [07:43:01]line [07:43:01]written 0, free lines is 3311 [07:43:01]MH_Cut [07:43:01]Write to MH i2c: D1 01 00 AC 00 01 7E [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: D1 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: D1 01 00 [07:43:01]MH_I2C_Read... [07:43:01]Read from MH i2c: D1 01 00 AC 00 00 7D [07:43:01]Write to MH i2c: 01 00 00 AD 00 AD [07:43:01]Write i2c OK [07:43:01]MH_I2C_Read... [07:43:01]*** Cut start [07:43:01]*** Partial cut [07:43:01]*** CUTSNS_PIN = 1 [07:43:01]*** CUTSNS_PIN = 0 [07:43:02]*** Brake cut motor [07:43:02]Read from MH i2c: 01 [07:43:02]MH_I2C_Read... [07:43:02]*** Stop cut motor [07:43:02]*** Cut end [07:43:02]Read from MH i2c: 01 07 00 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [07:43:02]process_action close_receipt done [07:43:02]requested_data is exist [07:43:02]produce_requested_data [07:43:02]requested_item fm.sn is exist - process it [07:43:02]wFMCommunicate request_size=4 [07:43:02]MH_SAM_APDU [07:43:02]CAPDU: 80 11 00 00 [07:43:02]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [07:43:02]Write i2c OK [07:43:02]MH_I2C_Read... [07:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:02]Read from MH i2c: E2 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 17 00 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [07:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:43:02]wFMCommunicate OK [07:43:02]requested_item fd.num is exist - process it [07:43:02]SAM_PROTO_GetFieldsCounters [07:43:02]wFMCommunicate request_size=4 [07:43:02]MH_SAM_APDU [07:43:02]CAPDU: 80 13 00 00 [07:43:02]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [07:43:02]Write i2c OK [07:43:02]MH_I2C_Read... [07:43:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:02]Read from MH i2c: E2 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 62 00 [07:43:02]MH_I2C_Read... [07:43:02]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5C 1C 01 00 0E 04 04 00 2C 02 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 56 [07:43:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5C 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:43:02]wFMCommunicate OK [07:43:02]SAM_PROTO_GetFieldsCounters done [07:43:02]requested_item shift.num is exist - process it [07:43:02]requested_item shift.opened is exist - process it [07:43:02]req_shift_opened [07:43:02]FM_GetShiftState [07:43:02]SAM_PROTO_GetShiftState [07:43:02]wFMCommunicate request_size=4 [07:43:02]MH_SAM_APDU [07:43:02]CAPDU: 80 13 01 00 [07:43:02]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [07:43:02]Write i2c OK [07:43:02]MH_I2C_Read... [07:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:02]Read from MH i2c: E2 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 0E 00 [07:43:02]MH_I2C_Read... [07:43:02]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 FF [07:43:02]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:43:02]wFMCommunicate OK [07:43:02]SAM_PROTO_GetShiftState done [07:43:02]FM_GetShiftState done [07:43:02]req_shift_opened done [07:43:02]requested_item shift.open_date is exist - process it [07:43:02]req_shift_open_date [07:43:02]req_shift_open_date done [07:43:02]produce_requested_data done [07:43:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72796,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [07:43:02]process_action_free close_receipt [07:43:02]json_value_free [07:43:02]json_value_free done [07:43:02]process_json_proto returns [07:43:02]Send response to host [07:43:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72796,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [07:43:02]free response buf [07:43:02]execute_script done [07:43:02]execute_script returns [07:43:02]free content buf [07:43:02]Sock 10.Close socket [07:43:02]Sock 10.Thread stoped [07:43:03]Connected sock=11 [07:43:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E8 CD 08 01 C5 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 30 4D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 83 E3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1C 01 00 35 04 06 00 C2 28 B3 5C B2 CF AE C3 F6 94 14 80 9A D7 [07:43:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 3D F2 47 00 57 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1C 01 00 F4 03 04 00 3F 8E 21 67 B6 04 01 00 00 32 53 3F C7 7F 94 02 77 [07:43:03]CommunicateWithHost err = 0 [07:43:03]CheckOFDResponse [07:43:03]1017 (14) - 77093643461234 [07:43:03]1041 (16) - 0000000000874662 [07:43:03]1040 (4) - 72796 [07:43:03]1012 (4) - 30.10.2024 01:39 [07:43:03]1206 (1) - 0 [07:43:03]OFD Sender: Remove packet 72796 [07:43:03]ProducePacketName [07:43:03]name=ofd_packets/00072796 [07:43:03]NVStorageDeleteData [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:13]recv_with_timeout no data received [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:27]recv_with_timeout no data received [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:38]recv_with_timeout no data received [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:55]recv_with_timeout no data received [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:13]recv_with_timeout no data received [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:37]recv_with_timeout no data received [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]recv_with_timeout no data received [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:37]recv_with_timeout no data received [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:10]recv_with_timeout no data received [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:25]accept exits with 8 [07:46:25]New connection [07:46:25]New thread 3066826084 created [07:46:25]Thread 3066682724 joined [07:46:25]Waiting for new connection... [07:46:25] Sock 8.Parse request [07:46:25]Sock 8.Check first char [07:46:25]Sock 8.First char is OK [07:46:25]request: POST /json_proto HTTP/1.0 [07:46:25]Method: POST [07:46:25]URL: /json_proto [07:46:25]Method is POST - this is cgi request [07:46:25]url: /json_proto [07:46:25]query_string will be loaded in cgi processing [07:46:25]execute_cgi json_proto POST (null) [07:46:25]execute_cgi path=json_proto method=POST [07:46:25]POST find Content-Length [07:46:25]Host: 172.17.43.195:8080 [07:46:25]Content-Length: 791 [07:46:25]Content-Type: application/json [07:46:25] [07:46:25]POST finish read [07:46:25]Found Content-Length = 791 [07:46:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 6.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:25]execute_script... [07:46:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 6.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:25]POST & json_proto [07:46:25]process_json_proto [07:46:25]json parsed OK: [07:46:25]protocol is kg_v1.0 [07:46:25]action value=close_receipt [07:46:25]process_action close_receipt [07:46:25]cmd_close_receipt [07:46:25]MH_GetDate [07:46:25]Write to MH i2c: F0 00 00 B1 00 A0 [07:46:25]Write i2c OK [07:46:25]MH_I2C_Read... [07:46:25]Read from MH i2c: F0 [07:46:25]MH_I2C_Read... [07:46:25]Read from MH i2c: F0 09 00 [07:46:25]MH_I2C_Read... [07:46:25]Read from MH i2c: F0 09 00 B1 00 00 51 E4 21 67 74 2C AD 66 19 [07:46:25]GetLastDocTimeStamp 1730274179 [07:46:25]current date 1730274385 [07:46:25]FM_GetShiftState [07:46:25]SAM_PROTO_GetShiftState [07:46:25]wFMCommunicate request_size=4 [07:46:25]MH_SAM_APDU [07:46:25]CAPDU: 80 13 01 00 [07:46:25]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [07:46:25]Write i2c OK [07:46:25]MH_I2C_Read... [07:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:25]Read from MH i2c: E2 [07:46:25]MH_I2C_Read... [07:46:25]Read from MH i2c: E2 0E 00 [07:46:25]MH_I2C_Read... [07:46:25]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 01 [07:46:25]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:46:25]wFMCommunicate OK [07:46:25]SAM_PROTO_GetShiftState done [07:46:25]FM_GetShiftState done [07:46:25]opened in 1730247109 [07:46:25]opened+sec_in_day 1730333509 [07:46:25]quantity*price = 0 [07:46:25]sum+1 = 1 [07:46:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 34 30.10.2024 07:46 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72797 ФПД: 10933138708953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T074625&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72797&fm=10933138708953&tin=02508201610067®Number=0000000000091644&sum=0 [07:46:26]StoreToDocumentArchive [07:46:26]shift 556 fd 72797 [07:46:26]save to /storage/0556/doc_00072797 [07:46:26]save last doc name /storage/0556/doc_00072797 to /storage/kkm_last_doc_name [07:46:26]save OK [07:46:26]Clear old archive folders... [07:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:26]tlvbuf is 01B59F10 [07:46:26]SAM_PROTO_ClearQueue [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 09 00 00 [07:46:26]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [07:46:26]RAPDU: 90 00 [07:46:26]wFMCommunicate OK [07:46:26]SAM_PROTO_ClearQueue done [07:46:26]KKMCreateOFDPacket [07:46:26]OFDProtocolAddRootSTLVToBuf [07:46:26]FM_MakeSignedData [07:46:26]FM_MakeSignedData [07:46:26]SAM_PROTO_SignData [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 0D 01 02 [07:46:26]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [07:46:26]RAPDU: 90 00 [07:46:26]wFMCommunicate OK [07:46:26]wFMCommunicate request_size=255 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 17 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 22 00 00 00 F4 03 04 00 51 E4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1C 01 00 35 04 06 00 09 [07:46:26]Write to MH i2c: E2 02 01 C1 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 70 17 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 22 00 00 00 F4 03 04 00 51 E4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1C 01 00 35 04 06 00 09 00 00 5A [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [07:46:26]RAPDU: 90 00 [07:46:26]wFMCommunicate OK [07:46:26]wFMCommunicate request_size=10 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 0D 02 02 05 F1 91 D9 59 D9 [07:46:26]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 F1 91 D9 59 D9 00 00 D3 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [07:46:26]RAPDU: 90 00 [07:46:26]wFMCommunicate OK [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 0D 03 02 [07:46:26]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 0B 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 0B 00 C3 00 00 74 37 3A 4B E9 51 B0 04 90 00 5D [07:46:26]RAPDU: 74 37 3A 4B E9 51 B0 04 90 00 [07:46:26]wFMCommunicate OK [07:46:26]SAM_PROTO_SignData done [07:46:26]FM_MakeSignedData done [07:46:26]CreateOFDProtocolMessage [07:46:26]wFMCommunicate request_size=4 [07:46:26]MH_SAM_APDU [07:46:26]CAPDU: 80 11 00 00 [07:46:26]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:26]Read from MH i2c: E2 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 17 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [07:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:46:26]wFMCommunicate OK [07:46:26]CreateOFDProtocolMessage done [07:46:26]OFDSenderStorePacket 72797 [07:46:26]StoreOFDPacket docnum=72797 [07:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 96 41 07 01 9F 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 17 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 22 00 00 00 F4 03 04 00 51 E4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1C 01 00 35 04 06 00 09 F1 91 D9 59 D9 74 37 3A 4B E9 51 B0 04 [07:46:26]CheckFolder [07:46:26]dirname=/storage/ofd_packets [07:46:26]CheckFolder done [07:46:26]ProducePacketName [07:46:26]name=ofd_packets/00072797 [07:46:26]NVStorageSaveData ofd_packets/00072797 [07:46:26]File name is /storage/ofd_packets/00072797 [07:46:26]Write 301 bytes [07:46:26]NVStorageSaveData done [07:46:26]OFDSenderStorePacket done [07:46:26]KKMCreateOFDPacket done [07:46:26]NVStorageSaveData kkm_last_timestamp [07:46:26]File name is /storage/kkm_last_timestamp [07:46:26]Write 4 bytes [07:46:26]NVStorageSaveData done [07:46:26]ExternCall_PrintAddStr [07:46:26]wPrintStart [07:46:26]Write to MH i2c: 01 00 00 C5 00 C5 [07:46:26]Write i2c OK [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: 01 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: 01 07 00 [07:46:26]MH_I2C_Read... [07:46:26]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [07:46:26]RasterBufferAndPrint [07:46:26]line Счет N : (1)952351 [07:46:26]line ИНН: 02508201610067 [07:46:26]line Контрольно-Кассовый Чек [07:46:26]line ПРОДАЖА [07:46:26]line ТРК (МРК, ГНК) : 63 [07:46:26]line Товар: 2710124130 [07:46:26]line Аи-92-К-5 [07:46:26]line 6.000 * 0.00 [07:46:26]line = 0.00 [07:46:26]line НДС 12% НСП 1% [07:46:26]line > о реализуемом товаре [07:46:26]line ИТОГО: 0.00 [07:46:26]line НСП 1% : 0.00 [07:46:26]line НДС 12% : 0.00 [07:46:26]line Наличными: 0.00 [07:46:26]line Безнал.: 0.00 [07:46:26]line Место: АЗС № 113 "Партнер Нефть" [07:46:26]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:46:26]line СНО: Общий режим [07:46:26]line Чек 34 30.10.2024 07:46 [07:46:26]line Смена: 556 ФФД: 1.0 [07:46:26]line ЗНМ: 0300000087 [07:46:26]line РНМ: 0000000000091644 [07:46:26]line Версия ККМ: 001 [07:46:26]line Талоны: Топливная Карта [07:46:26]line 03047 [07:46:26]line ФМ: 0000000000874662 [07:46:26]line ФД: 72797 [07:46:26]line ФПД: 10933138708953 [07:46:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T074625&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72797&fm=10933138708953&tin=02508201610067®Number=0000000000091644&sum=0 [07:46:26]written 0, free lines is 4095 [07:46:26]OFD Sender: Processing packet 72797 [packets to send 278, broken 277] [07:46:26]ProducePacketName [07:46:26]name=ofd_packets/00072797 [07:46:26]OFD Sender: To server: pG, [07:46:26]CommunicateWithHost lk.salyk.kg:30040 [07:46:26]ConnectInit lk.salyk.kg [07:46:27]Write to MH i2c: 01 00 00 EF 00 EF [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 07 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 E4 0C E6 [07:46:27]RasterBufferAndPrint [07:46:27]line [07:46:27]line [07:46:27]line [07:46:27]line [07:46:27]line [07:46:27]written 0, free lines is 3306 [07:46:27]MH_Cut [07:46:27]Write to MH i2c: D1 01 00 F6 00 01 C8 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: D1 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: D1 01 00 [07:46:27]MH_I2C_Read... [07:46:27]Read from MH i2c: D1 01 00 F6 00 00 C7 [07:46:27]Write to MH i2c: 01 00 00 F7 00 F7 [07:46:27]Write i2c OK [07:46:27]MH_I2C_Read... [07:46:27]Connected sock=9 [07:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 96 41 07 01 9F 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 17 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 22 00 00 00 F4 03 04 00 51 E4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1C 01 00 35 04 06 00 09 F1 91 D9 59 D9 74 37 3A 4B E9 51 B0 04 [07:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D1 9F 47 00 84 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1C 01 00 F4 03 04 00 0B 8F 21 67 B6 04 01 00 00 08 ED 2A 7F 6B 5E 9F 05 [07:46:27]CommunicateWithHost err = 0 [07:46:27]CheckOFDResponse [07:46:27]1017 (14) - 77093643461234 [07:46:27]1041 (16) - 0000000000874662 [07:46:27]1040 (4) - 72797 [07:46:27]1012 (4) - 30.10.2024 01:42 [07:46:27]1206 (1) - 0 [07:46:27]OFD Sender: Remove packet 72797 [07:46:27]ProducePacketName [07:46:27]name=ofd_packets/00072797 [07:46:27]NVStorageDeleteData [07:46:27]*** Cut start [07:46:27]*** Partial cut [07:46:27]*** CUTSNS_PIN = 1 [07:46:28]*** CUTSNS_PIN = 0 [07:46:28]*** Brake cut motor [07:46:28]OFD Sender: No OFD packet to send [07:46:28]Read from MH i2c: 01 [07:46:28]MH_I2C_Read... [07:46:28]*** Stop cut motor [07:46:28]*** Cut end [07:46:28]Read from MH i2c: 01 07 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [07:46:28]process_action close_receipt done [07:46:28]requested_data is exist [07:46:28]produce_requested_data [07:46:28]requested_item fm.sn is exist - process it [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 11 00 00 [07:46:28]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 17 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C6 [07:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:46:28]wFMCommunicate OK [07:46:28]requested_item fd.num is exist - process it [07:46:28]SAM_PROTO_GetFieldsCounters [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 13 00 00 [07:46:28]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 62 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5D 1C 01 00 0E 04 04 00 2C 02 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 A4 [07:46:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5D 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:28]wFMCommunicate OK [07:46:28]SAM_PROTO_GetFieldsCounters done [07:46:28]requested_item shift.num is exist - process it [07:46:28]requested_item shift.opened is exist - process it [07:46:28]req_shift_opened [07:46:28]FM_GetShiftState [07:46:28]SAM_PROTO_GetShiftState [07:46:28]wFMCommunicate request_size=4 [07:46:28]MH_SAM_APDU [07:46:28]CAPDU: 80 13 01 00 [07:46:28]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [07:46:28]Write i2c OK [07:46:28]MH_I2C_Read... [07:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:28]Read from MH i2c: E2 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 0E 00 [07:46:28]MH_I2C_Read... [07:46:28]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 49 [07:46:28]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:46:28]wFMCommunicate OK [07:46:28]SAM_PROTO_GetShiftState done [07:46:28]FM_GetShiftState done [07:46:28]req_shift_opened done [07:46:28]requested_item shift.open_date is exist - process it [07:46:28]req_shift_open_date [07:46:28]req_shift_open_date done [07:46:28]produce_requested_data done [07:46:28]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72797,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [07:46:28]process_action_free close_receipt [07:46:28]json_value_free [07:46:28]json_value_free done [07:46:28]process_json_proto returns [07:46:28]Send response to host [07:46:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72797,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [07:46:28]free response buf [07:46:28]execute_script done [07:46:28]execute_script returns [07:46:28]free content buf [07:46:28]Sock 8.Close socket [07:46:28]Sock 8.Thread stoped [07:46:33]OFD Sender: No OFD packet to send [07:46:36]recv_with_timeout no data received [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:51]recv_with_timeout no data received [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:25]recv_with_timeout no data received [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:37]recv_with_timeout no data received [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:42]recv_with_timeout no data received [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:14]recv_with_timeout no data received [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:51]recv_with_timeout no data received [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:22]accept exits with 10 [07:50:22]New connection [07:50:22]New thread 3066682724 created [07:50:22]Thread 3066826084 joined [07:50:22]Waiting for new connection... [07:50:22] Sock 10.Parse request [07:50:22]Sock 10.Check first char [07:50:22]Sock 10.First char is OK [07:50:22]request: POST /json_proto HTTP/1.0 [07:50:22]Method: POST [07:50:22]URL: /json_proto [07:50:22]Method is POST - this is cgi request [07:50:22]url: /json_proto [07:50:22]query_string will be loaded in cgi processing [07:50:22]execute_cgi json_proto POST (null) [07:50:22]execute_cgi path=json_proto method=POST [07:50:22]POST find Content-Length [07:50:22]Host: 172.17.43.195:8080 [07:50:22]Content-Length: 677 [07:50:22]Content-Type: application/json [07:50:22] [07:50:22]POST finish read [07:50:22]Found Content-Length = 677 [07:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:22]execute_script... [07:50: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)952352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:22]POST & json_proto [07:50:22]process_json_proto [07:50:22]json parsed OK: [07:50:22]protocol is kg_v1.0 [07:50:22]action value=close_receipt [07:50:22]process_action close_receipt [07:50:22]cmd_close_receipt [07:50:22]MH_GetDate [07:50:22]Write to MH i2c: F0 00 00 FB 00 EA [07:50:22]Write i2c OK [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: F0 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: F0 09 00 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: F0 09 00 FB 00 00 3F E5 21 67 74 2C AD 66 52 [07:50:22]GetLastDocTimeStamp 1730274385 [07:50:22]current date 1730274623 [07:50:22]FM_GetShiftState [07:50:22]SAM_PROTO_GetShiftState [07:50:22]wFMCommunicate request_size=4 [07:50:22]MH_SAM_APDU [07:50:22]CAPDU: 80 13 01 00 [07:50:22]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [07:50:22]Write i2c OK [07:50:22]MH_I2C_Read... [07:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:22]Read from MH i2c: E2 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 0E 00 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4B [07:50:22]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:50:22]wFMCommunicate OK [07:50:22]SAM_PROTO_GetShiftState done [07:50:22]FM_GetShiftState done [07:50:22]opened in 1730247109 [07:50:22]opened+sec_in_day 1730333509 [07:50:22]quantity*price = 20003 [07:50:22]sum+1 = 20004 [07:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 35 30.10.2024 07:50 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72798 ФПД: 228540660354539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T075023&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72798&fm=228540660354539&tin=02508201610067®Number=0000000000091644&sum=20000 [07:50:23]StoreToDocumentArchive [07:50:23]shift 556 fd 72798 [07:50:23]save to /storage/0556/doc_00072798 [07:50:23]save last doc name /storage/0556/doc_00072798 to /storage/kkm_last_doc_name [07:50:23]save OK [07:50:23]Clear old archive folders... [07:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:23]tlvbuf is 01B6D270 [07:50:23]SAM_PROTO_ClearQueue [07:50:23]wFMCommunicate request_size=4 [07:50:23]MH_SAM_APDU [07:50:23]CAPDU: 80 09 00 00 [07:50:23]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [07:50:23]Write i2c OK [07:50:23]MH_I2C_Read... [07:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:23]Read from MH i2c: E2 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 03 00 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [07:50:23]RAPDU: 90 00 [07:50:24]wFMCommunicate OK [07:50:24]SAM_PROTO_ClearQueue done [07:50:24]KKMCreateOFDPacket [07:50:24]OFDProtocolAddRootSTLVToBuf [07:50:24]FM_MakeSignedData [07:50:24]FM_MakeSignedData [07:50:24]SAM_PROTO_SignData [07:50:24]wFMCommunicate request_size=4 [07:50:24]MH_SAM_APDU [07:50:24]CAPDU: 80 0D 01 02 [07:50:24]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [07:50:24]Write i2c OK [07:50:24]MH_I2C_Read... [07:50:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:24]Read from MH i2c: E2 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: E2 03 00 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [07:50:24]RAPDU: 90 00 [07:50:24]wFMCommunicate OK [07:50:24]wFMCommunicate request_size=255 [07:50:24]MH_SAM_APDU [07:50:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3F E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1C 01 00 35 04 06 00 CF [07:50:24]Write to MH i2c: E2 02 01 0B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3F E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1C 01 00 35 04 06 00 CF 00 00 1C [07:50:24]Write i2c OK [07:50:24]MH_I2C_Read... [07:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:24]Read from MH i2c: E2 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: E2 03 00 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [07:50:24]RAPDU: 90 00 [07:50:24]wFMCommunicate OK [07:50:24]wFMCommunicate request_size=10 [07:50:24]MH_SAM_APDU [07:50:24]CAPDU: 80 0D 02 02 05 DB 44 E0 8D EB [07:50:24]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 DB 44 E0 8D EB 00 00 08 [07:50:24]Write i2c OK [07:50:24]MH_I2C_Read... [07:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:24]Read from MH i2c: E2 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: E2 03 00 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [07:50:24]RAPDU: 90 00 [07:50:24]wFMCommunicate OK [07:50:24]wFMCommunicate request_size=4 [07:50:24]MH_SAM_APDU [07:50:24]CAPDU: 80 0D 03 02 [07:50:24]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [07:50:24]Write i2c OK [07:50:24]MH_I2C_Read... [07:50:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:24]Read from MH i2c: E2 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: E2 0B 00 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: E2 0B 00 0D 01 00 8F 7A 52 F7 B5 72 BE 92 90 00 53 [07:50:24]RAPDU: 8F 7A 52 F7 B5 72 BE 92 90 00 [07:50:24]wFMCommunicate OK [07:50:24]SAM_PROTO_SignData done [07:50:24]FM_MakeSignedData done [07:50:24]CreateOFDProtocolMessage [07:50:24]wFMCommunicate request_size=4 [07:50:24]MH_SAM_APDU [07:50:24]CAPDU: 80 11 00 00 [07:50:24]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [07:50:24]Write i2c OK [07:50:24]MH_I2C_Read... [07:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:24]Read from MH i2c: E2 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: E2 17 00 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DD [07:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:50:24]wFMCommunicate OK [07:50:24]CreateOFDProtocolMessage done [07:50:24]OFDSenderStorePacket 72798 [07:50:24]StoreOFDPacket docnum=72798 [07:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B5 3B 07 01 E9 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3F E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1C 01 00 35 04 06 00 CF DB 44 E0 8D EB 8F 7A 52 F7 B5 72 BE 92 [07:50:24]CheckFolder [07:50:24]dirname=/storage/ofd_packets [07:50:24]CheckFolder done [07:50:24]ProducePacketName [07:50:24]name=ofd_packets/00072798 [07:50:24]NVStorageSaveData ofd_packets/00072798 [07:50:24]File name is /storage/ofd_packets/00072798 [07:50:24]Write 301 bytes [07:50:24]NVStorageSaveData done [07:50:24]OFDSenderStorePacket done [07:50:24]KKMCreateOFDPacket done [07:50:24]NVStorageSaveData kkm_last_timestamp [07:50:24]File name is /storage/kkm_last_timestamp [07:50:24]Write 4 bytes [07:50:24]NVStorageSaveData done [07:50:24]ExternCall_PrintAddStr [07:50:24]wPrintStart [07:50:24]Write to MH i2c: 01 00 00 0F 01 10 [07:50:24]Write i2c OK [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: 01 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: 01 07 00 [07:50:24]MH_I2C_Read... [07:50:24]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [07:50:24]RasterBufferAndPrint [07:50:24]line Счет N : (1)952352 [07:50:24]line ИНН: 02508201610067 [07:50:24]line Контрольно-Кассовый Чек [07:50:24]line ПРОДАЖА [07:50:24]line ТРК (МРК, ГНК) : 63 [07:50:24]line Товар: 2710124130 [07:50:24]line Аи-92-К-5 [07:50:24]line 2.990 * 66.90 [07:50:24]line = 200.03 [07:50:24]line НДС 12% НСП 1% [07:50:24]line > о реализуемом товаре [07:50:24]line ОКРУГЛЕНИЕ: -0.03 [07:50:24]line ИТОГО: 200.00 [07:50:24]line Внесено: 200.00 [07:50:24]line СДАЧА: 0.00 [07:50:24]line НСП 1% : 1.77 [07:50:24]line НДС 12% : 21.24 [07:50:24]line Наличными: 200.00 [07:50:24]line Безнал.: 0.00 [07:50:24]line Место: АЗС № 113 "Партнер Нефть" [07:50:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:50:24]line СНО: Общий режим [07:50:24]line Чек 35 30.10.2024 07:50 [07:50:24]line Смена: 556 ФФД: 1.0 [07:50:24]line ЗНМ: 0300000087 [07:50:24]line РНМ: 0000000000091644 [07:50:24]line Версия ККМ: 001 [07:50:24]line ФМ: 0000000000874662 [07:50:24]line ФД: 72798 [07:50:24]line ФПД: 228540660354539 [07:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T075023&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72798&fm=228540660354539&tin=02508201610067®Number=0000000000091644&sum=20000 [07:50:24]OFD Sender: Processing packet 72798 [packets to send 278, broken 277] [07:50:24]ProducePacketName [07:50:24]name=ofd_packets/00072798 [07:50:24]OFD Sender: To server: pG, [07:50:24]CommunicateWithHost lk.salyk.kg:30040 [07:50:24]ConnectInit lk.salyk.kg [07:50:24]written 0, free lines is 4095 [07:50:25]Write to MH i2c: 01 00 00 3A 01 3B [07:50:25]Write i2c OK [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: 01 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: 01 07 00 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 D4 0C 22 [07:50:25]RasterBufferAndPrint [07:50:25]line [07:50:25]line [07:50:25]line [07:50:25]line [07:50:25]line [07:50:25]written 0, free lines is 3288 [07:50:25]MH_Cut [07:50:25]Write to MH i2c: D1 01 00 41 01 01 14 [07:50:25]Write i2c OK [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: D1 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: D1 01 00 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: D1 01 00 41 01 00 13 [07:50:25]Write to MH i2c: 01 00 00 42 01 43 [07:50:25]Write i2c OK [07:50:25]MH_I2C_Read... [07:50:26]*** Cut start [07:50:26]*** Partial cut [07:50:26]*** CUTSNS_PIN = 1 [07:50:26]*** CUTSNS_PIN = 0 [07:50:26]*** Brake cut motor [07:50:26]Read from MH i2c: 01 [07:50:26]MH_I2C_Read... [07:50:26]*** Stop cut motor [07:50:26]*** Cut end [07:50:26]Read from MH i2c: 01 07 00 [07:50:26]MH_I2C_Read... [07:50:26]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [07:50:26]process_action close_receipt done [07:50:26]requested_data is exist [07:50:26]produce_requested_data [07:50:26]requested_item fm.sn is exist - process it [07:50:26]wFMCommunicate request_size=4 [07:50:26]MH_SAM_APDU [07:50:26]CAPDU: 80 11 00 00 [07:50:26]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [07:50:26]Write i2c OK [07:50:26]MH_I2C_Read... [07:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:26]Read from MH i2c: E2 [07:50:26]MH_I2C_Read... [07:50:26]Read from MH i2c: E2 17 00 [07:50:26]MH_I2C_Read... [07:50:26]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [07:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:50:26]wFMCommunicate OK [07:50:26]requested_item fd.num is exist - process it [07:50:26]SAM_PROTO_GetFieldsCounters [07:50:26]wFMCommunicate request_size=4 [07:50:26]MH_SAM_APDU [07:50:26]CAPDU: 80 13 00 00 [07:50:26]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [07:50:26]Write i2c OK [07:50:26]MH_I2C_Read... [07:50:26]Connected sock=11 [07:50:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B5 3B 07 01 E9 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 3F E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1C 01 00 35 04 06 00 CF DB 44 E0 8D EB 8F 7A 52 F7 B5 72 BE 92 [07:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:26]Read from MH i2c: E2 [07:50:26]MH_I2C_Read... [07:50:26]Read from MH i2c: E2 62 00 [07:50:26]MH_I2C_Read... [07:50:26]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5E 1C 01 00 0E 04 04 00 2C 02 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 F4 [07:50:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5E 1C 01 00 0E 04 04 00 2C 02 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 [07:50:26]wFMCommunicate OK [07:50:26]SAM_PROTO_GetFieldsCounters done [07:50:26]requested_item shift.num is exist - process it [07:50:26]requested_item shift.opened is exist - process it [07:50:26]req_shift_opened [07:50:26]FM_GetShiftState [07:50:26]SAM_PROTO_GetShiftState [07:50:26]wFMCommunicate request_size=4 [07:50:26]MH_SAM_APDU [07:50:26]CAPDU: 80 13 01 00 [07:50:26]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [07:50:26]Write i2c OK [07:50:26]MH_I2C_Read... [07:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:26]Read from MH i2c: E2 [07:50:26]MH_I2C_Read... [07:50:26]Read from MH i2c: E2 0E 00 [07:50:26]MH_I2C_Read... [07:50:26]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 95 [07:50:26]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:50:26]wFMCommunicate OK [07:50:26]SAM_PROTO_GetShiftState done [07:50:26]FM_GetShiftState done [07:50:26]req_shift_opened done [07:50:26]requested_item shift.open_date is exist - process it [07:50:26]req_shift_open_date [07:50:26]req_shift_open_date done [07:50:26]produce_requested_data done [07:50:26]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72798,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [07:50:26]process_action_free close_receipt [07:50:26]json_value_free [07:50:26]json_value_free done [07:50:26]process_json_proto returns [07:50:26]Send response to host [07:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72798,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [07:50:26]free response buf [07:50:26]execute_script done [07:50:26]execute_script returns [07:50:26]free content buf [07:50:26]Sock 10.Close socket [07:50:26]Sock 10.Thread stoped [07:50:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 41 FF 47 00 A1 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1C 01 00 F4 03 04 00 FA 8F 21 67 B6 04 01 00 00 5D C2 E1 7E EE 96 88 7F [07:50:27]CommunicateWithHost err = 0 [07:50:27]CheckOFDResponse [07:50:27]1017 (14) - 77093643461234 [07:50:27]1041 (16) - 0000000000874662 [07:50:27]1040 (4) - 72798 [07:50:27]1012 (4) - 30.10.2024 01:46 [07:50:27]1206 (1) - 0 [07:50:27]OFD Sender: Remove packet 72798 [07:50:27]ProducePacketName [07:50:27]name=ofd_packets/00072798 [07:50:27]NVStorageDeleteData [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]recv_with_timeout no data received [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:24]accept exits with 8 [07:52:24]New connection [07:52:24]New thread 3066826084 created [07:52:24]Thread 3066682724 joined [07:52:24]Waiting for new connection... [07:52:24] Sock 8.Parse request [07:52:24]Sock 8.Check first char [07:52:24]Sock 8.First char is OK [07:52:24]request: POST /json_proto HTTP/1.0 [07:52:24]Method: POST [07:52:24]URL: /json_proto [07:52:24]Method is POST - this is cgi request [07:52:24]url: /json_proto [07:52:24]query_string will be loaded in cgi processing [07:52:24]execute_cgi json_proto POST (null) [07:52:24]execute_cgi path=json_proto method=POST [07:52:24]POST find Content-Length [07:52:24]Host: 172.17.43.195:8080 [07:52:24]Content-Length: 792 [07:52:24]Content-Type: application/json [07:52:24] [07:52:24]POST finish read [07:52:24]Found Content-Length = 792 [07:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:24]execute_script... [07:52:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:24]POST & json_proto [07:52:24]process_json_proto [07:52:24]json parsed OK: [07:52:24]protocol is kg_v1.0 [07:52:24]action value=close_receipt [07:52:24]process_action close_receipt [07:52:24]cmd_close_receipt [07:52:24]MH_GetDate [07:52:24]Write to MH i2c: F0 00 00 46 01 36 [07:52:24]Write i2c OK [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: F0 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: F0 09 00 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: F0 09 00 46 01 00 B8 E5 21 67 74 2C AD 66 17 [07:52:24]GetLastDocTimeStamp 1730274623 [07:52:24]current date 1730274744 [07:52:24]FM_GetShiftState [07:52:24]SAM_PROTO_GetShiftState [07:52:24]wFMCommunicate request_size=4 [07:52:24]MH_SAM_APDU [07:52:24]CAPDU: 80 13 01 00 [07:52:24]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [07:52:24]Write i2c OK [07:52:24]MH_I2C_Read... [07:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:24]Read from MH i2c: E2 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: E2 0E 00 [07:52:24]MH_I2C_Read... [07:52:24]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 97 [07:52:24]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:52:24]wFMCommunicate OK [07:52:24]SAM_PROTO_GetShiftState done [07:52:24]FM_GetShiftState done [07:52:24]opened in 1730247109 [07:52:24]opened+sec_in_day 1730333509 [07:52:24]quantity*price = 0 [07:52:24]sum+1 = 1 [07:52:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 36 30.10.2024 07:52 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72799 ФПД: 14189659100661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T075224&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72799&fm=14189659100661&tin=02508201610067®Number=0000000000091644&sum=0 [07:52:25]StoreToDocumentArchive [07:52:25]shift 556 fd 72799 [07:52:25]save to /storage/0556/doc_00072799 [07:52:25]save last doc name /storage/0556/doc_00072799 to /storage/kkm_last_doc_name [07:52:25]save OK [07:52:25]Clear old archive folders... [07:52:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:25]tlvbuf is 01AD8A00 [07:52:25]SAM_PROTO_ClearQueue [07:52:25]wFMCommunicate request_size=4 [07:52:25]MH_SAM_APDU [07:52:25]CAPDU: 80 09 00 00 [07:52:25]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:25]Read from MH i2c: E2 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 03 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [07:52:25]RAPDU: 90 00 [07:52:25]wFMCommunicate OK [07:52:25]SAM_PROTO_ClearQueue done [07:52:25]KKMCreateOFDPacket [07:52:25]OFDProtocolAddRootSTLVToBuf [07:52:25]FM_MakeSignedData [07:52:25]FM_MakeSignedData [07:52:25]SAM_PROTO_SignData [07:52:25]wFMCommunicate request_size=4 [07:52:25]MH_SAM_APDU [07:52:25]CAPDU: 80 0D 01 02 [07:52:25]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:25]Read from MH i2c: E2 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 03 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [07:52:25]RAPDU: 90 00 [07:52:25]wFMCommunicate OK [07:52:25]wFMCommunicate request_size=255 [07:52:25]MH_SAM_APDU [07:52:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B8 E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1C 01 00 35 04 06 00 0C [07:52:25]Write to MH i2c: E2 02 01 56 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B8 E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1C 01 00 35 04 06 00 0C 00 00 AA [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:25]Read from MH i2c: E2 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 03 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [07:52:25]RAPDU: 90 00 [07:52:25]wFMCommunicate OK [07:52:25]wFMCommunicate request_size=10 [07:52:25]MH_SAM_APDU [07:52:25]CAPDU: 80 0D 02 02 05 E7 C9 97 15 F5 [07:52:25]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 E7 C9 97 15 F5 00 00 2D [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:25]Read from MH i2c: E2 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 03 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [07:52:25]RAPDU: 90 00 [07:52:25]wFMCommunicate OK [07:52:25]wFMCommunicate request_size=4 [07:52:25]MH_SAM_APDU [07:52:25]CAPDU: 80 0D 03 02 [07:52:25]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:25]Read from MH i2c: E2 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 0B 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 0B 00 58 01 00 AA 02 47 4F DE 71 88 9E 90 00 8C [07:52:25]RAPDU: AA 02 47 4F DE 71 88 9E 90 00 [07:52:25]wFMCommunicate OK [07:52:25]SAM_PROTO_SignData done [07:52:25]FM_MakeSignedData done [07:52:25]CreateOFDProtocolMessage [07:52:25]wFMCommunicate request_size=4 [07:52:25]MH_SAM_APDU [07:52:25]CAPDU: 80 11 00 00 [07:52:25]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:25]Read from MH i2c: E2 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 17 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [07:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:52:25]wFMCommunicate OK [07:52:25]CreateOFDProtocolMessage done [07:52:25]OFDSenderStorePacket 72799 [07:52:25]StoreOFDPacket docnum=72799 [07:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BA 83 07 01 B9 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B8 E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1C 01 00 35 04 06 00 0C E7 C9 97 15 F5 AA 02 47 4F DE 71 88 9E [07:52:25]CheckFolder [07:52:25]dirname=/storage/ofd_packets [07:52:25]CheckFolder done [07:52:25]ProducePacketName [07:52:25]name=ofd_packets/00072799 [07:52:25]NVStorageSaveData ofd_packets/00072799 [07:52:25]File name is /storage/ofd_packets/00072799 [07:52:25]Write 301 bytes [07:52:25]NVStorageSaveData done [07:52:25]OFDSenderStorePacket done [07:52:25]KKMCreateOFDPacket done [07:52:25]NVStorageSaveData kkm_last_timestamp [07:52:25]File name is /storage/kkm_last_timestamp [07:52:25]Write 4 bytes [07:52:25]NVStorageSaveData done [07:52:25]ExternCall_PrintAddStr [07:52:25]wPrintStart [07:52:25]Write to MH i2c: 01 00 00 5A 01 5B [07:52:25]Write i2c OK [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: 01 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: 01 07 00 [07:52:25]MH_I2C_Read... [07:52:25]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [07:52:25]RasterBufferAndPrint [07:52:25]line Счет N : (1)952353 [07:52:25]line ИНН: 02508201610067 [07:52:25]line Контрольно-Кассовый Чек [07:52:25]line ПРОДАЖА [07:52:25]line ТРК (МРК, ГНК) : 53 [07:52:25]line Товар: 2710124130 [07:52:25]line Аи-92-К-5 [07:52:25]line 15.000 * 0.00 [07:52:25]line = 0.00 [07:52:25]line НДС 12% НСП 1% [07:52:25]line > о реализуемом товаре [07:52:25]line ИТОГО: 0.00 [07:52:25]line НСП 1% : 0.00 [07:52:25]line НДС 12% : 0.00 [07:52:25]line Наличными: 0.00 [07:52:25]line Безнал.: 0.00 [07:52:25]line Место: АЗС № 113 "Партнер Нефть" [07:52:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:52:25]line СНО: Общий режим [07:52:25]line Чек 36 30.10.2024 07:52 [07:52:25]line Смена: 556 ФФД: 1.0 [07:52:25]line ЗНМ: 0300000087 [07:52:25]line РНМ: 0000000000091644 [07:52:25]line Версия ККМ: 001 [07:52:25]line Талоны: Топливная Карта [07:52:25]line 53623 [07:52:25]line ФМ: 0000000000874662 [07:52:25]line ФД: 72799 [07:52:25]line ФПД: 14189659100661 [07:52:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T075224&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72799&fm=14189659100661&tin=02508201610067®Number=0000000000091644&sum=0 [07:52:25]written 0, free lines is 4095 [07:52:25]OFD Sender: Processing packet 72799 [packets to send 278, broken 277] [07:52:25]ProducePacketName [07:52:25]name=ofd_packets/00072799 [07:52:25]OFD Sender: To server: pG, [07:52:25]CommunicateWithHost lk.salyk.kg:30040 [07:52:25]ConnectInit lk.salyk.kg [07:52:26]Write to MH i2c: 01 00 00 84 01 85 [07:52:26]Write i2c OK [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: 01 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: 01 07 00 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 E6 0C 7E [07:52:26]RasterBufferAndPrint [07:52:26]line [07:52:26]line [07:52:26]line [07:52:26]line [07:52:26]line [07:52:26]written 0, free lines is 3309 [07:52:26]MH_Cut [07:52:26]Write to MH i2c: D1 01 00 8B 01 01 5E [07:52:26]Write i2c OK [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: D1 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: D1 01 00 [07:52:26]MH_I2C_Read... [07:52:26]Read from MH i2c: D1 01 00 8B 01 00 5D [07:52:26]Write to MH i2c: 01 00 00 8C 01 8D [07:52:26]Write i2c OK [07:52:26]MH_I2C_Read... [07:52:26]Connected sock=11 [07:52:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BA 83 07 01 B9 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B8 E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1C 01 00 35 04 06 00 0C E7 C9 97 15 F5 AA 02 47 4F DE 71 88 9E [07:52:27]*** Cut start [07:52:27]*** Partial cut [07:52:27]*** CUTSNS_PIN = 1 [07:52:27]*** CUTSNS_PIN = 0 [07:52:27]*** Brake cut motor [07:52:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F1 0D 47 00 AD B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1C 01 00 F4 03 04 00 72 90 21 67 B6 04 01 00 00 09 65 4B 08 74 36 82 CC [07:52:27]CommunicateWithHost err = 0 [07:52:27]CheckOFDResponse [07:52:27]1017 (14) - 77093643461234 [07:52:27]1041 (16) - 0000000000874662 [07:52:27]1040 (4) - 72799 [07:52:27]1012 (4) - 30.10.2024 01:48 [07:52:27]1206 (1) - 0 [07:52:27]OFD Sender: Remove packet 72799 [07:52:27]ProducePacketName [07:52:27]name=ofd_packets/00072799 [07:52:27]NVStorageDeleteData [07:52:27]Read from MH i2c: 01 [07:52:27]MH_I2C_Read... [07:52:27]*** Stop cut motor [07:52:27]*** Cut end [07:52:27]Read from MH i2c: 01 07 00 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [07:52:27]process_action close_receipt done [07:52:27]requested_data is exist [07:52:27]produce_requested_data [07:52:27]requested_item fm.sn is exist - process it [07:52:27]wFMCommunicate request_size=4 [07:52:27]MH_SAM_APDU [07:52:27]CAPDU: 80 11 00 00 [07:52:27]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [07:52:27]Write i2c OK [07:52:27]MH_I2C_Read... [07:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:27]Read from MH i2c: E2 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 17 00 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [07:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:52:27]wFMCommunicate OK [07:52:27]requested_item fd.num is exist - process it [07:52:27]SAM_PROTO_GetFieldsCounters [07:52:27]wFMCommunicate request_size=4 [07:52:27]MH_SAM_APDU [07:52:27]CAPDU: 80 13 00 00 [07:52:27]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [07:52:27]Write i2c OK [07:52:27]MH_I2C_Read... [07:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:27]Read from MH i2c: E2 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 62 00 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5F 1C 01 00 0E 04 04 00 2C 02 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 42 [07:52:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5F 1C 01 00 0E 04 04 00 2C 02 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 [07:52:27]wFMCommunicate OK [07:52:27]SAM_PROTO_GetFieldsCounters done [07:52:27]requested_item shift.num is exist - process it [07:52:27]requested_item shift.opened is exist - process it [07:52:27]req_shift_opened [07:52:27]FM_GetShiftState [07:52:27]SAM_PROTO_GetShiftState [07:52:27]wFMCommunicate request_size=4 [07:52:27]MH_SAM_APDU [07:52:27]CAPDU: 80 13 01 00 [07:52:27]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [07:52:27]Write i2c OK [07:52:27]MH_I2C_Read... [07:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:27]Read from MH i2c: E2 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 0E 00 [07:52:27]MH_I2C_Read... [07:52:27]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 DF [07:52:27]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:52:27]wFMCommunicate OK [07:52:27]SAM_PROTO_GetShiftState done [07:52:27]FM_GetShiftState done [07:52:27]req_shift_opened done [07:52:27]requested_item shift.open_date is exist - process it [07:52:27]req_shift_open_date [07:52:27]req_shift_open_date done [07:52:27]produce_requested_data done [07:52:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72799,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [07:52:27]process_action_free close_receipt [07:52:27]json_value_free [07:52:27]json_value_free done [07:52:27]process_json_proto returns [07:52:27]Send response to host [07:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72799,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [07:52:27]free response buf [07:52:27]execute_script done [07:52:27]execute_script returns [07:52:27]free content buf [07:52:27]Sock 8.Close socket [07:52:27]Sock 8.Thread stoped [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:27]accept exits with 10 [07:53:27]New connection [07:53:27]New thread 3066682724 created [07:53:27]Thread 3066826084 joined [07:53:27]Waiting for new connection... [07:53:27] Sock 10.Parse request [07:53:27]Sock 10.Check first char [07:53:27]Sock 10.First char is OK [07:53:27]request: POST /json_proto HTTP/1.0 [07:53:27]Method: POST [07:53:27]URL: /json_proto [07:53:27]Method is POST - this is cgi request [07:53:27]url: /json_proto [07:53:27]query_string will be loaded in cgi processing [07:53:27]execute_cgi json_proto POST (null) [07:53:27]execute_cgi path=json_proto method=POST [07:53:27]POST find Content-Length [07:53:27]Host: 172.17.43.195:8080 [07:53:27]Content-Length: 682 [07:53:27]Content-Type: application/json [07:53:27] [07:53:27]POST finish read [07:53:27]Found Content-Length = 682 [07:53:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:27]execute_script... [07:53:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:27]POST & json_proto [07:53:27]process_json_proto [07:53:27]json parsed OK: [07:53:27]protocol is kg_v1.0 [07:53:27]action value=close_receipt [07:53:27]process_action close_receipt [07:53:27]cmd_close_receipt [07:53:27]MH_GetDate [07:53:27]Write to MH i2c: F0 00 00 90 01 80 [07:53:27]Write i2c OK [07:53:27]MH_I2C_Read... [07:53:27]Read from MH i2c: F0 [07:53:27]MH_I2C_Read... [07:53:27]Read from MH i2c: F0 09 00 [07:53:27]MH_I2C_Read... [07:53:27]Read from MH i2c: F0 09 00 90 01 00 F8 E5 21 67 74 2C AD 66 A1 [07:53:27]GetLastDocTimeStamp 1730274744 [07:53:27]current date 1730274808 [07:53:27]FM_GetShiftState [07:53:27]SAM_PROTO_GetShiftState [07:53:27]wFMCommunicate request_size=4 [07:53:27]MH_SAM_APDU [07:53:27]CAPDU: 80 13 01 00 [07:53:27]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [07:53:27]Write i2c OK [07:53:27]MH_I2C_Read... [07:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:28]Read from MH i2c: E2 [07:53:28]MH_I2C_Read... [07:53:28]Read from MH i2c: E2 0E 00 [07:53:28]MH_I2C_Read... [07:53:28]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E1 [07:53:28]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:53:28]wFMCommunicate OK [07:53:28]SAM_PROTO_GetShiftState done [07:53:28]FM_GetShiftState done [07:53:28]opened in 1730247109 [07:53:28]opened+sec_in_day 1730333509 [07:53:28]quantity*price = 150032 [07:53:28]sum+1 = 150033 [07:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 37 30.10.2024 07:53 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72800 ФПД: 174413541481049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T075328&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72800&fm=174413541481049&tin=02508201610067®Number=0000000000091644&sum=150000 [07:53:29]StoreToDocumentArchive [07:53:29]shift 556 fd 72800 [07:53:29]save to /storage/0556/doc_00072800 [07:53:29]save last doc name /storage/0556/doc_00072800 to /storage/kkm_last_doc_name [07:53:29]save OK [07:53:29]Clear old archive folders... [07:53:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:53:29]tlvbuf is 01B5BA30 [07:53:29]SAM_PROTO_ClearQueue [07:53:29]wFMCommunicate request_size=4 [07:53:29]MH_SAM_APDU [07:53:29]CAPDU: 80 09 00 00 [07:53:29]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [07:53:29]Write i2c OK [07:53:29]MH_I2C_Read... [07:53:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:29]Read from MH i2c: E2 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 03 00 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [07:53:29]RAPDU: 90 00 [07:53:29]wFMCommunicate OK [07:53:29]SAM_PROTO_ClearQueue done [07:53:29]KKMCreateOFDPacket [07:53:29]OFDProtocolAddRootSTLVToBuf [07:53:29]FM_MakeSignedData [07:53:29]FM_MakeSignedData [07:53:29]SAM_PROTO_SignData [07:53:29]wFMCommunicate request_size=4 [07:53:29]MH_SAM_APDU [07:53:29]CAPDU: 80 0D 01 02 [07:53:29]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [07:53:29]Write i2c OK [07:53:29]MH_I2C_Read... [07:53:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:29]Read from MH i2c: E2 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 03 00 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [07:53:29]RAPDU: 90 00 [07:53:29]wFMCommunicate OK [07:53:29]wFMCommunicate request_size=255 [07:53:29]MH_SAM_APDU [07:53:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F8 E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1C 01 00 35 04 06 00 9E [07:53:29]Write to MH i2c: E2 02 01 A0 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 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F8 E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1C 01 00 35 04 06 00 9E 00 00 DC [07:53:29]Write i2c OK [07:53:29]MH_I2C_Read... [07:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:29]Read from MH i2c: E2 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 03 00 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [07:53:29]RAPDU: 90 00 [07:53:29]wFMCommunicate OK [07:53:29]wFMCommunicate request_size=10 [07:53:29]MH_SAM_APDU [07:53:29]CAPDU: 80 0D 02 02 05 A0 D1 2F 1A 59 [07:53:29]Write to MH i2c: E2 0D 00 A1 01 80 0D 02 02 05 00 A0 D1 2F 1A 59 00 00 39 [07:53:29]Write i2c OK [07:53:29]MH_I2C_Read... [07:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:29]Read from MH i2c: E2 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 03 00 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [07:53:29]RAPDU: 90 00 [07:53:29]wFMCommunicate OK [07:53:29]wFMCommunicate request_size=4 [07:53:29]MH_SAM_APDU [07:53:29]CAPDU: 80 0D 03 02 [07:53:29]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [07:53:29]Write i2c OK [07:53:29]MH_I2C_Read... [07:53:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:29]Read from MH i2c: E2 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 0B 00 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 0B 00 A2 01 00 C3 A4 BE 35 54 1C 9A DD 90 00 60 [07:53:29]RAPDU: C3 A4 BE 35 54 1C 9A DD 90 00 [07:53:29]wFMCommunicate OK [07:53:29]SAM_PROTO_SignData done [07:53:29]FM_MakeSignedData done [07:53:29]CreateOFDProtocolMessage [07:53:29]wFMCommunicate request_size=4 [07:53:29]MH_SAM_APDU [07:53:29]CAPDU: 80 11 00 00 [07:53:29]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [07:53:29]Write i2c OK [07:53:29]MH_I2C_Read... [07:53:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:29]Read from MH i2c: E2 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 17 00 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 72 [07:53:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:53:29]wFMCommunicate OK [07:53:29]CreateOFDProtocolMessage done [07:53:29]OFDSenderStorePacket 72800 [07:53:29]StoreOFDPacket docnum=72800 [07:53:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B0 0D 07 01 23 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F8 E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1C 01 00 35 04 06 00 9E A0 D1 2F 1A 59 C3 A4 BE 35 54 1C 9A DD [07:53:29]CheckFolder [07:53:29]dirname=/storage/ofd_packets [07:53:29]CheckFolder done [07:53:29]ProducePacketName [07:53:29]name=ofd_packets/00072800 [07:53:29]NVStorageSaveData ofd_packets/00072800 [07:53:29]File name is /storage/ofd_packets/00072800 [07:53:29]Write 301 bytes [07:53:29]NVStorageSaveData done [07:53:29]OFDSenderStorePacket done [07:53:29]KKMCreateOFDPacket done [07:53:29]NVStorageSaveData kkm_last_timestamp [07:53:29]File name is /storage/kkm_last_timestamp [07:53:29]Write 4 bytes [07:53:29]NVStorageSaveData done [07:53:29]ExternCall_PrintAddStr [07:53:29]wPrintStart [07:53:29]Write to MH i2c: 01 00 00 A4 01 A5 [07:53:29]Write i2c OK [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: 01 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: 01 07 00 [07:53:29]MH_I2C_Read... [07:53:29]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [07:53:29]RasterBufferAndPrint [07:53:29]line Счет N : (1)952354 [07:53:29]line ИНН: 02508201610067 [07:53:29]line Контрольно-Кассовый Чек [07:53:29]line ПРОДАЖА [07:53:29]line ТРК (МРК, ГНК) : 31 [07:53:29]line Товар: 2710124500 [07:53:29]line Аи-95-К-3 [07:53:29]line 20.220 * 74.20 [07:53:29]line = 1500.32 [07:53:29]line НДС 12% НСП 1% [07:53:29]line > о реализуемом товаре [07:53:29]line ОКРУГЛЕНИЕ: -0.32 [07:53:29]line ИТОГО: 1500.00 [07:53:29]line Внесено: 1500.00 [07:53:29]line СДАЧА: 0.00 [07:53:29]line НСП 1% : 13.28 [07:53:29]line НДС 12% : 159.33 [07:53:29]line Наличными: 1500.00 [07:53:29]line Безнал.: 0.00 [07:53:29]line Место: АЗС № 113 "Партнер Нефть" [07:53:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:53:29]line СНО: Общий режим [07:53:29]line Чек 37 30.10.2024 07:53 [07:53:29]line Смена: 556 ФФД: 1.0 [07:53:29]line ЗНМ: 0300000087 [07:53:29]line РНМ: 0000000000091644 [07:53:29]line Версия ККМ: 001 [07:53:29]line ФМ: 0000000000874662 [07:53:29]line ФД: 72800 [07:53:29]line ФПД: 174413541481049 [07:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T075328&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72800&fm=174413541481049&tin=02508201610067®Number=0000000000091644&sum=150000 [07:53:30]OFD Sender: Processing packet 72800 [packets to send 278, broken 277] [07:53:30]ProducePacketName [07:53:30]name=ofd_packets/00072800 [07:53:30]OFD Sender: To server: pG, [07:53:30]CommunicateWithHost lk.salyk.kg:30040 [07:53:30]ConnectInit lk.salyk.kg [07:53:30]written 0, free lines is 4095 [07:53:30]Write to MH i2c: 01 00 00 CF 01 D0 [07:53:30]Write i2c OK [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: 01 [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: 01 07 00 [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 D6 0C B9 [07:53:30]RasterBufferAndPrint [07:53:30]line [07:53:30]line [07:53:30]line [07:53:30]line [07:53:30]line [07:53:30]written 0, free lines is 3293 [07:53:30]MH_Cut [07:53:30]Write to MH i2c: D1 01 00 D6 01 01 A9 [07:53:30]Write i2c OK [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: D1 [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: D1 01 00 [07:53:30]MH_I2C_Read... [07:53:30]Read from MH i2c: D1 01 00 D6 01 00 A8 [07:53:30]Write to MH i2c: 01 00 00 D7 01 D8 [07:53:30]Write i2c OK [07:53:30]MH_I2C_Read... [07:53:30]Connected sock=9 [07:53:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B0 0D 07 01 23 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F8 E5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1C 01 00 35 04 06 00 9E A0 D1 2F 1A 59 C3 A4 BE 35 54 1C 9A DD [07:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 73 9B 47 00 E9 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1C 01 00 F4 03 04 00 B2 90 21 67 B6 04 01 00 00 21 10 F1 C3 36 CB 4F 4D [07:53:31]CommunicateWithHost err = 0 [07:53:31]CheckOFDResponse [07:53:31]1017 (14) - 77093643461234 [07:53:31]1041 (16) - 0000000000874662 [07:53:31]1040 (4) - 72800 [07:53:31]1012 (4) - 30.10.2024 01:49 [07:53:31]1206 (1) - 0 [07:53:31]OFD Sender: Remove packet 72800 [07:53:31]ProducePacketName [07:53:31]name=ofd_packets/00072800 [07:53:31]NVStorageDeleteData [07:53:31]*** Cut start [07:53:31]*** Partial cut [07:53:31]*** CUTSNS_PIN = 1 [07:53:31]*** CUTSNS_PIN = 0 [07:53:31]*** Brake cut motor [07:53:31]OFD Sender: No OFD packet to send [07:53:31]Read from MH i2c: 01 [07:53:31]MH_I2C_Read... [07:53:31]*** Stop cut motor [07:53:31]*** Cut end [07:53:31]Read from MH i2c: 01 07 00 [07:53:31]MH_I2C_Read... [07:53:31]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [07:53:31]process_action close_receipt done [07:53:31]requested_data is exist [07:53:31]produce_requested_data [07:53:31]requested_item fm.sn is exist - process it [07:53:31]wFMCommunicate request_size=4 [07:53:31]MH_SAM_APDU [07:53:31]CAPDU: 80 11 00 00 [07:53:31]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [07:53:31]Write i2c OK [07:53:31]MH_I2C_Read... [07:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:31]Read from MH i2c: E2 [07:53:31]MH_I2C_Read... [07:53:31]Read from MH i2c: E2 17 00 [07:53:31]MH_I2C_Read... [07:53:31]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A7 [07:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:53:31]wFMCommunicate OK [07:53:31]requested_item fd.num is exist - process it [07:53:31]SAM_PROTO_GetFieldsCounters [07:53:31]wFMCommunicate request_size=4 [07:53:31]MH_SAM_APDU [07:53:31]CAPDU: 80 13 00 00 [07:53:31]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [07:53:31]Write i2c OK [07:53:31]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 62 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 62 00 D9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 60 1C 01 00 0E 04 04 00 2C 02 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 91 [07:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 60 1C 01 00 0E 04 04 00 2C 02 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 [07:53:32]wFMCommunicate OK [07:53:32]SAM_PROTO_GetFieldsCounters done [07:53:32]requested_item shift.num is exist - process it [07:53:32]requested_item shift.opened is exist - process it [07:53:32]req_shift_opened [07:53:32]FM_GetShiftState [07:53:32]SAM_PROTO_GetShiftState [07:53:32]wFMCommunicate request_size=4 [07:53:32]MH_SAM_APDU [07:53:32]CAPDU: 80 13 01 00 [07:53:32]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [07:53:32]Write i2c OK [07:53:32]MH_I2C_Read... [07:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:32]Read from MH i2c: E2 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 0E 00 [07:53:32]MH_I2C_Read... [07:53:32]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 2A [07:53:32]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [07:53:32]wFMCommunicate OK [07:53:32]SAM_PROTO_GetShiftState done [07:53:32]FM_GetShiftState done [07:53:32]req_shift_opened done [07:53:32]requested_item shift.open_date is exist - process it [07:53:32]req_shift_open_date [07:53:32]req_shift_open_date done [07:53:32]produce_requested_data done [07:53:32]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72800,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [07:53:32]process_action_free close_receipt [07:53:32]json_value_free [07:53:32]json_value_free done [07:53:32]process_json_proto returns [07:53:32]Send response to host [07:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72800,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [07:53:32]free response buf [07:53:32]execute_script done [07:53:32]execute_script returns [07:53:32]free content buf [07:53:32]Sock 10.Close socket [07:53:32]Sock 10.Thread stoped [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:45]recv_with_timeout no data received [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:55:57]recv_with_timeout no data received [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:37]recv_with_timeout no data received [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]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:05]recv_with_timeout no data received [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [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: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:14]recv_with_timeout no data received [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:48]recv_with_timeout no data received [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:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:21]recv_with_timeout no data received [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:53]recv_with_timeout no data received [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:04]recv_with_timeout no data received [08:04:06]accept exits with 8 [08:04:06]New connection [08:04:06]New thread 3066826084 created [08:04:06]Thread 3066682724 joined [08:04:06]Waiting for new connection... [08:04:06] Sock 8.Parse request [08:04:06]Sock 8.Check first char [08:04:06]Sock 8.First char is OK [08:04:06]request: POST /json_proto HTTP/1.0 [08:04:06]Method: POST [08:04:06]URL: /json_proto [08:04:06]Method is POST - this is cgi request [08:04:06]url: /json_proto [08:04:06]query_string will be loaded in cgi processing [08:04:06]execute_cgi json_proto POST (null) [08:04:06]execute_cgi path=json_proto method=POST [08:04:06]POST find Content-Length [08:04:06]Host: 172.17.43.195:8080 [08:04:06]Content-Length: 792 [08:04:06]Content-Type: application/json [08:04:06] [08:04:06]POST finish read [08:04:06]Found Content-Length = 792 [08:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:06]execute_script... [08:04:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:06]POST & json_proto [08:04:06]process_json_proto [08:04:06]json parsed OK: [08:04:06]protocol is kg_v1.0 [08:04:06]action value=close_receipt [08:04:06]process_action close_receipt [08:04:06]cmd_close_receipt [08:04:06]MH_GetDate [08:04:06]Write to MH i2c: F0 00 00 DB 01 CB [08:04:06]Write i2c OK [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: F0 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: F0 09 00 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: F0 09 00 DB 01 00 77 E8 21 67 74 2C AD 66 6E [08:04:06]GetLastDocTimeStamp 1730274808 [08:04:06]current date 1730275447 [08:04:06]FM_GetShiftState [08:04:06]SAM_PROTO_GetShiftState [08:04:06]wFMCommunicate request_size=4 [08:04:06]MH_SAM_APDU [08:04:06]CAPDU: 80 13 01 00 [08:04:06]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [08:04:06]Write i2c OK [08:04:06]MH_I2C_Read... [08:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:06]Read from MH i2c: E2 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: E2 0E 00 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 2C [08:04:06]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:04:06]wFMCommunicate OK [08:04:06]SAM_PROTO_GetShiftState done [08:04:06]FM_GetShiftState done [08:04:06]opened in 1730247109 [08:04:06]opened+sec_in_day 1730333509 [08:04:06]quantity*price = 0 [08:04:06]sum+1 = 1 [08:04:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 39 30.10.2024 08:04 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72802 ФПД: 63282322891727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T080453&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72802&fm=63282322891727&tin=02508201610067®Number=0000000000091644&sum=0 [08:04:53]StoreToDocumentArchive [08:04:53]shift 556 fd 72802 [08:04:53]save to /storage/0556/doc_00072802 [08:04:53]save last doc name /storage/0556/doc_00072802 to /storage/kkm_last_doc_name [08:04:53]save OK [08:04:53]Clear old archive folders... [08:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:53]tlvbuf is 011A8A50 [08:04:53]SAM_PROTO_ClearQueue [08:04:53]wFMCommunicate request_size=4 [08:04:53]MH_SAM_APDU [08:04:53]CAPDU: 80 09 00 00 [08:04:53]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:53]Read from MH i2c: E2 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 03 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [08:04:53]RAPDU: 90 00 [08:04:53]wFMCommunicate OK [08:04:53]SAM_PROTO_ClearQueue done [08:04:53]KKMCreateOFDPacket [08:04:53]OFDProtocolAddRootSTLVToBuf [08:04:53]FM_MakeSignedData [08:04:53]FM_MakeSignedData [08:04:53]SAM_PROTO_SignData [08:04:53]wFMCommunicate request_size=4 [08:04:53]MH_SAM_APDU [08:04:53]CAPDU: 80 0D 01 02 [08:04:53]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:54]Read from MH i2c: E2 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 03 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [08:04:54]RAPDU: 90 00 [08:04:54]wFMCommunicate OK [08:04:54]wFMCommunicate request_size=255 [08:04:54]MH_SAM_APDU [08:04:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 A5 E8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1C 01 00 35 04 06 00 39 [08:04:54]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 27 00 00 00 F4 03 04 00 A5 E8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1C 01 00 35 04 06 00 39 00 00 3F [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:54]Read from MH i2c: E2 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 03 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [08:04:54]RAPDU: 90 00 [08:04:54]wFMCommunicate OK [08:04:54]wFMCommunicate request_size=10 [08:04:54]MH_SAM_APDU [08:04:54]CAPDU: 80 0D 02 02 05 8E 10 60 63 CF [08:04:54]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 8E 10 60 63 CF 00 00 E2 [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:54]Read from MH i2c: E2 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 03 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [08:04:54]RAPDU: 90 00 [08:04:54]wFMCommunicate OK [08:04:54]wFMCommunicate request_size=4 [08:04:54]MH_SAM_APDU [08:04:54]CAPDU: 80 0D 03 02 [08:04:54]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:54]Read from MH i2c: E2 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 0B 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 0B 00 2F 00 00 EA 73 46 5D 47 3A 34 F2 90 00 52 [08:04:54]RAPDU: EA 73 46 5D 47 3A 34 F2 90 00 [08:04:54]wFMCommunicate OK [08:04:54]SAM_PROTO_SignData done [08:04:54]FM_MakeSignedData done [08:04:54]CreateOFDProtocolMessage [08:04:54]wFMCommunicate request_size=4 [08:04:54]MH_SAM_APDU [08:04:54]CAPDU: 80 11 00 00 [08:04:54]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:54]Read from MH i2c: E2 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 17 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [08:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:04:54]wFMCommunicate OK [08:04:54]CreateOFDProtocolMessage done [08:04:54]OFDSenderStorePacket 72802 [08:04:54]StoreOFDPacket docnum=72802 [08:04:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B0 49 07 01 65 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 27 00 00 00 F4 03 04 00 A5 E8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1C 01 00 35 04 06 00 39 8E 10 60 63 CF EA 73 46 5D 47 3A 34 F2 [08:04:54]CheckFolder [08:04:54]dirname=/storage/ofd_packets [08:04:54]CheckFolder done [08:04:54]ProducePacketName [08:04:54]name=ofd_packets/00072802 [08:04:54]NVStorageSaveData ofd_packets/00072802 [08:04:54]File name is /storage/ofd_packets/00072802 [08:04:54]Write 301 bytes [08:04:54]NVStorageSaveData done [08:04:54]OFDSenderStorePacket done [08:04:54]KKMCreateOFDPacket done [08:04:54]NVStorageSaveData kkm_last_timestamp [08:04:54]File name is /storage/kkm_last_timestamp [08:04:54]Write 4 bytes [08:04:54]NVStorageSaveData done [08:04:54]ExternCall_PrintAddStr [08:04:54]wPrintStart [08:04:54]Write to MH i2c: 01 00 00 31 00 31 [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: 01 [08:04:54]MH_I2C_Read... [08:04:54]OFD Sender: Processing packet 72802 [packets to send 278, broken 277] [08:04:54]ProducePacketName [08:04:54]name=ofd_packets/00072802 [08:04:54]OFD Sender: To server: pG, [08:04:54]CommunicateWithHost lk.salyk.kg:30040 [08:04:54]ConnectInit lk.salyk.kg [08:04:54]Read from MH i2c: 01 07 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [08:04:54]RasterBufferAndPrint [08:04:54]line Счет N : (1)952355 [08:04:54]line ИНН: 02508201610067 [08:04:54]line Контрольно-Кассовый Чек [08:04:54]line ПРОДАЖА [08:04:54]line ТРК (МРК, ГНК) : 53 [08:04:54]line Товар: 2710124130 [08:04:54]line Аи-92-К-5 [08:04:54]line 20.000 * 0.00 [08:04:54]line = 0.00 [08:04:54]line НДС 12% НСП 1% [08:04:54]line > о реализуемом товаре [08:04:54]line ИТОГО: 0.00 [08:04:54]line НСП 1% : 0.00 [08:04:54]line НДС 12% : 0.00 [08:04:54]line Наличными: 0.00 [08:04:54]line Безнал.: 0.00 [08:04:54]line Место: АЗС № 113 "Партнер Нефть" [08:04:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:04:54]line СНО: Общий режим [08:04:54]line Чек 39 30.10.2024 08:04 [08:04:54]line Смена: 556 ФФД: 1.0 [08:04:54]line ЗНМ: 0300000087 [08:04:55]line РНМ: 0000000000091644 [08:04:55]line Версия ККМ: 001 [08:04:55]line Талоны: Топливная Карта [08:04:55]line 03047 [08:04:55]line ФМ: 0000000000874662 [08:04:55]line ФД: 72802 [08:04:55]line ФПД: 63282322891727 [08:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T080453&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72802&fm=63282322891727&tin=02508201610067®Number=0000000000091644&sum=0 [08:04:55]written 0, free lines is 4095 [08:04:55]Write to MH i2c: 01 00 00 5B 00 5B [08:04:55]Write i2c OK [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 07 00 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E4 0C 52 [08:04:55]RasterBufferAndPrint [08:04:55]line [08:04:55]line [08:04:55]line [08:04:55]line [08:04:55]line [08:04:55]written 0, free lines is 3324 [08:04:55]MH_Cut [08:04:55]Write to MH i2c: D1 01 00 62 00 01 34 [08:04:55]Write i2c OK [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: D1 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: D1 01 00 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: D1 01 00 62 00 00 33 [08:04:55]Write to MH i2c: 01 00 00 63 00 63 [08:04:55]Write i2c OK [08:04:55]MH_I2C_Read... [08:04:55]Connected sock=11 [08:04:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B0 49 07 01 65 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 27 00 00 00 F4 03 04 00 A5 E8 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1C 01 00 35 04 06 00 39 8E 10 60 63 CF EA 73 46 5D 47 3A 34 F2 [08:04:56]*** Cut start [08:04:56]*** Partial cut [08:04:56]*** CUTSNS_PIN = 1 [08:04:56]*** CUTSNS_PIN = 0 [08:04:56]*** Brake cut motor [08:04:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 05 18 47 00 3F 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 38 37 34 36 36 32 10 04 04 00 62 1C 01 00 F4 03 04 00 5F 93 21 67 B6 04 01 00 00 7B C9 C6 94 93 E6 5C 92 [08:04:56]CommunicateWithHost err = 0 [08:04:56]CheckOFDResponse [08:04:56]1017 (14) - 77093643461234 [08:04:56]1041 (16) - 0000000000874662 [08:04:56]1040 (4) - 72802 [08:04:56]1012 (4) - 30.10.2024 02:01 [08:04:56]1206 (1) - 0 [08:04:56]OFD Sender: Remove packet 72802 [08:04:56]ProducePacketName [08:04:56]name=ofd_packets/00072802 [08:04:56]NVStorageDeleteData [08:04:56]Read from MH i2c: 01 [08:04:56]MH_I2C_Read... [08:04:56]*** Stop cut motor [08:04:56]*** Cut end [08:04:56]Read from MH i2c: 01 07 00 [08:04:56]MH_I2C_Read... [08:04:56]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [08:04:56]process_action close_receipt done [08:04:56]requested_data is exist [08:04:56]produce_requested_data [08:04:56]requested_item fm.sn is exist - process it [08:04:56]wFMCommunicate request_size=4 [08:04:56]MH_SAM_APDU [08:04:56]CAPDU: 80 11 00 00 [08:04:56]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [08:04:56]Write i2c OK [08:04:56]MH_I2C_Read... [08:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:56]Read from MH i2c: E2 [08:04:56]MH_I2C_Read... [08:04:56]Read from MH i2c: E2 17 00 [08:04:56]MH_I2C_Read... [08:04:56]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [08:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:04:56]wFMCommunicate OK [08:04:56]requested_item fd.num is exist - process it [08:04:56]SAM_PROTO_GetFieldsCounters [08:04:56]wFMCommunicate request_size=4 [08:04:56]MH_SAM_APDU [08:04:56]CAPDU: 80 13 00 00 [08:04:56]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [08:04:56]Write i2c OK [08:04:56]MH_I2C_Read... [08:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:57]Read from MH i2c: E2 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: E2 62 00 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 62 1C 01 00 0E 04 04 00 2C 02 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 24 [08:04:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 62 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:57]wFMCommunicate OK [08:04:57]SAM_PROTO_GetFieldsCounters done [08:04:57]requested_item shift.num is exist - process it [08:04:57]requested_item shift.opened is exist - process it [08:04:57]req_shift_opened [08:04:57]FM_GetShiftState [08:04:57]SAM_PROTO_GetShiftState [08:04:57]wFMCommunicate request_size=4 [08:04:57]MH_SAM_APDU [08:04:57]CAPDU: 80 13 01 00 [08:04:57]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [08:04:57]Write i2c OK [08:04:57]MH_I2C_Read... [08:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:57]Read from MH i2c: E2 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: E2 0E 00 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B5 [08:04:57]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:04:57]wFMCommunicate OK [08:04:57]SAM_PROTO_GetShiftState done [08:04:57]FM_GetShiftState done [08:04:57]req_shift_opened done [08:04:57]requested_item shift.open_date is exist - process it [08:04:57]req_shift_open_date [08:04:57]req_shift_open_date done [08:04:57]produce_requested_data done [08:04:57]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72802,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:04:57]process_action_free close_receipt [08:04:57]json_value_free [08:04:57]json_value_free done [08:04:57]process_json_proto returns [08:04:57]Send response to host [08:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72802,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:04:57]free response buf [08:04:57]execute_script done [08:04:57]execute_script returns [08:04:57]free content buf [08:04:57]Sock 9.Close socket [08:04:57]Sock 9.Thread stoped [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:01]accept exits with 10 [08:07:01]New connection [08:07:01]New thread 3066645860 created [08:07:01]Thread 3066789220 joined [08:07:01]Waiting for new connection... [08:07:01] Sock 10.Parse request [08:07:01]Sock 10.Check first char [08:07:01]Sock 10.First char is OK [08:07:01]request: POST /json_proto HTTP/1.0 [08:07:01]Method: POST [08:07:01]URL: /json_proto [08:07:01]Method is POST - this is cgi request [08:07:01]url: /json_proto [08:07:01]query_string will be loaded in cgi processing [08:07:01]execute_cgi json_proto POST (null) [08:07:01]execute_cgi path=json_proto method=POST [08:07:01]POST find Content-Length [08:07:01]Host: 172.17.43.195:8080 [08:07:01]Content-Length: 682 [08:07:01]Content-Type: application/json [08:07:01] [08:07:01]POST finish read [08:07:01]Found Content-Length = 682 [08:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.430, "sum" : 2480.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2480.00, "total" : 2480.00, "payments": [ { "type": 0, "sum" : 2480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:01]execute_script... [08:07: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)952357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.430, "sum" : 2480.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2480.00, "total" : 2480.00, "payments": [ { "type": 0, "sum" : 2480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:01]POST & json_proto [08:07:01]process_json_proto [08:07:01]json parsed OK: [08:07:01]protocol is kg_v1.0 [08:07:01]action value=close_receipt [08:07:01]process_action close_receipt [08:07:01]cmd_close_receipt [08:07:01]MH_GetDate [08:07:01]Write to MH i2c: F0 00 00 67 00 56 [08:07:01]Write i2c OK [08:07:01]MH_I2C_Read... [08:07:01]Read from MH i2c: F0 [08:07:01]MH_I2C_Read... [08:07:01]Read from MH i2c: F0 09 00 [08:07:01]MH_I2C_Read... [08:07:01]Read from MH i2c: F0 09 00 67 00 00 25 E9 21 67 74 2C AD 66 A8 [08:07:01]GetLastDocTimeStamp 1730275493 [08:07:01]current date 1730275621 [08:07:01]FM_GetShiftState [08:07:01]SAM_PROTO_GetShiftState [08:07:01]wFMCommunicate request_size=4 [08:07:01]MH_SAM_APDU [08:07:01]CAPDU: 80 13 01 00 [08:07:01]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [08:07:01]Write i2c OK [08:07:01]MH_I2C_Read... [08:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:01]Read from MH i2c: E2 [08:07:01]MH_I2C_Read... [08:07:01]Read from MH i2c: E2 0E 00 [08:07:01]MH_I2C_Read... [08:07:01]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B7 [08:07:01]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:07:01]wFMCommunicate OK [08:07:01]SAM_PROTO_GetShiftState done [08:07:01]FM_GetShiftState done [08:07:01]opened in 1730247109 [08:07:01]opened+sec_in_day 1730333509 [08:07:01]quantity*price = 248050 [08:07:01]sum+1 = 248052 [08:07:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2480.00 Внесено: 2480.00 СДАЧА: 0.00 НСП 1% : 21.95 НДС 12% : 263.42 Наличными: 2480.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 40 30.10.2024 08:07 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72803 ФПД: 190248591129602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T080701&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72803&fm=190248591129602&tin=02508201610067®Number=0000000000091644&sum=248000 [08:07:02]StoreToDocumentArchive [08:07:02]shift 556 fd 72803 [08:07:02]save to /storage/0556/doc_00072803 [08:07:02]save last doc name /storage/0556/doc_00072803 to /storage/kkm_last_doc_name [08:07:02]save OK [08:07:02]Clear old archive folders... [08:07:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:03]tlvbuf is 011BA090 [08:07:03]SAM_PROTO_ClearQueue [08:07:03]wFMCommunicate request_size=4 [08:07:03]MH_SAM_APDU [08:07:03]CAPDU: 80 09 00 00 [08:07:03]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:03]Read from MH i2c: E2 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 03 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [08:07:03]RAPDU: 90 00 [08:07:03]wFMCommunicate OK [08:07:03]SAM_PROTO_ClearQueue done [08:07:03]KKMCreateOFDPacket [08:07:03]OFDProtocolAddRootSTLVToBuf [08:07:03]FM_MakeSignedData [08:07:03]FM_MakeSignedData [08:07:03]SAM_PROTO_SignData [08:07:03]wFMCommunicate request_size=4 [08:07:03]MH_SAM_APDU [08:07:03]CAPDU: 80 0D 01 02 [08:07:03]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:03]Read from MH i2c: E2 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 03 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [08:07:03]RAPDU: 90 00 [08:07:03]wFMCommunicate OK [08:07:03]wFMCommunicate request_size=255 [08:07:03]MH_SAM_APDU [08:07:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 82 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F3 C8 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C8 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 66 00 00 00 00 07 04 06 00 C0 C8 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 25 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 63 1C 01 00 35 04 06 00 AD [08:07:03]Write to MH i2c: E2 02 01 77 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 33 FF 03 08 00 03 96 82 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F3 C8 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C8 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 66 00 00 00 00 07 04 06 00 C0 C8 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 25 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 63 1C 01 00 35 04 06 00 AD 00 00 FF [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:03]Read from MH i2c: E2 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 03 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [08:07:03]RAPDU: 90 00 [08:07:03]wFMCommunicate OK [08:07:03]wFMCommunicate request_size=10 [08:07:03]MH_SAM_APDU [08:07:03]CAPDU: 80 0D 02 02 05 07 B3 B1 7C 02 [08:07:03]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 07 B3 B1 7C 02 00 00 E5 [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:03]Read from MH i2c: E2 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 03 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [08:07:03]RAPDU: 90 00 [08:07:03]wFMCommunicate OK [08:07:03]wFMCommunicate request_size=4 [08:07:03]MH_SAM_APDU [08:07:03]CAPDU: 80 0D 03 02 [08:07:03]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:03]Read from MH i2c: E2 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 0B 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 0B 00 79 00 00 D0 F1 35 AB D7 15 FB 4A 90 00 C7 [08:07:03]RAPDU: D0 F1 35 AB D7 15 FB 4A 90 00 [08:07:03]wFMCommunicate OK [08:07:03]SAM_PROTO_SignData done [08:07:03]FM_MakeSignedData done [08:07:03]CreateOFDProtocolMessage [08:07:03]wFMCommunicate request_size=4 [08:07:03]MH_SAM_APDU [08:07:03]CAPDU: 80 11 00 00 [08:07:03]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:03]Read from MH i2c: E2 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 17 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [08:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:07:03]wFMCommunicate OK [08:07:03]CreateOFDProtocolMessage done [08:07:03]OFDSenderStorePacket 72803 [08:07:03]StoreOFDPacket docnum=72803 [08:07:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9A 55 07 01 1A B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 82 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F3 C8 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C8 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 66 00 00 00 00 07 04 06 00 C0 C8 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 25 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 63 1C 01 00 35 04 06 00 AD 07 B3 B1 7C 02 D0 F1 35 AB D7 15 FB 4A [08:07:03]CheckFolder [08:07:03]dirname=/storage/ofd_packets [08:07:03]CheckFolder done [08:07:03]ProducePacketName [08:07:03]name=ofd_packets/00072803 [08:07:03]NVStorageSaveData ofd_packets/00072803 [08:07:03]File name is /storage/ofd_packets/00072803 [08:07:03]Write 301 bytes [08:07:03]NVStorageSaveData done [08:07:03]OFDSenderStorePacket done [08:07:03]KKMCreateOFDPacket done [08:07:03]NVStorageSaveData kkm_last_timestamp [08:07:03]File name is /storage/kkm_last_timestamp [08:07:03]Write 4 bytes [08:07:03]NVStorageSaveData done [08:07:03]ExternCall_PrintAddStr [08:07:03]wPrintStart [08:07:03]Write to MH i2c: 01 00 00 7B 00 7B [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: 01 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: 01 07 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [08:07:03]RasterBufferAndPrint [08:07:03]line Счет N : (1)952357 [08:07:03]line ИНН: 02508201610067 [08:07:03]line Контрольно-Кассовый Чек [08:07:03]line ПРОДАЖА [08:07:03]line ТРК (МРК, ГНК) : 52 [08:07:03]line Товар: 2710124500 [08:07:03]line Аи-95-К-3 [08:07:03]line 33.430 * 74.20 [08:07:03]line = 2480.51 [08:07:03]line НДС 12% НСП 1% [08:07:03]line > о реализуемом товаре [08:07:03]line ОКРУГЛЕНИЕ: -0.51 [08:07:03]line ИТОГО: 2480.00 [08:07:03]line Внесено: 2480.00 [08:07:03]line СДАЧА: 0.00 [08:07:03]line НСП 1% : 21.95 [08:07:03]line НДС 12% : 263.42 [08:07:03]line Наличными: 2480.00 [08:07:03]line Безнал.: 0.00 [08:07:03]line Место: АЗС № 113 "Партнер Нефть" [08:07:03]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:07:03]line СНО: Общий режим [08:07:03]line Чек 40 30.10.2024 08:07 [08:07:03]line Смена: 556 ФФД: 1.0 [08:07:03]line ЗНМ: 0300000087 [08:07:03]line РНМ: 0000000000091644 [08:07:03]line Версия ККМ: 001 [08:07:03]line ФМ: 0000000000874662 [08:07:03]line ФД: 72803 [08:07:03]line ФПД: 190248591129602 [08:07:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T080701&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72803&fm=190248591129602&tin=02508201610067®Number=0000000000091644&sum=248000 [08:07:03]written 0, free lines is 4095 [08:07:03]OFD Sender: Processing packet 72803 [packets to send 278, broken 277] [08:07:03]ProducePacketName [08:07:03]name=ofd_packets/00072803 [08:07:03]OFD Sender: To server: pG, [08:07:03]CommunicateWithHost lk.salyk.kg:30040 [08:07:03]ConnectInit lk.salyk.kg [08:07:04]Write to MH i2c: 01 00 00 A6 00 A6 [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: 01 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: 01 07 00 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 DA 0C 93 [08:07:04]RasterBufferAndPrint [08:07:04]line [08:07:04]line [08:07:04]line [08:07:04]line [08:07:04]line [08:07:04]written 0, free lines is 3318 [08:07:04]MH_Cut [08:07:04]Write to MH i2c: D1 01 00 AD 00 01 7F [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: D1 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: D1 01 00 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: D1 01 00 AD 00 00 7E [08:07:04]Write to MH i2c: 01 00 00 AE 00 AE [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:05]*** Cut start [08:07:05]*** Partial cut [08:07:05]*** CUTSNS_PIN = 1 [08:07:05]Connected sock=11 [08:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9A 55 07 01 *** CUTSNS_PIN = 0 [08:07:05]1A B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 82 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F3 C8 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C8 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 66 00 00 00 00 07 04 06 00 C0 C8 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 25 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 63 1C 01 00 35 04 06 00 AD 07 B3 B1 7C 02 D0 F1 35 AB D7 15 FB 4A [08:07:05]*** Brake cut motor [08:07:05]Read from MH i2c: 01 [08:07:05]MH_I2C_Read... [08:07:05]*** Stop cut motor [08:07:05]*** Cut end [08:07:05]Read from MH i2c: 01 07 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [08:07:05]process_action close_receipt done [08:07:05]requested_data is exist [08:07:05]produce_requested_data [08:07:05]requested_item fm.sn is exist - process it [08:07:05]wFMCommunicate request_size=4 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 11 00 00 [08:07:05]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 17 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [08:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:07:05]wFMCommunicate OK [08:07:05]requested_item fd.num is exist - process it [08:07:05]SAM_PROTO_GetFieldsCounters [08:07:05]wFMCommunicate request_size=4 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 13 00 00 [08:07:05]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 62 00 [08:07:05]MH_I2C_Read... [08:07:06]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 63 1C 01 00 0E 04 04 00 2C 02 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 73 [08:07:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 63 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:06]wFMCommunicate OK [08:07:06]SAM_PROTO_GetFieldsCounters done [08:07:06]requested_item shift.num is exist - process it [08:07:06]requested_item shift.opened is exist - process it [08:07:06]req_shift_opened [08:07:06]FM_GetShiftState [08:07:06]SAM_PROTO_GetShiftState [08:07:06]wFMCommunicate request_size=4 [08:07:06]MH_SAM_APDU [08:07:06]CAPDU: 80 13 01 00 [08:07:06]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [08:07:06]Write i2c OK [08:07:06]MH_I2C_Read... [08:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:06]Read from MH i2c: E2 [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: E2 0E 00 [08:07:06]MH_I2C_Read... [08:07:06]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 00 [08:07:06]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:07:06]wFMCommunicate OK [08:07:06]SAM_PROTO_GetShiftState done [08:07:06]FM_GetShiftState done [08:07:06]req_shift_opened done [08:07:06]requested_item shift.open_date is exist - process it [08:07:06]req_shift_open_date [08:07:06]req_shift_open_date done [08:07:06]produce_requested_data done [08:07:06]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72803,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:07:06]process_action_free close_receipt [08:07:06]json_value_free [08:07:06]json_value_free done [08:07:06]process_json_proto returns [08:07:06]Send response to host [08:07:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72803,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:07:06]free response buf [08:07:06]execute_script done [08:07:06]execute_script returns [08:07:06]free content buf [08:07:06]Sock 10.Close socket [08:07:06]Sock 10.Thread stoped [08:07:10]recv_with_timeout no data received [08:07:10]CommunicateWithHost answer receiving error [08:07:10]CommunicateWithHost err = -3 [08:07:10]OFD Sender: Server communicate error [08:07:15]OFD Sender: Processing packet 72803 [packets to send 278, broken 277] [08:07:15]ProducePacketName [08:07:15]name=ofd_packets/00072803 [08:07:15]OFD Sender: To server: pG, [08:07:15]CommunicateWithHost lk.salyk.kg:30040 [08:07:15]ConnectInit lk.salyk.kg [08:07:20]Connected sock=10 [08:07:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9A 55 07 01 1A B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 82 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F3 C8 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 C8 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 66 00 00 00 00 07 04 06 00 C0 C8 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 25 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 63 1C 01 00 35 04 06 00 AD 07 B3 B1 7C 02 D0 F1 35 AB D7 15 FB 4A [08:07:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 EE 06 47 00 AA 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 38 37 34 36 36 32 10 04 04 00 63 1C 01 00 F4 03 04 00 EF 93 21 67 B6 04 01 00 00 84 82 EB AD 9B 44 54 57 [08:07:20]CommunicateWithHost err = 0 [08:07:20]CheckOFDResponse [08:07:20]1017 (14) - 77093643461234 [08:07:20]1041 (16) - 0000000000874662 [08:07:20]1040 (4) - 72803 [08:07:20]1012 (4) - 30.10.2024 02:03 [08:07:20]1206 (1) - 0 [08:07:20]OFD Sender: Remove packet 72803 [08:07:20]ProducePacketName [08:07:20]name=ofd_packets/00072803 [08:07:20]NVStorageDeleteData [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:40]ConnectInit Can't connect to host [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [08:08:26]OFD Sender: No OFD packet to send [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:47]accept exits with 9 [08:08:47]New connection [08:08:47]New thread 3066789220 created [08:08:47]Thread 3066645860 joined [08:08:47]Waiting for new connection... [08:08:47] Sock 9.Parse request [08:08:47]Sock 9.Check first char [08:08:47]Sock 9.First char is OK [08:08:47]request: POST /json_proto HTTP/1.0 [08:08:47]Method: POST [08:08:47]URL: /json_proto [08:08:47]Method is POST - this is cgi request [08:08:47]url: /json_proto [08:08:47]query_string will be loaded in cgi processing [08:08:47]execute_cgi json_proto POST (null) [08:08:47]execute_cgi path=json_proto method=POST [08:08:47]POST find Content-Length [08:08:47]Host: 172.17.43.195:8080 [08:08:47]Content-Length: 799 [08:08:47]Content-Type: application/json [08:08:47] [08:08:47]POST finish read [08:08:47]Found Content-Length = 799 [08:08:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4864991", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:47]execute_script... [08: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 : (1)952358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4864991", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:08:47]POST & json_proto [08:08:47]process_json_proto [08:08:47]json parsed OK: [08:08:47]protocol is kg_v1.0 [08:08:47]action value=close_receipt [08:08:47]process_action close_receipt [08:08:47]cmd_close_receipt [08:08:47]MH_GetDate [08:08:47]Write to MH i2c: F0 00 00 B2 00 A1 [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: F0 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: F0 09 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: F0 09 00 B2 00 00 8F E9 21 67 74 2C AD 66 5D [08:08:47]GetLastDocTimeStamp 1730275621 [08:08:47]current date 1730275727 [08:08:47]FM_GetShiftState [08:08:47]SAM_PROTO_GetShiftState [08:08:47]wFMCommunicate request_size=4 [08:08:47]MH_SAM_APDU [08:08:47]CAPDU: 80 13 01 00 [08:08:47]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [08:08:47]Write i2c OK [08:08:47]MH_I2C_Read... [08:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:47]Read from MH i2c: E2 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 0E 00 [08:08:47]MH_I2C_Read... [08:08:47]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 02 [08:08:47]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:08:47]wFMCommunicate OK [08:08:47]SAM_PROTO_GetShiftState done [08:08:47]FM_GetShiftState done [08:08:47]opened in 1730247109 [08:08:47]opened+sec_in_day 1730333509 [08:08:47]quantity*price = 0 [08:08:47]sum+1 = 1 [08:08:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 41 30.10.2024 08:08 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливные Талоны 4864991 ФМ: 0000000000874662 ФД: 72804 ФПД: 108399043709883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T080847&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72804&fm=108399043709883&tin=02508201610067®Number=0000000000091644&sum=0 [08:08:48]StoreToDocumentArchive [08:08:48]shift 556 fd 72804 [08:08:48]save to /storage/0556/doc_00072804 [08:08:48]save last doc name /storage/0556/doc_00072804 to /storage/kkm_last_doc_name [08:08:48]save OK [08:08:48]Clear old archive folders... [08:08:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:48]tlvbuf is 011E5CB0 [08:08:48]SAM_PROTO_ClearQueue [08:08:48]wFMCommunicate request_size=4 [08:08:48]MH_SAM_APDU [08:08:48]CAPDU: 80 09 00 00 [08:08:48]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [08:08:48]Write i2c OK [08:08:48]MH_I2C_Read... [08:08:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:48]Read from MH i2c: E2 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 03 00 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [08:08:48]RAPDU: 90 00 [08:08:48]wFMCommunicate OK [08:08:48]SAM_PROTO_ClearQueue done [08:08:48]KKMCreateOFDPacket [08:08:48]OFDProtocolAddRootSTLVToBuf [08:08:48]FM_MakeSignedData [08:08:48]FM_MakeSignedData [08:08:48]SAM_PROTO_SignData [08:08:48]wFMCommunicate request_size=4 [08:08:48]MH_SAM_APDU [08:08:48]CAPDU: 80 0D 01 02 [08:08:48]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [08:08:48]Write i2c OK [08:08:48]MH_I2C_Read... [08:08:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:48]Read from MH i2c: E2 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 03 00 [08:08:48]MH_I2C_Read... [08:08:48]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [08:08:48]RAPDU: 90 00 [08:08:48]wFMCommunicate OK [08:08:48]wFMCommunicate request_size=255 [08:08:48]MH_SAM_APDU [08:08:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8F E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1C 01 00 35 04 06 00 62 [08:08:48]Write to MH i2c: E2 02 01 C2 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8F E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1C 01 00 35 04 06 00 62 00 00 19 [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:49]Read from MH i2c: E2 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 03 00 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [08:08:49]RAPDU: 90 00 [08:08:49]wFMCommunicate OK [08:08:49]wFMCommunicate request_size=10 [08:08:49]MH_SAM_APDU [08:08:49]CAPDU: 80 0D 02 02 05 96 9E 7E 8B BB [08:08:49]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 96 9E 7E 8B BB 00 00 3F [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:49]Read from MH i2c: E2 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 03 00 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [08:08:49]RAPDU: 90 00 [08:08:49]wFMCommunicate OK [08:08:49]wFMCommunicate request_size=4 [08:08:49]MH_SAM_APDU [08:08:49]CAPDU: 80 0D 03 02 [08:08:49]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:49]Read from MH i2c: E2 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 0B 00 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 0B 00 C4 00 00 D1 21 17 00 10 56 90 BF 90 00 FE [08:08:49]RAPDU: D1 21 17 00 10 56 90 BF 90 00 [08:08:49]wFMCommunicate OK [08:08:49]SAM_PROTO_SignData done [08:08:49]FM_MakeSignedData done [08:08:49]CreateOFDProtocolMessage [08:08:49]wFMCommunicate request_size=4 [08:08:49]MH_SAM_APDU [08:08:49]CAPDU: 80 11 00 00 [08:08:49]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:49]Read from MH i2c: E2 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 17 00 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 93 [08:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:08:49]wFMCommunicate OK [08:08:49]CreateOFDProtocolMessage done [08:08:49]OFDSenderStorePacket 72804 [08:08:49]StoreOFDPacket docnum=72804 [08:08:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F7 DC 07 01 57 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 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 29 00 00 00 F4 03 04 00 8F E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1C 01 00 35 04 06 00 62 96 9E 7E 8B BB D1 21 17 00 10 56 90 BF [08:08:49]CheckFolder [08:08:49]dirname=/storage/ofd_packets [08:08:49]CheckFolder done [08:08:49]ProducePacketName [08:08:49]name=ofd_packets/00072804 [08:08:49]NVStorageSaveData ofd_packets/00072804 [08:08:49]File name is /storage/ofd_packets/00072804 [08:08:49]Write 301 bytes [08:08:49]NVStorageSaveData done [08:08:49]OFDSenderStorePacket done [08:08:49]KKMCreateOFDPacket done [08:08:49]NVStorageSaveData kkm_last_timestamp [08:08:49]File name is /storage/kkm_last_timestamp [08:08:49]Write 4 bytes [08:08:49]NVStorageSaveData done [08:08:49]ExternCall_PrintAddStr [08:08:49]wPrintStart [08:08:49]Write to MH i2c: 01 00 00 C6 00 C6 [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: 01 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: 01 07 00 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [08:08:49]RasterBufferAndPrint [08:08:49]line Счет N : (1)952358 [08:08:49]line ИНН: 02508201610067 [08:08:49]line Контрольно-Кассовый Чек [08:08:49]line ПРОДАЖА [08:08:49]line ТРК (МРК, ГНК) : 63 [08:08:49]line Товар: 2710124130 [08:08:49]line Аи-92-К-5 [08:08:49]line 5.000 * 0.00 [08:08:49]line = 0.00 [08:08:49]line НДС 12% НСП 1% [08:08:49]line > о реализуемом товаре [08:08:49]line ИТОГО: 0.00 [08:08:49]line НСП 1% : 0.00 [08:08:49]line НДС 12% : 0.00 [08:08:49]line Наличными: 0.00 [08:08:49]line Безнал.: 0.00 [08:08:49]line Место: АЗС № 113 "Партнер Нефть" [08:08:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:08:49]line СНО: Общий режим [08:08:49]line Чек 41 30.10.2024 08:08 [08:08:49]line Смена: 556 ФФД: 1.0 [08:08:49]line ЗНМ: 0300000087 [08:08:49]line РНМ: 0000000000091644 [08:08:49]line Версия ККМ: 001 [08:08:49]line Талоны: Топливные Талоны [08:08:49]line 4864991 [08:08:49]line ФМ: 0000000000874662 [08:08:49]line ФД: 72804 [08:08:49]line ФПД: 108399043709883 [08:08:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T080847&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72804&fm=108399043709883&tin=02508201610067®Number=0000000000091644&sum=0 [08:08:49]OFD Sender: Processing packet 72804 [packets to send 278, broken 277] [08:08:49]ProducePacketName [08:08:49]name=ofd_packets/00072804 [08:08:49]OFD Sender: To server: pG, [08:08:49]CommunicateWithHost lk.salyk.kg:30040 [08:08:49]ConnectInit lk.salyk.kg [08:08:49]written 0, free lines is 4095 [08:08:50]Write to MH i2c: 01 00 00 F0 00 F0 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 07 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 E3 0C E6 [08:08:50]RasterBufferAndPrint [08:08:50]line [08:08:50]line [08:08:50]line [08:08:50]line [08:08:50]line [08:08:50]written 0, free lines is 3330 [08:08:50]MH_Cut [08:08:50]Write to MH i2c: D1 01 00 F7 00 01 C9 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: D1 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: D1 01 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: D1 01 00 F7 00 00 C8 [08:08:50]Write to MH i2c: 01 00 00 F8 00 F8 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]Connected sock=11 [08:08:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F7 DC 07 01 57 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 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 29 00 00 00 F4 03 04 00 8F E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1C 01 00 35 04 06 00 62 96 9E 7E 8B BB D1 21 17 00 10 56 90 BF [08:08:50]*** Cut start [08:08:50]*** Partial cut [08:08:50]*** CUTSNS_PIN = 1 [08:08:50]*** CUTSNS_PIN = 0 [08:08:51]*** Brake cut motor [08:08:51]Read from MH i2c: 01 [08:08:51]MH_I2C_Read... [08:08:51]*** Stop cut motor [08:08:51]*** Cut end [08:08:51]Read from MH i2c: 01 07 00 [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [08:08:51]process_action close_receipt done [08:08:51]requested_data is exist [08:08:51]produce_requested_data [08:08:51]requested_item fm.sn is exist - process it [08:08:51]wFMCommunicate request_size=4 [08:08:51]MH_SAM_APDU [08:08:51]CAPDU: 80 11 00 00 [08:08:51]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [08:08:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 07 80 47 00 CD 76 A5 07 01 00 07 00 3B 00 Write i2c OK [08:08:51]F9 MH_I2C_Read... [08:08:51]03 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:51]0E Read from MH i2c: 00 E2 37 [08:08:51]37 MH_I2C_Read... [08:08:51]30 Read from MH i2c: 39 E2 33 17 00 [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 36 30 34 30 33 30 34 30 36 30 31 30 32 30 33 38 34 37 11 34 04 36 10 36 00 32 30 90 30 00 30 C7 30 [08:08:51]30 RAPDU: 30 11 30 04 30 10 30 00 30 30 38 30 37 30 34 30 36 30 36 30 32 30 10 30 04 30 04 30 00 38 64 37 1C 34 01 36 00 36 F4 32 03 90 04 00 00 [08:08:51]4A wFMCommunicate OK [08:08:51]94 requested_item fd.num is exist - process it [08:08:51]21 SAM_PROTO_GetFieldsCounters [08:08:51]67 wFMCommunicate request_size=4 [08:08:51]B6 MH_SAM_APDU [08:08:51]04 CAPDU: 01 80 00 13 00 00 EE 30 00 C6 [08:08:51]43 Write to MH i2c: 72 E2 3A 08 9C 00 31 FA [08:08:51]00 80 13 00 00 00 00 00 00 76 [08:08:51]Write i2c OK [08:08:51]MH_I2C_Read... [08:08:51]CommunicateWithHost err = 0 [08:08:51]CheckOFDResponse [08:08:51]1017 (14) - 77093643461234 [08:08:51]1041 (16) - 0000000000874662 [08:08:51]1040 (4) - 72804 [08:08:51]1012 (4) - 30.10.2024 02:04 [08:08:51]1206 (1) - 0 [08:08:51]OFD Sender: Remove packet 72804 [08:08:51]ProducePacketName [08:08:51]name=ofd_packets/00072804 [08:08:51]NVStorageDeleteData [08:08:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:51]Read from MH i2c: E2 [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: E2 62 00 [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 64 1C 01 00 0E 04 04 00 2C 02 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 C1 [08:08:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 64 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:52]wFMCommunicate OK [08:08:52]SAM_PROTO_GetFieldsCounters done [08:08:52]requested_item shift.num is exist - process it [08:08:52]requested_item shift.opened is exist - process it [08:08:52]req_shift_opened [08:08:52]FM_GetShiftState [08:08:52]SAM_PROTO_GetShiftState [08:08:52]wFMCommunicate request_size=4 [08:08:52]MH_SAM_APDU [08:08:52]CAPDU: 80 13 01 00 [08:08:52]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [08:08:52]Write i2c OK [08:08:52]MH_I2C_Read... [08:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:52]Read from MH i2c: E2 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 0E 00 [08:08:52]MH_I2C_Read... [08:08:52]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4A [08:08:52]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:08:52]wFMCommunicate OK [08:08:52]SAM_PROTO_GetShiftState done [08:08:52]FM_GetShiftState done [08:08:52]req_shift_opened done [08:08:52]requested_item shift.open_date is exist - process it [08:08:52]req_shift_open_date [08:08:52]req_shift_open_date done [08:08:52]produce_requested_data done [08:08:52]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72804,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:08:52]process_action_free close_receipt [08:08:52]json_value_free [08:08:52]json_value_free done [08:08:52]process_json_proto returns [08:08:52]Send response to host [08:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72804,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:08:52]free response buf [08:08:52]execute_script done [08:08:52]execute_script returns [08:08:52]free content buf [08:08:52]Sock 9.Close socket [08:08:52]Sock 9.Thread stoped [08:08:52]OFD Sender: No OFD packet to send [08:08:55]recv_with_timeout no data received [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:06]recv_with_timeout no data received [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:35]recv_with_timeout no data received [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:45]recv_with_timeout no data received [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:56]recv_with_timeout no data received [08:09:57]OFD Sender: No OFD packet to send [08:09:58]accept exits with 10 [08:09:58]New connection [08:09:58]New thread 3066645860 created [08:09:58]Thread 3066789220 joined [08:09:58]Waiting for new connection... [08:09:58] Sock 10.Parse request [08:09:58]Sock 10.Check first char [08:09:58]Sock 10.First char is OK [08:09:58]request: POST /json_proto HTTP/1.0 [08:09:58]Method: POST [08:09:58]URL: /json_proto [08:09:58]Method is POST - this is cgi request [08:09:58]url: /json_proto [08:09:58]query_string will be loaded in cgi processing [08:09:58]execute_cgi json_proto POST (null) [08:09:58]execute_cgi path=json_proto method=POST [08:09:58]POST find Content-Length [08:09:58]Host: 172.17.43.195:8080 [08:09:58]Content-Length: 792 [08:09:58]Content-Type: application/json [08:09:58] [08:09:58]POST finish read [08:09:58]Found Content-Length = 792 [08:09:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952359", "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" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:58]execute_script... [08:09: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)952359", "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" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:58]POST & json_proto [08:09:58]process_json_proto [08:09:58]json parsed OK: [08:09:58]protocol is kg_v1.0 [08:09:58]action value=close_receipt [08:09:58]process_action close_receipt [08:09:58]cmd_close_receipt [08:09:58]MH_GetDate [08:09:58]Write to MH i2c: F0 00 00 FC 00 EB [08:09:58]Write i2c OK [08:09:58]MH_I2C_Read... [08:09:58]Read from MH i2c: F0 [08:09:58]MH_I2C_Read... [08:09:58]Read from MH i2c: F0 09 00 [08:09:58]MH_I2C_Read... [08:09:58]Read from MH i2c: F0 09 00 FC 00 00 D6 E9 21 67 74 2C AD 66 EE [08:09:58]GetLastDocTimeStamp 1730275727 [08:09:58]current date 1730275798 [08:09:58]FM_GetShiftState [08:09:58]SAM_PROTO_GetShiftState [08:09:58]wFMCommunicate request_size=4 [08:09:58]MH_SAM_APDU [08:09:58]CAPDU: 80 13 01 00 [08:09:58]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [08:09:58]Write i2c OK [08:09:58]MH_I2C_Read... [08:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:58]Read from MH i2c: E2 [08:09:58]MH_I2C_Read... [08:09:58]Read from MH i2c: E2 0E 00 [08:09:58]MH_I2C_Read... [08:09:58]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4C [08:09:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:09:58]wFMCommunicate OK [08:09:58]SAM_PROTO_GetShiftState done [08:09:58]FM_GetShiftState done [08:09:58]opened in 1730247109 [08:09:58]opened+sec_in_day 1730333509 [08:09:58]quantity*price = 0 [08:09:58]sum+1 = 1 [08:09:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 42 30.10.2024 08:09 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 72805 ФПД: 270285542825344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T080958&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72805&fm=270285542825344&tin=02508201610067®Number=0000000000091644&sum=0 [08:09:59]StoreToDocumentArchive [08:09:59]shift 556 fd 72805 [08:09:59]save to /storage/0556/doc_00072805 [08:09:59]save last doc name /storage/0556/doc_00072805 to /storage/kkm_last_doc_name [08:09:59]save OK [08:09:59]Clear old archive folders... [08:09:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:59]tlvbuf is 011E78E0 [08:09:59]SAM_PROTO_ClearQueue [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 09 00 00 [08:09:59]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [08:09:59]RAPDU: 90 00 [08:09:59]wFMCommunicate OK [08:09:59]SAM_PROTO_ClearQueue done [08:09:59]KKMCreateOFDPacket [08:09:59]OFDProtocolAddRootSTLVToBuf [08:09:59]FM_MakeSignedData [08:09:59]FM_MakeSignedData [08:09:59]SAM_PROTO_SignData [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 0D 01 02 [08:09:59]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [08:09:59]RAPDU: 90 00 [08:09:59]wFMCommunicate OK [08:09:59]wFMCommunicate request_size=255 [08:09:59]MH_SAM_APDU [08:09: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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 D6 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1C 01 00 35 04 06 00 F5 [08:09:59]Write to MH i2c: E2 02 01 0C 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 D6 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1C 01 00 35 04 06 00 F5 00 00 AE [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:00]Read from MH i2c: E2 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 03 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [08:10:00]RAPDU: 90 00 [08:10:00]wFMCommunicate OK [08:10:00]wFMCommunicate request_size=10 [08:10:00]MH_SAM_APDU [08:10:00]CAPDU: 80 0D 02 02 05 D2 C1 C4 9D 80 [08:10:00]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 D2 C1 C4 9D 80 00 00 06 [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:00]Read from MH i2c: E2 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 03 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [08:10:00]RAPDU: 90 00 [08:10:00]wFMCommunicate OK [08:10:00]wFMCommunicate request_size=4 [08:10:00]MH_SAM_APDU [08:10:00]CAPDU: 80 0D 03 02 [08:10:00]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:00]Read from MH i2c: E2 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 0B 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 0B 00 0E 01 00 D0 29 08 A0 94 2C 2E F4 90 00 0E [08:10:00]RAPDU: D0 29 08 A0 94 2C 2E F4 90 00 [08:10:00]wFMCommunicate OK [08:10:00]SAM_PROTO_SignData done [08:10:00]FM_MakeSignedData done [08:10:00]CreateOFDProtocolMessage [08:10:00]wFMCommunicate request_size=4 [08:10:00]MH_SAM_APDU [08:10:00]CAPDU: 80 11 00 00 [08:10:00]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:00]Read from MH i2c: E2 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 17 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [08:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:10:00]wFMCommunicate OK [08:10:00]CreateOFDProtocolMessage done [08:10:00]OFDSenderStorePacket 72805 [08:10:00]StoreOFDPacket docnum=72805 [08:10:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 54 3D 07 01 4E E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 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 2A 00 00 00 F4 03 04 00 D6 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1C 01 00 35 04 06 00 F5 D2 C1 C4 9D 80 D0 29 08 A0 94 2C 2E F4 [08:10:00]CheckFolder [08:10:00]dirname=/storage/ofd_packets [08:10:00]CheckFolder done [08:10:00]ProducePacketName [08:10:00]name=ofd_packets/00072805 [08:10:00]NVStorageSaveData ofd_packets/00072805 [08:10:00]File name is /storage/ofd_packets/00072805 [08:10:00]Write 301 bytes [08:10:00]NVStorageSaveData done [08:10:00]OFDSenderStorePacket done [08:10:00]KKMCreateOFDPacket done [08:10:00]NVStorageSaveData kkm_last_timestamp [08:10:00]File name is /storage/kkm_last_timestamp [08:10:00]Write 4 bytes [08:10:00]NVStorageSaveData done [08:10:00]ExternCall_PrintAddStr [08:10:00]wPrintStart [08:10:00]Write to MH i2c: 01 00 00 10 01 11 [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: 01 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: 01 07 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [08:10:00]RasterBufferAndPrint [08:10:00]line Счет N : (1)952359 [08:10:00]line ИНН: 02508201610067 [08:10:00]line Контрольно-Кассовый Чек [08:10:00]line ПРОДАЖА [08:10:00]line ТРК (МРК, ГНК) : 42 [08:10:00]line Товар: 2710124130 [08:10:00]line Аи-92-К-5 [08:10:00]line 25.000 * 0.00 [08:10:00]line = 0.00 [08:10:00]line НДС 12% НСП 1% [08:10:00]line > о реализуемом товаре [08:10:00]line ИТОГО: 0.00 [08:10:00]line НСП 1% : 0.00 [08:10:00]line НДС 12% : 0.00 [08:10:00]line Наличными: 0.00 [08:10:00]line Безнал.: 0.00 [08:10:00]line Место: АЗС № 113 "Партнер Нефть" [08:10:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:10:00]line СНО: Общий режим [08:10:00]line Чек 42 30.10.2024 08:09 [08:10:00]line Смена: 556 ФФД: 1.0 [08:10:00]line ЗНМ: 0300000087 [08:10:00]line РНМ: 0000000000091644 [08:10:00]line Версия ККМ: 001 [08:10:00]line Талоны: Топливная Карта [08:10:00]line 02645 [08:10:00]line ФМ: 0000000000874662 [08:10:00]line ФД: 72805 [08:10:00]line ФПД: 270285542825344 [08:10:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T080958&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72805&fm=270285542825344&tin=02508201610067®Number=0000000000091644&sum=0 [08:10:00]written 0, free lines is 4095 [08:10:00]OFD Sender: Processing packet 72805 [packets to send 278, broken 277] [08:10:00]ProducePacketName [08:10:00]name=ofd_packets/00072805 [08:10:00]OFD Sender: To server: pG, [08:10:00]CommunicateWithHost lk.salyk.kg:30040 [08:10:00]ConnectInit lk.salyk.kg [08:10:00]Write to MH i2c: 01 00 00 3A 01 3B [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: 01 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: 01 07 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 E9 0C 37 [08:10:00]RasterBufferAndPrint [08:10:00]line [08:10:00]line [08:10:00]line [08:10:00]line [08:10:00]line [08:10:00]written 0, free lines is 3330 [08:10:00]MH_Cut [08:10:00]Write to MH i2c: D1 01 00 41 01 01 14 [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: D1 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: D1 01 00 [08:10:00]MH_I2C_Read... [08:10:00]Read from MH i2c: D1 01 00 41 01 00 13 [08:10:00]Write to MH i2c: 01 00 00 42 01 43 [08:10:00]Write i2c OK [08:10:00]MH_I2C_Read... [08:10:01]*** Cut start [08:10:01]*** Partial cut [08:10:01]*** CUTSNS_PIN = 1 [08:10:01]*** CUTSNS_PIN = 0 [08:10:01]*** Brake cut motor [08:10:02]Read from MH i2c: 01 [08:10:02]MH_I2C_Read... [08:10:02]*** Stop cut motor [08:10:02]*** Cut end [08:10:02]Read from MH i2c: 01 07 00 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [08:10:02]process_action close_receipt done [08:10:02]requested_data is exist [08:10:02]produce_requested_data [08:10:02]requested_item fm.sn is exist - process it [08:10:02]wFMCommunicate request_size=4 [08:10:02]MH_SAM_APDU [08:10:02]CAPDU: 80 11 00 00 [08:10:02]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [08:10:02]Write i2c OK [08:10:02]MH_I2C_Read... [08:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:02]Read from MH i2c: E2 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: E2 17 00 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [08:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:10:02]wFMCommunicate OK [08:10:02]requested_item fd.num is exist - process it [08:10:02]SAM_PROTO_GetFieldsCounters [08:10:02]wFMCommunicate request_size=4 [08:10:02]MH_SAM_APDU [08:10:02]CAPDU: 80 13 00 00 [08:10:02]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [08:10:02]Write i2c OK [08:10:02]MH_I2C_Read... [08:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:02]Read from MH i2c: E2 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: E2 62 00 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 65 1C 01 00 0E 04 04 00 2C 02 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 10 [08:10:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 65 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:02]wFMCommunicate OK [08:10:02]SAM_PROTO_GetFieldsCounters done [08:10:02]requested_item shift.num is exist - process it [08:10:02]requested_item shift.opened is exist - process it [08:10:02]req_shift_opened [08:10:02]FM_GetShiftState [08:10:02]SAM_PROTO_GetShiftState [08:10:02]wFMCommunicate request_size=4 [08:10:02]MH_SAM_APDU [08:10:02]CAPDU: 80 13 01 00 [08:10:02]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [08:10:02]Write i2c OK [08:10:02]MH_I2C_Read... [08:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:02]Read from MH i2c: E2 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: E2 0E 00 [08:10:02]MH_I2C_Read... [08:10:02]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 95 [08:10:02]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:10:02]wFMCommunicate OK [08:10:02]SAM_PROTO_GetShiftState done [08:10:02]FM_GetShiftState done [08:10:02]req_shift_opened done [08:10:02]requested_item shift.open_date is exist - process it [08:10:02]req_shift_open_date [08:10:02]req_shift_open_date done [08:10:02]produce_requested_data done [08:10:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72805,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:10:02]process_action_free close_receipt [08:10:02]json_value_free [08:10:02]json_value_free done [08:10:02]process_json_proto returns [08:10:02]Send response to host [08:10:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72805,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:10:02]free response buf [08:10:02]execute_script done [08:10:02]execute_script returns [08:10:02]free content buf [08:10:02]Sock 10.Close socket [08:10:02]Sock 10.Thread stoped [08:10:03]Connected sock=9 [08:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 54 3D 07 01 4E E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 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 2A 00 00 00 F4 03 04 00 D6 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1C 01 00 35 04 06 00 F5 D2 C1 C4 9D 80 D0 29 08 A0 94 2C 2E F4 [08:10:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C7 79 47 00 4E 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1C 01 00 F4 03 04 00 96 94 21 67 B6 04 01 00 00 7D 2D EA EC DA 35 8A 06 [08:10:07]CommunicateWithHost err = 0 [08:10:07]CheckOFDResponse [08:10:07]1017 (14) - 77093643461234 [08:10:07]1041 (16) - 0000000000874662 [08:10:07]1040 (4) - 72805 [08:10:07]1012 (4) - 30.10.2024 02:06 [08:10:07]1206 (1) - 0 [08:10:07]OFD Sender: Remove packet 72805 [08:10:07]ProducePacketName [08:10:07]name=ofd_packets/00072805 [08:10:07]NVStorageDeleteData [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:27]recv_with_timeout no data received [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:37]recv_with_timeout no data received [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:52]recv_with_timeout no data received [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:00]accept exits with 7 [08:11:00]New connection [08:11:00]New thread 3066789220 created [08:11:00]Thread 3066645860 joined [08:11:00]Waiting for new connection... [08:11:00] Sock 7.Parse request [08:11:00]Sock 7.Check first char [08:11:00]Sock 7.First char is OK [08:11:00]request: POST /json_proto HTTP/1.0 [08:11:00]Method: POST [08:11:00]URL: /json_proto [08:11:00]Method is POST - this is cgi request [08:11:00]url: /json_proto [08:11:00]query_string will be loaded in cgi processing [08:11:00]execute_cgi json_proto POST (null) [08:11:00]execute_cgi path=json_proto method=POST [08:11:00]POST find Content-Length [08:11:00]Host: 172.17.43.195:8080 [08:11:00]Content-Length: 753 [08:11:00]Content-Type: application/json [08:11:00] [08:11:00]POST finish read [08:11:00]Found Content-Length = 753 [08:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145751", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:00]execute_script... [08:11:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145751", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:00]POST & json_proto [08:11:00]process_json_proto [08:11:00]json parsed OK: [08:11:00]protocol is kg_v1.0 [08:11:00]action value=close_receipt [08:11:00]process_action close_receipt [08:11:00]cmd_close_receipt [08:11:00]MH_GetDate [08:11:00]Write to MH i2c: F0 00 00 46 01 36 [08:11:00]Write i2c OK [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: F0 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: F0 09 00 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: F0 09 00 46 01 00 14 EA 21 67 74 2C AD 66 78 [08:11:00]GetLastDocTimeStamp 1730275798 [08:11:00]current date 1730275860 [08:11:00]FM_GetShiftState [08:11:00]SAM_PROTO_GetShiftState [08:11:00]wFMCommunicate request_size=4 [08:11:00]MH_SAM_APDU [08:11:00]CAPDU: 80 13 01 00 [08:11:00]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [08:11:00]Write i2c OK [08:11:00]MH_I2C_Read... [08:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:00]Read from MH i2c: E2 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 0E 00 [08:11:00]MH_I2C_Read... [08:11:00]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 97 [08:11:00]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:11:00]wFMCommunicate OK [08:11:00]SAM_PROTO_GetShiftState done [08:11:00]FM_GetShiftState done [08:11:00]opened in 1730247109 [08:11:00]opened+sec_in_day 1730333509 [08:11:00]quantity*price = 0 [08:11:00]sum+1 = 1 [08:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 43 30.10.2024 08:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145751 ФМ: 0000000000874662 ФД: 72806 ФПД: 208008462093711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T081100&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72806&fm=208008462093711&tin=02508201610067®Number=0000000000091644&sum=0 [08:11:01]StoreToDocumentArchive [08:11:01]shift 556 fd 72806 [08:11:01]save to /storage/0556/doc_00072806 [08:11:01]save last doc name /storage/0556/doc_00072806 to /storage/kkm_last_doc_name [08:11:01]save OK [08:11:01]Clear old archive folders... [08:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:01]tlvbuf is 01145D10 [08:11:01]SAM_PROTO_ClearQueue [08:11:01]wFMCommunicate request_size=4 [08:11:01]MH_SAM_APDU [08:11:01]CAPDU: 80 09 00 00 [08:11:01]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [08:11:01]Write i2c OK [08:11:01]MH_I2C_Read... [08:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:01]Read from MH i2c: E2 [08:11:01]MH_I2C_Read... [08:11:01]Read from MH i2c: E2 03 00 [08:11:01]MH_I2C_Read... [08:11:01]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [08:11:01]RAPDU: 90 00 [08:11:01]wFMCommunicate OK [08:11:01]SAM_PROTO_ClearQueue done [08:11:01]KKMCreateOFDPacket [08:11:01]OFDProtocolAddRootSTLVToBuf [08:11:01]FM_MakeSignedData [08:11:01]FM_MakeSignedData [08:11:01]SAM_PROTO_SignData [08:11:01]wFMCommunicate request_size=4 [08:11:01]MH_SAM_APDU [08:11:01]CAPDU: 80 0D 01 02 [08:11:01]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [08:11:01]Write i2c OK [08:11:01]MH_I2C_Read... [08:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:01]Read from MH i2c: E2 [08:11:01]MH_I2C_Read... [08:11:01]Read from MH i2c: E2 03 00 [08:11:01]MH_I2C_Read... [08:11:01]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [08:11:01]RAPDU: 90 00 [08:11:01]wFMCommunicate OK [08:11:01]wFMCommunicate request_size=255 [08:11:01]MH_SAM_APDU [08:11:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 14 EA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1C 01 00 35 04 06 00 BD [08:11:01]Write to MH i2c: E2 02 01 56 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 14 EA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1C 01 00 35 04 06 00 BD 00 00 93 [08:11:01]Write i2c OK [08:11:01]MH_I2C_Read... [08:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:02]Read from MH i2c: E2 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: E2 03 00 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [08:11:02]RAPDU: 90 00 [08:11:02]wFMCommunicate OK [08:11:02]wFMCommunicate request_size=10 [08:11:02]MH_SAM_APDU [08:11:02]CAPDU: 80 0D 02 02 05 2E BE 7E 4D 8F [08:11:02]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 2E BE 7E 4D 8F 00 00 22 [08:11:02]Write i2c OK [08:11:02]MH_I2C_Read... [08:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:02]Read from MH i2c: E2 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: E2 03 00 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [08:11:02]RAPDU: 90 00 [08:11:02]wFMCommunicate OK [08:11:02]wFMCommunicate request_size=4 [08:11:02]MH_SAM_APDU [08:11:02]CAPDU: 80 0D 03 02 [08:11:02]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [08:11:02]Write i2c OK [08:11:02]MH_I2C_Read... [08:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:02]Read from MH i2c: E2 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: E2 0B 00 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: E2 0B 00 58 01 00 EA BE 1F 0F 7A 41 FE F3 90 00 57 [08:11:02]RAPDU: EA BE 1F 0F 7A 41 FE F3 90 00 [08:11:02]wFMCommunicate OK [08:11:02]SAM_PROTO_SignData done [08:11:02]FM_MakeSignedData done [08:11:02]CreateOFDProtocolMessage [08:11:02]wFMCommunicate request_size=4 [08:11:02]MH_SAM_APDU [08:11:02]CAPDU: 80 11 00 00 [08:11:02]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [08:11:02]Write i2c OK [08:11:02]MH_I2C_Read... [08:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:02]Read from MH i2c: E2 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: E2 17 00 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [08:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:11:02]wFMCommunicate OK [08:11:02]CreateOFDProtocolMessage done [08:11:02]OFDSenderStorePacket 72806 [08:11:02]StoreOFDPacket docnum=72806 [08:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 42 59 07 01 EE FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 14 EA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1C 01 00 35 04 06 00 BD 2E BE 7E 4D 8F EA BE 1F 0F 7A 41 FE F3 [08:11:02]CheckFolder [08:11:02]dirname=/storage/ofd_packets [08:11:02]CheckFolder done [08:11:02]ProducePacketName [08:11:02]name=ofd_packets/00072806 [08:11:02]NVStorageSaveData ofd_packets/00072806 [08:11:02]File name is /storage/ofd_packets/00072806 [08:11:02]Write 301 bytes [08:11:02]NVStorageSaveData done [08:11:02]OFDSenderStorePacket done [08:11:02]KKMCreateOFDPacket done [08:11:02]NVStorageSaveData kkm_last_timestamp [08:11:02]File name is /storage/kkm_last_timestamp [08:11:02]Write 4 bytes [08:11:02]NVStorageSaveData done [08:11:02]ExternCall_PrintAddStr [08:11:02]wPrintStart [08:11:02]Write to MH i2c: 01 00 00 5A 01 5B [08:11:02]OFD Sender: Processing packet 72806 [packets to send 278, broken 277] [08:11:02]ProducePacketName [08:11:02]name=ofd_packets/00072806 [08:11:02]OFD Sender: To server: pG, [08:11:02]CommunicateWithHost lk.salyk.kg:30040 [08:11:02]ConnectInit lk.salyk.kg [08:11:02]Write i2c OK [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: 01 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: 01 07 00 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [08:11:02]RasterBufferAndPrint [08:11:02]line Счет N : (1)952360 [08:11:02]line ИНН: 02508201610067 [08:11:02]line Контрольно-Кассовый Чек [08:11:02]line ПРОДАЖА [08:11:02]line ТРК (МРК, ГНК) : 63 [08:11:02]line Товар: 2710124130 [08:11:02]line Аи-92-К-5 [08:11:02]line 5.000 * 0.00 [08:11:02]line = 0.00 [08:11:02]line НДС 12% НСП 1% [08:11:02]line > о реализуемом товаре [08:11:02]line ИТОГО: 0.00 [08:11:02]line НСП 1% : 0.00 [08:11:02]line НДС 12% : 0.00 [08:11:02]line Наличными: 0.00 [08:11:02]line Безнал.: 0.00 [08:11:02]line Место: АЗС № 113 "Партнер Нефть" [08:11:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:11:02]line СНО: Общий режим [08:11:02]line Чек 43 30.10.2024 08:11 [08:11:02]line Смена: 556 ФФД: 1.0 [08:11:02]line ЗНМ: 0300000087 [08:11:02]line РНМ: 0000000000091644 [08:11:02]line Версия ККМ: 001 [08:11:02]line Талоны: ТК ГПНА Online [08:11:02]line 30145751 [08:11:02]line ФМ: 0000000000874662 [08:11:02]line ФД: 72806 [08:11:02]line ФПД: 208008462093711 [08:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T081100&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72806&fm=208008462093711&tin=02508201610067®Number=0000000000091644&sum=0 [08:11:02]written 0, free lines is 4095 [08:11:02]Write to MH i2c: 01 00 00 84 01 85 [08:11:02]Write i2c OK [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: 01 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: 01 07 00 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 E8 0C 80 [08:11:02]RasterBufferAndPrint [08:11:02]line [08:11:02]line [08:11:02]line [08:11:02]line [08:11:02]line [08:11:02]written 0, free lines is 3316 [08:11:02]MH_Cut [08:11:02]Write to MH i2c: D1 01 00 8B 01 01 5E [08:11:02]Write i2c OK [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: D1 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: D1 01 00 [08:11:02]MH_I2C_Read... [08:11:02]Read from MH i2c: D1 01 00 8B 01 00 5D [08:11:02]Write to MH i2c: 01 00 00 8C 01 8D [08:11:02]Write i2c OK [08:11:02]MH_I2C_Read... [08:11:03]*** Cut start [08:11:03]*** Partial cut [08:11:03]*** CUTSNS_PIN = 1 [08:11:03]*** CUTSNS_PIN = 0 [08:11:03]*** Brake cut motor [08:11:04]Read from MH i2c: 01 [08:11:04]MH_I2C_Read... [08:11:04]*** Stop cut motor [08:11:04]*** Cut end [08:11:04]Read from MH i2c: 01 07 00 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [08:11:04]process_action close_receipt done [08:11:04]requested_data is exist [08:11:04]produce_requested_data [08:11:04]requested_item fm.sn is exist - process it [08:11:04]wFMCommunicate request_size=4 [08:11:04]MH_SAM_APDU [08:11:04]CAPDU: 80 11 00 00 [08:11:04]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:04]Read from MH i2c: E2 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 17 00 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [08:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:11:04]wFMCommunicate OK [08:11:04]requested_item fd.num is exist - process it [08:11:04]SAM_PROTO_GetFieldsCounters [08:11:04]wFMCommunicate request_size=4 [08:11:04]MH_SAM_APDU [08:11:04]CAPDU: 80 13 00 00 [08:11:04]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:04]Read from MH i2c: E2 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 62 00 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 66 1C 01 00 0E 04 04 00 2C 02 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 5E [08:11:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 66 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:04]wFMCommunicate OK [08:11:04]SAM_PROTO_GetFieldsCounters done [08:11:04]requested_item shift.num is exist - process it [08:11:04]requested_item shift.opened is exist - process it [08:11:04]req_shift_opened [08:11:04]FM_GetShiftState [08:11:04]SAM_PROTO_GetShiftState [08:11:04]wFMCommunicate request_size=4 [08:11:04]MH_SAM_APDU [08:11:04]CAPDU: 80 13 01 00 [08:11:04]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [08:11:04]Write i2c OK [08:11:04]MH_I2C_Read... [08:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:04]Read from MH i2c: E2 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 0E 00 [08:11:04]MH_I2C_Read... [08:11:04]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 DF [08:11:04]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:11:04]wFMCommunicate OK [08:11:04]SAM_PROTO_GetShiftState done [08:11:04]FM_GetShiftState done [08:11:04]req_shift_opened done [08:11:04]requested_item shift.open_date is exist - process it [08:11:04]req_shift_open_date [08:11:04]req_shift_open_date done [08:11:04]produce_requested_data done [08:11:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72806,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:11:04]process_action_free close_receipt [08:11:04]json_value_free [08:11:04]json_value_free done [08:11:04]process_json_proto returns [08:11:04]Send response to host [08:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72806,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:11:04]free response buf [08:11:04]execute_script done [08:11:04]execute_script returns [08:11:04]free content buf [08:11:04]Sock 7.Close socket [08:11:04]Sock 7.Thread stoped [08:11:06]recv_with_timeout no data received [08:11:07]ConnectInit Can't take IP for lk.salyk.kg [08:11:07]CommunicateWithHost connect error [08:11:07]CommunicateWithHost err = -1 [08:11:07]OFD Sender: Server communicate error [08:11:12]OFD Sender: Processing packet 72806 [packets to send 278, broken 277] [08:11:12]ProducePacketName [08:11:12]name=ofd_packets/00072806 [08:11:12]OFD Sender: To server: pG, [08:11:12]CommunicateWithHost lk.salyk.kg:30040 [08:11:12]ConnectInit lk.salyk.kg [08:11:21]recv_with_timeout no data received [08:11:30]Connected sock=9 [08:11:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 42 59 07 01 EE FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 14 EA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1C 01 00 35 04 06 00 BD 2E BE 7E 4D 8F EA BE 1F 0F 7A 41 FE F3 [08:11:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 01 1C 47 00 FF 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1C 01 00 F4 03 04 00 EE 94 21 67 B6 04 01 00 00 27 72 74 AE 75 0F 47 8A [08:11:35]CommunicateWithHost err = 0 [08:11:35]CheckOFDResponse [08:11:35]1017 (14) - 77093643461234 [08:11:35]1041 (16) - 0000000000874662 [08:11:35]1040 (4) - 72806 [08:11:35]1012 (4) - 30.10.2024 02:07 [08:11:35]1206 (1) - 0 [08:11:35]OFD Sender: Remove packet 72806 [08:11:35]ProducePacketName [08:11:35]name=ofd_packets/00072806 [08:11:35]NVStorageDeleteData [08:11:36]OFD Sender: No OFD packet to send [08:11:38]recv_with_timeout no data received [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:11:56]recv_with_timeout no data received [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:13]recv_with_timeout no data received [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:30]recv_with_timeout no data received [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:28]recv_with_timeout no data received [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:13:58]recv_with_timeout no data received [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:14:57]recv_with_timeout no data received [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:24]recv_with_timeout no data received [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]recv_with_timeout no data received [08:15:41]OFD Sender: No OFD packet to send [08:15:42]accept exits with 10 [08:15:42]New connection [08:15:42]New thread 3066645860 created [08:15:42]Thread 3066789220 joined [08:15:42]Waiting for new connection... [08:15:42] Sock 10.Parse request [08:15:42]Sock 10.Check first char [08:15:42]Sock 10.First char is OK [08:15:42]request: POST /json_proto HTTP/1.0 [08:15:42]Method: POST [08:15:42]URL: /json_proto [08:15:42]Method is POST - this is cgi request [08:15:42]url: /json_proto [08:15:42]query_string will be loaded in cgi processing [08:15:42]execute_cgi json_proto POST (null) [08:15:42]execute_cgi path=json_proto method=POST [08:15:42]POST find Content-Length [08:15:42]Host: 172.17.43.195:8080 [08:15:42]Content-Length: 792 [08:15:42]Content-Type: application/json [08:15:42] [08:15:42]POST finish read [08:15:42]Found Content-Length = 792 [08:15:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:42]execute_script... [08:15:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:42]POST & json_proto [08:15:42]process_json_proto [08:15:42]json parsed OK: [08:15:42]protocol is kg_v1.0 [08:15:42]action value=close_receipt [08:15:42]process_action close_receipt [08:15:42]cmd_close_receipt [08:15:42]MH_GetDate [08:15:42]Write to MH i2c: F0 00 00 90 01 80 [08:15:42]Write i2c OK [08:15:42]MH_I2C_Read... [08:15:42]Read from MH i2c: F0 [08:15:42]MH_I2C_Read... [08:15:42]Read from MH i2c: F0 09 00 [08:15:42]MH_I2C_Read... [08:15:42]Read from MH i2c: F0 09 00 90 01 00 2E EB 21 67 74 2C AD 66 DD [08:15:42]GetLastDocTimeStamp 1730275860 [08:15:42]current date 1730276142 [08:15:42]FM_GetShiftState [08:15:42]SAM_PROTO_GetShiftState [08:15:42]wFMCommunicate request_size=4 [08:15:42]MH_SAM_APDU [08:15:42]CAPDU: 80 13 01 00 [08:15:42]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [08:15:42]Write i2c OK [08:15:42]MH_I2C_Read... [08:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:42]Read from MH i2c: E2 [08:15:42]MH_I2C_Read... [08:15:42]Read from MH i2c: E2 0E 00 [08:15:42]MH_I2C_Read... [08:15:42]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E1 [08:15:42]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:15:42]wFMCommunicate OK [08:15:42]SAM_PROTO_GetShiftState done [08:15:42]FM_GetShiftState done [08:15:42]opened in 1730247109 [08:15:42]opened+sec_in_day 1730333509 [08:15:42]quantity*price = 0 [08:15:42]sum+1 = 1 [08:15:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 44 30.10.2024 08:15 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72807 ФПД: 269847032751603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T081542&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72807&fm=269847032751603&tin=02508201610067®Number=0000000000091644&sum=0 [08:15:43]StoreToDocumentArchive [08:15:43]shift 556 fd 72807 [08:15:43]save to /storage/0556/doc_00072807 [08:15:43]save last doc name /storage/0556/doc_00072807 to /storage/kkm_last_doc_name [08:15:43]save OK [08:15:43]Clear old archive folders... [08:15:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:43]tlvbuf is 011E2B10 [08:15:43]SAM_PROTO_ClearQueue [08:15:43]wFMCommunicate request_size=4 [08:15:43]MH_SAM_APDU [08:15:43]CAPDU: 80 09 00 00 [08:15:43]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [08:15:43]Write i2c OK [08:15:43]MH_I2C_Read... [08:15:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:43]Read from MH i2c: E2 [08:15:43]MH_I2C_Read... [08:15:43]Read from MH i2c: E2 03 00 [08:15:43]MH_I2C_Read... [08:15:43]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [08:15:43]RAPDU: 90 00 [08:15:43]wFMCommunicate OK [08:15:43]SAM_PROTO_ClearQueue done [08:15:43]KKMCreateOFDPacket [08:15:43]OFDProtocolAddRootSTLVToBuf [08:15:43]FM_MakeSignedData [08:15:43]FM_MakeSignedData [08:15:43]SAM_PROTO_SignData [08:15:43]wFMCommunicate request_size=4 [08:15:43]MH_SAM_APDU [08:15:43]CAPDU: 80 0D 01 02 [08:15:43]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [08:15:43]Write i2c OK [08:15:43]MH_I2C_Read... [08:15:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:43]Read from MH i2c: E2 [08:15:43]MH_I2C_Read... [08:15:43]Read from MH i2c: E2 03 00 [08:15:43]MH_I2C_Read... [08:15:43]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [08:15:43]RAPDU: 90 00 [08:15:43]wFMCommunicate OK [08:15:43]wFMCommunicate request_size=255 [08:15:43]MH_SAM_APDU [08:15:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 2C 00 00 00 F4 03 04 00 2E EB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 67 1C 01 00 35 04 06 00 F5 [08:15:43]Write to MH i2c: E2 02 01 A0 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 98 3A 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 2C 00 00 00 F4 03 04 00 2E EB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 67 1C 01 00 35 04 06 00 F5 00 00 69 [08:15:43]Write i2c OK [08:15:43]MH_I2C_Read... [08:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:44]Read from MH i2c: E2 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 03 00 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [08:15:44]RAPDU: 90 00 [08:15:44]wFMCommunicate OK [08:15:44]wFMCommunicate request_size=10 [08:15:44]MH_SAM_APDU [08:15:44]CAPDU: 80 0D 02 02 05 6C A8 87 E5 F3 [08:15:44]Write to MH i2c: E2 0D 00 A1 01 80 0D 02 02 05 00 6C A8 87 E5 F3 00 00 99 [08:15:44]Write i2c OK [08:15:44]MH_I2C_Read... [08:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:44]Read from MH i2c: E2 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 03 00 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [08:15:44]RAPDU: 90 00 [08:15:44]wFMCommunicate OK [08:15:44]wFMCommunicate request_size=4 [08:15:44]MH_SAM_APDU [08:15:44]CAPDU: 80 0D 03 02 [08:15:44]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [08:15:44]Write i2c OK [08:15:44]MH_I2C_Read... [08:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:44]Read from MH i2c: E2 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 0B 00 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 0B 00 A2 01 00 B8 CF 8D 70 64 E9 E0 E7 90 00 B7 [08:15:44]RAPDU: B8 CF 8D 70 64 E9 E0 E7 90 00 [08:15:44]wFMCommunicate OK [08:15:44]SAM_PROTO_SignData done [08:15:44]FM_MakeSignedData done [08:15:44]CreateOFDProtocolMessage [08:15:44]wFMCommunicate request_size=4 [08:15:44]MH_SAM_APDU [08:15:44]CAPDU: 80 11 00 00 [08:15:44]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [08:15:44]Write i2c OK [08:15:44]MH_I2C_Read... [08:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:44]Read from MH i2c: E2 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 17 00 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 72 [08:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:15:44]wFMCommunicate OK [08:15:44]CreateOFDProtocolMessage done [08:15:44]OFDSenderStorePacket 72807 [08:15:44]StoreOFDPacket docnum=72807 [08:15:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 15 92 07 01 19 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 2C 00 00 00 F4 03 04 00 2E EB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 67 1C 01 00 35 04 06 00 F5 6C A8 87 E5 F3 B8 CF 8D 70 64 E9 E0 E7 [08:15:44]CheckFolder [08:15:44]dirname=/storage/ofd_packets [08:15:44]CheckFolder done [08:15:44]ProducePacketName [08:15:44]name=ofd_packets/00072807 [08:15:44]NVStorageSaveData ofd_packets/00072807 [08:15:44]File name is /storage/ofd_packets/00072807 [08:15:44]Write 301 bytes [08:15:44]NVStorageSaveData done [08:15:44]OFDSenderStorePacket done [08:15:44]KKMCreateOFDPacket done [08:15:44]NVStorageSaveData kkm_last_timestamp [08:15:44]File name is /storage/kkm_last_timestamp [08:15:44]Write 4 bytes [08:15:44]NVStorageSaveData done [08:15:44]ExternCall_PrintAddStr [08:15:44]wPrintStart [08:15:44]Write to MH i2c: 01 00 00 A4 01 A5 [08:15:44]Write i2c OK [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: 01 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: 01 07 00 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [08:15:44]RasterBufferAndPrint [08:15:44]line Счет N : (1)952363 [08:15:44]line ИНН: 02508201610067 [08:15:44]line Контрольно-Кассовый Чек [08:15:44]line ПРОДАЖА [08:15:44]line ТРК (МРК, ГНК) : 63 [08:15:44]line Товар: 2710124130 [08:15:44]line Аи-92-К-5 [08:15:44]line 15.000 * 0.00 [08:15:44]line = 0.00 [08:15:44]line НДС 12% НСП 1% [08:15:44]line > о реализуемом товаре [08:15:44]line ИТОГО: 0.00 [08:15:44]line НСП 1% : 0.00 [08:15:44]line НДС 12% : 0.00 [08:15:44]line Наличными: 0.00 [08:15:44]line Безнал.: 0.00 [08:15:44]line Место: АЗС № 113 "Партнер Нефть" [08:15:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:15:44]line СНО: Общий режим [08:15:44]line Чек 44 30.10.2024 08:15 [08:15:44]line Смена: 556 ФФД: 1.0 [08:15:44]line ЗНМ: 0300000087 [08:15:44]line РНМ: 0000000000091644 [08:15:44]line Версия ККМ: 001 [08:15:44]line Талоны: Топливная Карта [08:15:44]line 03047 [08:15:44]line ФМ: 0000000000874662 [08:15:44]line ФД: 72807 [08:15:44]line ФПД: 269847032751603 [08:15:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T081542&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72807&fm=269847032751603&tin=02508201610067®Number=0000000000091644&sum=0 [08:15:44]written 0, free lines is 4095 [08:15:44]OFD Sender: Processing packet 72807 [packets to send 278, broken 277] [08:15:44]ProducePacketName [08:15:44]name=ofd_packets/00072807 [08:15:44]OFD Sender: To server: pG, [08:15:44]CommunicateWithHost lk.salyk.kg:30040 [08:15:44]ConnectInit lk.salyk.kg [08:15:44]Write to MH i2c: 01 00 00 CE 01 CF [08:15:44]Write i2c OK [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: 01 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: 01 07 00 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 E0 0C C2 [08:15:44]RasterBufferAndPrint [08:15:44]line [08:15:44]line [08:15:44]line [08:15:44]line [08:15:44]line [08:15:44]written 0, free lines is 3302 [08:15:44]MH_Cut [08:15:44]Write to MH i2c: D1 01 00 D5 01 01 A8 [08:15:44]Write i2c OK [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: D1 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: D1 01 00 [08:15:44]MH_I2C_Read... [08:15:44]Read from MH i2c: D1 01 00 D5 01 00 A7 [08:15:44]Write to MH i2c: 01 00 00 D6 01 D7 [08:15:44]Write i2c OK [08:15:44]MH_I2C_Read... [08:15:45]Connected sock=9 [08:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 15 92 07 01 19 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 2C 00 00 00 F4 03 04 00 2E EB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 67 1C 01 00 35 04 06 00 F5 6C A8 87 E5 F3 B8 CF 8D 70 64 E9 E0 E7 [08:15:45]*** Cut start [08:15:45]*** Partial cut [08:15:45]*** CUTSNS_PIN = 1 [08:15:45]*** CUTSNS_PIN = 0 [08:15:45]*** Brake cut motor [08:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 29 4A 47 00 37 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 67 1C 01 00 F4 03 04 00 E8 95 21 67 B6 04 01 00 00 F0 67 54 4F B7 42 09 76 [08:15:45]CommunicateWithHost err = 0 [08:15:45]CheckOFDResponse [08:15:45]1017 (14) - 77093643461234 [08:15:45]1041 (16) - 0000000000874662 [08:15:45]1040 (4) - 72807 [08:15:45]1012 (4) - 30.10.2024 02:11 [08:15:45]1206 (1) - 0 [08:15:45]OFD Sender: Remove packet 72807 [08:15:45]ProducePacketName [08:15:45]name=ofd_packets/00072807 [08:15:45]NVStorageDeleteData [08:15:46]Read from MH i2c: 01 [08:15:46]MH_I2C_Read... [08:15:46]*** Stop cut motor [08:15:46]*** Cut end [08:15:46]Read from MH i2c: 01 07 00 [08:15:46]MH_I2C_Read... [08:15:46]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [08:15:46]process_action close_receipt done [08:15:46]requested_data is exist [08:15:46]produce_requested_data [08:15:46]requested_item fm.sn is exist - process it [08:15:46]wFMCommunicate request_size=4 [08:15:46]MH_SAM_APDU [08:15:46]CAPDU: 80 11 00 00 [08:15:46]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [08:15:46]Write i2c OK [08:15:46]MH_I2C_Read... [08:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:46]Read from MH i2c: E2 [08:15:46]MH_I2C_Read... [08:15:46]Read from MH i2c: E2 17 00 [08:15:46]MH_I2C_Read... [08:15:46]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [08:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:15:46]wFMCommunicate OK [08:15:46]requested_item fd.num is exist - process it [08:15:46]SAM_PROTO_GetFieldsCounters [08:15:46]wFMCommunicate request_size=4 [08:15:46]MH_SAM_APDU [08:15:46]CAPDU: 80 13 00 00 [08:15:46]Write to MH i2c: E2 08 00 D8 01 80 13 00 00 00 00 00 00 55 [08:15:46]Write i2c OK [08:15:46]MH_I2C_Read... [08:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:46]Read from MH i2c: E2 [08:15:46]MH_I2C_Read... [08:15:46]Read from MH i2c: E2 62 00 [08:15:46]MH_I2C_Read... [08:15:46]Read from MH i2c: E2 62 00 D8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 67 1C 01 00 0E 04 04 00 2C 02 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 AC [08:15:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 67 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:46]wFMCommunicate OK [08:15:46]SAM_PROTO_GetFieldsCounters done [08:15:46]requested_item shift.num is exist - process it [08:15:46]requested_item shift.opened is exist - process it [08:15:46]req_shift_opened [08:15:46]FM_GetShiftState [08:15:46]SAM_PROTO_GetShiftState [08:15:46]wFMCommunicate request_size=4 [08:15:46]MH_SAM_APDU [08:15:46]CAPDU: 80 13 01 00 [08:15:46]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [08:15:46]Write i2c OK [08:15:46]MH_I2C_Read... [08:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:46]OFD Sender: No OFD packet to send [08:15:46]Read from MH i2c: E2 [08:15:46]MH_I2C_Read... [08:15:46]Read from MH i2c: E2 0E 00 [08:15:46]MH_I2C_Read... [08:15:46]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 29 [08:15:46]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:15:46]wFMCommunicate OK [08:15:46]SAM_PROTO_GetShiftState done [08:15:46]FM_GetShiftState done [08:15:46]req_shift_opened done [08:15:46]requested_item shift.open_date is exist - process it [08:15:46]req_shift_open_date [08:15:46]req_shift_open_date done [08:15:46]produce_requested_data done [08:15:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72807,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:15:46]process_action_free close_receipt [08:15:46]json_value_free [08:15:46]json_value_free done [08:15:46]process_json_proto returns [08:15:46]Send response to host [08:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72807,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:15:46]free response buf [08:15:46]execute_script done [08:15:46]execute_script returns [08:15:46]free content buf [08:15:46]Sock 10.Close socket [08:15:46]Sock 10.Thread stoped [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:08]recv_with_timeout no data received [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:53]recv_with_timeout no data received [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:16]recv_with_timeout no data received [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:27]recv_with_timeout no data received [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:19:59]recv_with_timeout no data received [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:39]recv_with_timeout no data received [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:33]accept exits with 7 [08:27:33]New connection [08:27:33]New thread 3066789220 created [08:27:33]Thread 3066645860 joined [08:27:33]Waiting for new connection... [08:27:33] Sock 7.Parse request [08:27:33]Sock 7.Check first char [08:27:33]Sock 7.First char is OK [08:27:33]request: POST /json_proto HTTP/1.0 [08:27:33]Method: POST [08:27:33]URL: /json_proto [08:27:33]Method is POST - this is cgi request [08:27:33]url: /json_proto [08:27:33]query_string will be loaded in cgi processing [08:27:33]execute_cgi json_proto POST (null) [08:27:33]execute_cgi path=json_proto method=POST [08:27:33]POST find Content-Length [08:27:33]Host: 172.17.43.195:8080 [08:27:33]Content-Length: 792 [08:27:33]Content-Type: application/json [08:27:33] [08:27:33]POST finish read [08:27:33]Found Content-Length = 792 [08:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:33]execute_script... [08:27:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:33]POST & json_proto [08:27:33]process_json_proto [08:27:33]json parsed OK: [08:27:33]protocol is kg_v1.0 [08:27:33]action value=close_receipt [08:27:33]process_action close_receipt [08:27:33]cmd_close_receipt [08:27:33]MH_GetDate [08:27:33]Write to MH i2c: F0 00 00 DA 01 CA [08:27:33]Write i2c OK [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: F0 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: F0 09 00 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: F0 09 00 DA 01 00 F5 ED 21 67 74 2C AD 66 F0 [08:27:33]GetLastDocTimeStamp 1730276142 [08:27:33]current date 1730276853 [08:27:33]FM_GetShiftState [08:27:33]SAM_PROTO_GetShiftState [08:27:33]wFMCommunicate request_size=4 [08:27:33]MH_SAM_APDU [08:27:33]CAPDU: 80 13 01 00 [08:27:33]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [08:27:33]Write i2c OK [08:27:33]MH_I2C_Read... [08:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:33]Read from MH i2c: E2 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: E2 0E 00 [08:27:33]MH_I2C_Read... [08:27:33]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 2B [08:27:33]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:27:33]wFMCommunicate OK [08:27:33]SAM_PROTO_GetShiftState done [08:27:33]FM_GetShiftState done [08:27:33]opened in 1730247109 [08:27:33]opened+sec_in_day 1730333509 [08:27:33]quantity*price = 0 [08:27:33]sum+1 = 1 [08:27:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 45 30.10.2024 08:27 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72808 ФПД: 27563198785747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082733&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72808&fm=27563198785747&tin=02508201610067®Number=0000000000091644&sum=0 [08:27:34]StoreToDocumentArchive [08:27:34]shift 556 fd 72808 [08:27:34]save to /storage/0556/doc_00072808 [08:27:34]save last doc name /storage/0556/doc_00072808 to /storage/kkm_last_doc_name [08:27:34]save OK [08:27:34]Clear old archive folders... [08:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:34]tlvbuf is 01140BC0 [08:27:34]SAM_PROTO_ClearQueue [08:27:34]wFMCommunicate request_size=4 [08:27:34]MH_SAM_APDU [08:27:34]CAPDU: 80 09 00 00 [08:27:34]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [08:27:34]Write i2c OK [08:27:34]MH_I2C_Read... [08:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:34]Read from MH i2c: E2 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 03 00 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [08:27:34]RAPDU: 90 00 [08:27:34]wFMCommunicate OK [08:27:34]SAM_PROTO_ClearQueue done [08:27:34]KKMCreateOFDPacket [08:27:34]OFDProtocolAddRootSTLVToBuf [08:27:34]FM_MakeSignedData [08:27:34]FM_MakeSignedData [08:27:34]SAM_PROTO_SignData [08:27:34]wFMCommunicate request_size=4 [08:27:34]MH_SAM_APDU [08:27:34]CAPDU: 80 0D 01 02 [08:27:34]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [08:27:34]Write i2c OK [08:27:34]MH_I2C_Read... [08:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:34]Read from MH i2c: E2 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 03 00 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [08:27:34]RAPDU: 90 00 [08:27:34]wFMCommunicate OK [08:27:34]wFMCommunicate request_size=255 [08:27:34]MH_SAM_APDU [08:27: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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 F5 ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1C 01 00 35 04 06 00 19 [08:27:34]Write to MH i2c: E2 02 01 EA 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 F5 ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1C 01 00 35 04 06 00 19 00 00 D9 [08:27:34]Write i2c OK [08:27:34]MH_I2C_Read... [08:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:34]Read from MH i2c: E2 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 03 00 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [08:27:34]RAPDU: 90 00 [08:27:34]wFMCommunicate OK [08:27:34]wFMCommunicate request_size=10 [08:27:34]MH_SAM_APDU [08:27:34]CAPDU: 80 0D 02 02 05 11 8E AC 28 D3 [08:27:34]Write to MH i2c: E2 0D 00 EB 01 80 0D 02 02 05 00 11 8E AC 28 D3 00 00 B6 [08:27:34]Write i2c OK [08:27:34]MH_I2C_Read... [08:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:34]Read from MH i2c: E2 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 03 00 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [08:27:34]RAPDU: 90 00 [08:27:34]wFMCommunicate OK [08:27:34]wFMCommunicate request_size=4 [08:27:34]MH_SAM_APDU [08:27:34]CAPDU: 80 0D 03 02 [08:27:34]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [08:27:34]Write i2c OK [08:27:34]MH_I2C_Read... [08:27:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:34]Read from MH i2c: E2 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 0B 00 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 0B 00 EC 01 00 F5 2E CF CB A0 E3 98 90 90 00 D1 [08:27:34]RAPDU: F5 2E CF CB A0 E3 98 90 90 00 [08:27:34]wFMCommunicate OK [08:27:34]SAM_PROTO_SignData done [08:27:34]FM_MakeSignedData done [08:27:34]CreateOFDProtocolMessage [08:27:34]wFMCommunicate request_size=4 [08:27:34]MH_SAM_APDU [08:27:34]CAPDU: 80 11 00 00 [08:27:34]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [08:27:34]Write i2c OK [08:27:34]MH_I2C_Read... [08:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:34]Read from MH i2c: E2 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 17 00 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BC [08:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:27:34]wFMCommunicate OK [08:27:34]CreateOFDProtocolMessage done [08:27:34]OFDSenderStorePacket 72808 [08:27:34]StoreOFDPacket docnum=72808 [08:27:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 21 EB 07 01 01 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 F5 ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1C 01 00 35 04 06 00 19 11 8E AC 28 D3 F5 2E CF CB A0 E3 98 90 [08:27:34]CheckFolder [08:27:34]dirname=/storage/ofd_packets [08:27:34]CheckFolder done [08:27:34]ProducePacketName [08:27:34]name=ofd_packets/00072808 [08:27:34]NVStorageSaveData ofd_packets/00072808 [08:27:34]File name is /storage/ofd_packets/00072808 [08:27:34]Write 301 bytes [08:27:34]NVStorageSaveData done [08:27:34]OFDSenderStorePacket done [08:27:34]KKMCreateOFDPacket done [08:27:34]NVStorageSaveData kkm_last_timestamp [08:27:34]File name is /storage/kkm_last_timestamp [08:27:34]Write 4 bytes [08:27:34]NVStorageSaveData done [08:27:34]ExternCall_PrintAddStr [08:27:34]wPrintStart [08:27:34]Write to MH i2c: 01 00 00 EE 01 EF [08:27:34]Write i2c OK [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: 01 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: 01 07 00 [08:27:34]MH_I2C_Read... [08:27:34]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [08:27:34]RasterBufferAndPrint [08:27:34]line Счет N : (1)952364 [08:27:34]line ИНН: 02508201610067 [08:27:34]line Контрольно-Кассовый Чек [08:27:34]line ПРОДАЖА [08:27:34]line ТРК (МРК, ГНК) : 53 [08:27:34]line Товар: 2710124130 [08:27:34]line Аи-92-К-5 [08:27:34]line 25.000 * 0.00 [08:27:34]line = 0.00 [08:27:34]line НДС 12% НСП 1% [08:27:34]line > о реализуемом товаре [08:27:34]line ИТОГО: 0.00 [08:27:34]line НСП 1% : 0.00 [08:27:34]line НДС 12% : 0.00 [08:27:34]line Наличными: 0.00 [08:27:34]line Безнал.: 0.00 [08:27:34]line Место: АЗС № 113 "Партнер Нефть" [08:27:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:27:34]line СНО: Общий режим [08:27:34]line Чек 45 30.10.2024 08:27 [08:27:34]line Смена: 556 ФФД: 1.0 [08:27:34]line ЗНМ: 0300000087 [08:27:34]line РНМ: 0000000000091644 [08:27:34]line Версия ККМ: 001 [08:27:34]line Талоны: Топливная Карта [08:27:34]line 03047 [08:27:34]line ФМ: 0000000000874662 [08:27:34]line ФД: 72808 [08:27:34]line ФПД: 27563198785747 [08:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082733&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72808&fm=27563198785747&tin=02508201610067®Number=0000000000091644&sum=0 [08:27:34]written 0, free lines is 4095 [08:27:34]OFD Sender: Processing packet 72808 [packets to send 278, broken 277] [08:27:34]ProducePacketName [08:27:34]name=ofd_packets/00072808 [08:27:34]OFD Sender: To server: pG, [08:27:34]CommunicateWithHost lk.salyk.kg:30040 [08:27:34]ConnectInit lk.salyk.kg [08:27:35]Write to MH i2c: 01 00 00 18 02 1A [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: 01 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: 01 07 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 E1 0C 0E [08:27:35]RasterBufferAndPrint [08:27:35]line [08:27:35]line [08:27:35]line [08:27:35]line [08:27:35]line [08:27:35]written 0, free lines is 3303 [08:27:35]MH_Cut [08:27:35]Write to MH i2c: D1 01 00 1F 02 01 F3 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: D1 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: D1 01 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: D1 01 00 1F 02 00 F2 [08:27:35]Write to MH i2c: 01 00 00 20 02 22 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]*** Cut start [08:27:35]*** Partial cut [08:27:35]*** CUTSNS_PIN = 1 [08:27:35]*** CUTSNS_PIN = 0 [08:27:36]Connected sock=10 [08:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 21 EB 07 01 01 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 F5 ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1C 01 00 35 04 06 00 19 11 8E AC 28 D3 F5 2E CF CB A0 E3 98 90 [08:27:36]*** Brake cut motor [08:27:36]Read from MH i2c: 01 [08:27:36]MH_I2C_Read... [08:27:36]*** Stop cut motor [08:27:36]*** Cut end [08:27:36]Read from MH i2c: 01 07 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [08:27:36]process_action close_receipt done [08:27:36]requested_data is exist [08:27:36]produce_requested_data [08:27:36]requested_item fm.sn is exist - process it [08:27:36]wFMCommunicate request_size=4 [08:27:36]MH_SAM_APDU [08:27:36]CAPDU: 80 11 00 00 [08:27:36]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:36]Read from MH i2c: E2 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 17 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F1 [08:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:27:36]wFMCommunicate OK [08:27:36]requested_item fd.num is exist - process it [08:27:36]SAM_PROTO_GetFieldsCounters [08:27:36]wFMCommunicate request_size=4 [08:27:36]MH_SAM_APDU [08:27:36]CAPDU: 80 13 00 00 [08:27:36]Write to MH i2c: E2 08 00 22 02 80 13 00 00 00 00 00 00 A0 [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:36]Read from MH i2c: E2 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 62 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 62 00 22 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 68 1C 01 00 0E 04 04 00 2C 02 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 FB [08:27:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 68 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:36]wFMCommunicate OK [08:27:36]SAM_PROTO_GetFieldsCounters done [08:27:36]requested_item shift.num is exist - process it [08:27:36]requested_item shift.opened is exist - process it [08:27:36]req_shift_opened [08:27:36]FM_GetShiftState [08:27:36]SAM_PROTO_GetShiftState [08:27:36]wFMCommunicate request_size=4 [08:27:36]MH_SAM_APDU [08:27:36]CAPDU: 80 13 01 00 [08:27:36]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [08:27:36]Write i2c OK [08:27:36]MH_I2C_Read... [08:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:36]Read from MH i2c: E2 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 0E 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 74 [08:27:36]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:27:36]wFMCommunicate OK [08:27:36]SAM_PROTO_GetShiftState done [08:27:36]FM_GetShiftState done [08:27:36]req_shift_opened done [08:27:36]requested_item shift.open_date is exist - process it [08:27:36]req_shift_open_date [08:27:36]req_shift_open_date done [08:27:36]produce_requested_data done [08:27:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72808,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:27:36]process_action_free close_receipt [08:27:36]json_value_free [08:27:36]json_value_free done [08:27:36]process_json_proto returns [08:27:36]Send response to host [08:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72808,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:27:36]free response buf [08:27:36]execute_script done [08:27:36]execute_script returns [08:27:36]free content buf [08:27:36]Sock 7.Close socket [08:27:36]Sock 7.Thread stoped [08:27:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1E 63 47 00 2E 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1C 01 00 F4 03 04 00 B2 98 21 67 B6 04 01 00 00 AC B4 61 9D 6F 5C 7B 87 [08:27:39]CommunicateWithHost err = 0 [08:27:39]CheckOFDResponse [08:27:39]1017 (14) - 77093643461234 [08:27:39]1041 (16) - 0000000000874662 [08:27:39]1040 (4) - 72808 [08:27:39]1012 (4) - 30.10.2024 02:23 [08:27:39]1206 (1) - 0 [08:27:39]OFD Sender: Remove packet 72808 [08:27:39]ProducePacketName [08:27:39]name=ofd_packets/00072808 [08:27:39]NVStorageDeleteData [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]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:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:38]recv_with_timeout no data received [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [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]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:09]recv_with_timeout no data received [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:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:32:56]recv_with_timeout no data received [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:09]recv_with_timeout no data received [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:34]recv_with_timeout no data received [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:26]recv_with_timeout no data received [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:07]recv_with_timeout no data received [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:07]recv_with_timeout no data received [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:35]recv_with_timeout no data received [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:37:56]recv_with_timeout no data received [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]accept exits with 9 [08:40:56]New connection [08:40:56]New thread 3066645860 created [08:40:56]Thread 3066789220 joined [08:40:56]Waiting for new connection... [08:40:56] Sock 9.Parse request [08:40:56]Sock 9.Check first char [08:40:56]Sock 9.First char is OK [08:40:56]request: POST /json_proto HTTP/1.0 [08:40:56]Method: POST [08:40:56]URL: /json_proto [08:40:56]Method is POST - this is cgi request [08:40:56]url: /json_proto [08:40:56]query_string will be loaded in cgi processing [08:40:56]execute_cgi json_proto POST (null) [08:40:56]execute_cgi path=json_proto method=POST [08:40:56]POST find Content-Length [08:40:56]Host: 172.17.43.195:8080 [08:40:56]Content-Length: 682 [08:40:56]Content-Type: application/json [08:40:56] [08:40:56]POST finish read [08:40:56]Found Content-Length = 682 [08:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:56]execute_script... [08:40:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:56]POST & json_proto [08:40:56]process_json_proto [08:40:56]json parsed OK: [08:40:56]protocol is kg_v1.0 [08:40:56]action value=close_receipt [08:40:56]process_action close_receipt [08:40:56]cmd_close_receipt [08:40:56]MH_GetDate [08:40:56]Write to MH i2c: F0 00 00 24 02 15 [08:40:56]Write i2c OK [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: F0 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: F0 09 00 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: F0 09 00 24 02 00 18 F1 21 67 74 2C AD 66 62 [08:40:56]GetLastDocTimeStamp 1730276853 [08:40:56]current date 1730277656 [08:40:56]FM_GetShiftState [08:40:56]SAM_PROTO_GetShiftState [08:40:56]wFMCommunicate request_size=4 [08:40:56]MH_SAM_APDU [08:40:56]CAPDU: 80 13 01 00 [08:40:56]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [08:40:56]Write i2c OK [08:40:56]MH_I2C_Read... [08:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:56]Read from MH i2c: E2 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: E2 0E 00 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 76 [08:40:56]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:40:56]wFMCommunicate OK [08:40:56]SAM_PROTO_GetShiftState done [08:40:56]FM_GetShiftState done [08:40:56]opened in 1730247109 [08:40:56]opened+sec_in_day 1730333509 [08:40:56]quantity*price = 200043 [08:40:56]sum+1 = 200044 [08:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 46 30.10.2024 08:40 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72809 ФПД: 162036174026719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084056&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72809&fm=162036174026719&tin=02508201610067®Number=0000000000091644&sum=200000 [08:40:57]StoreToDocumentArchive [08:40:57]shift 556 fd 72809 [08:40:57]save to /storage/0556/doc_00072809 [08:40:57]save last doc name /storage/0556/doc_00072809 to /storage/kkm_last_doc_name [08:40:57]save OK [08:40:57]Clear old archive folders... [08:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:57]tlvbuf is 011424D0 [08:40:57]SAM_PROTO_ClearQueue [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 09 00 00 [08:40:57]Write to MH i2c: E2 08 00 32 02 80 09 00 00 00 00 00 00 A6 [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 03 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [08:40:57]RAPDU: 90 00 [08:40:57]wFMCommunicate OK [08:40:57]SAM_PROTO_ClearQueue done [08:40:57]KKMCreateOFDPacket [08:40:57]OFDProtocolAddRootSTLVToBuf [08:40:57]FM_MakeSignedData [08:40:57]FM_MakeSignedData [08:40:57]SAM_PROTO_SignData [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 0D 01 02 [08:40:57]Write to MH i2c: E2 08 00 33 02 80 0D 01 02 00 00 00 00 AE [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 03 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [08:40:57]RAPDU: 90 00 [08:40:57]wFMCommunicate OK [08:40:57]wFMCommunicate request_size=255 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 18 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1C 01 00 35 04 06 00 93 [08:40:57]Write to MH i2c: E2 02 01 34 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 18 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1C 01 00 35 04 06 00 93 00 00 E9 [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 03 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [08:40:57]RAPDU: 90 00 [08:40:57]wFMCommunicate OK [08:40:57]wFMCommunicate request_size=10 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 0D 02 02 05 5E FC 97 F7 DF [08:40:57]Write to MH i2c: E2 0D 00 35 02 80 0D 02 02 05 00 5E FC 97 F7 DF 00 00 82 [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 03 02 [08:40:58]Write to MH i2c: E2 08 00 36 02 80 0D 03 02 00 00 00 00 B3 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 0B 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 0B 00 36 02 00 59 38 8B A7 BB C2 B1 6E 90 00 13 [08:40:58]RAPDU: 59 38 8B A7 BB C2 B1 6E 90 00 [08:40:58]wFMCommunicate OK [08:40:58]SAM_PROTO_SignData done [08:40:58]FM_MakeSignedData done [08:40:58]CreateOFDProtocolMessage [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 11 00 00 [08:40:58]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 17 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 07 [08:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:40:58]wFMCommunicate OK [08:40:58]CreateOFDProtocolMessage done [08:40:58]OFDSenderStorePacket 72809 [08:40:58]StoreOFDPacket docnum=72809 [08:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3F 71 07 01 6B 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 18 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1C 01 00 35 04 06 00 93 5E FC 97 F7 DF 59 38 8B A7 BB C2 B1 6E [08:40:58]CheckFolder [08:40:58]dirname=/storage/ofd_packets [08:40:58]CheckFolder done [08:40:58]ProducePacketName [08:40:58]name=ofd_packets/00072809 [08:40:58]NVStorageSaveData ofd_packets/00072809 [08:40:58]File name is /storage/ofd_packets/00072809 [08:40:58]Write 301 bytes [08:40:58]NVStorageSaveData done [08:40:58]OFDSenderStorePacket done [08:40:58]KKMCreateOFDPacket done [08:40:58]NVStorageSaveData kkm_last_timestamp [08:40:58]File name is /storage/kkm_last_timestamp [08:40:58]Write 4 bytes [08:40:58]NVStorageSaveData done [08:40:58]ExternCall_PrintAddStr [08:40:58]wPrintStart [08:40:58]Write to MH i2c: 01 00 00 38 02 3A [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 07 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [08:40:58]RasterBufferAndPrint [08:40:58]line Счет N : (1)952366 [08:40:58]line ИНН: 02508201610067 [08:40:58]line Контрольно-Кассовый Чек [08:40:58]line ПРОДАЖА [08:40:58]line ТРК (МРК, ГНК) : 52 [08:40:58]line Товар: 2710124500 [08:40:58]line Аи-95-К-3 [08:40:58]line 26.960 * 74.20 [08:40:58]line = 2000.43 [08:40:58]line НДС 12% НСП 1% [08:40:58]line > о реализуемом товаре [08:40:58]line ОКРУГЛЕНИЕ: -0.43 [08:40:58]line ИТОГО: 2000.00 [08:40:58]line Внесено: 2000.00 [08:40:58]line СДАЧА: 0.00 [08:40:58]line НСП 1% : 17.70 [08:40:58]line НДС 12% : 212.43 [08:40:58]line Наличными: 2000.00 [08:40:58]line Безнал.: 0.00 [08:40:58]line Место: АЗС № 113 "Партнер Нефть" [08:40:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:40:58]line СНО: Общий режим [08:40:58]line Чек 46 30.10.2024 08:40 [08:40:58]line Смена: 556 ФФД: 1.0 [08:40:58]line ЗНМ: 0300000087 [08:40:58]line РНМ: 0000000000091644 [08:40:58]line Версия ККМ: 001 [08:40:58]line ФМ: 0000000000874662 [08:40:58]line ФД: 72809 [08:40:58]line ФПД: 162036174026719 [08:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084056&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72809&fm=162036174026719&tin=02508201610067®Number=0000000000091644&sum=200000 [08:40:58]OFD Sender: Processing packet 72809 [packets to send 278, broken 277] [08:40:58]ProducePacketName [08:40:58]name=ofd_packets/00072809 [08:40:58]OFD Sender: To server: pG, [08:40:58]CommunicateWithHost lk.salyk.kg:30040 [08:40:58]ConnectInit lk.salyk.kg [08:40:58]written 0, free lines is 4095 [08:40:58]Write to MH i2c: 01 00 00 63 02 65 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 07 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 DD 0C 55 [08:40:58]RasterBufferAndPrint [08:40:58]line [08:40:58]line [08:40:58]line [08:40:58]line [08:40:58]line [08:40:58]written 0, free lines is 3299 [08:40:58]MH_Cut [08:40:58]Write to MH i2c: D1 01 00 6A 02 01 3E [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: D1 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: D1 01 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: D1 01 00 6A 02 00 3D [08:40:58]Write to MH i2c: 01 00 00 6B 02 6D [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:59]Connected sock=10 [08:40:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3F 71 07 01 6B 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 18 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1C 01 00 35 04 06 00 93 5E FC 97 F7 DF 59 38 8B A7 BB C2 B1 6E [08:40:59]*** Cut start [08:40:59]*** Partial cut [08:40:59]*** CUTSNS_PIN = 1 [08:40:59]*** CUTSNS_PIN = 0 [08:40:59]*** Brake cut motor [08:41:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6A 6F 47 00 F0 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1C 01 00 F4 03 04 00 D2 9B 21 67 B6 04 01 00 00 3D 47 08 6C 83 00 FE FA [08:41:00]CommunicateWithHost err = 0 [08:41:00]CheckOFDResponse [08:41:00]1017 (14) - 77093643461234 [08:41:00]1041 (16) - 0000000000874662 [08:41:00]1040 (4) - 72809 [08:41:00]1012 (4) - 30.10.2024 02:37 [08:41:00]1206 (1) - 0 [08:41:00]OFD Sender: Remove packet 72809 [08:41:00]ProducePacketName [08:41:00]name=ofd_packets/00072809 [08:41:00]NVStorageDeleteData [08:41:00]Read from MH i2c: 01 [08:41:00]MH_I2C_Read... [08:41:00]*** Stop cut motor [08:41:00]*** Cut end [08:41:00]Read from MH i2c: 01 07 00 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [08:41:00]process_action close_receipt done [08:41:00]requested_data is exist [08:41:00]produce_requested_data [08:41:00]requested_item fm.sn is exist - process it [08:41:00]wFMCommunicate request_size=4 [08:41:00]MH_SAM_APDU [08:41:00]CAPDU: 80 11 00 00 [08:41:00]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [08:41:00]Write i2c OK [08:41:00]MH_I2C_Read... [08:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:00]Read from MH i2c: E2 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 17 00 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [08:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:41:00]wFMCommunicate OK [08:41:00]requested_item fd.num is exist - process it [08:41:00]SAM_PROTO_GetFieldsCounters [08:41:00]wFMCommunicate request_size=4 [08:41:00]MH_SAM_APDU [08:41:00]CAPDU: 80 13 00 00 [08:41:00]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [08:41:00]Write i2c OK [08:41:00]MH_I2C_Read... [08:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:00]Read from MH i2c: E2 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 62 00 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 69 1C 01 00 0E 04 04 00 2C 02 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 4A [08:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 69 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:00]wFMCommunicate OK [08:41:00]SAM_PROTO_GetFieldsCounters done [08:41:00]requested_item shift.num is exist - process it [08:41:00]requested_item shift.opened is exist - process it [08:41:00]req_shift_opened [08:41:00]FM_GetShiftState [08:41:00]SAM_PROTO_GetShiftState [08:41:00]wFMCommunicate request_size=4 [08:41:00]MH_SAM_APDU [08:41:00]CAPDU: 80 13 01 00 [08:41:00]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [08:41:00]Write i2c OK [08:41:00]MH_I2C_Read... [08:41:00]OFD Sender: No OFD packet to send [08:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:00]Read from MH i2c: E2 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 0E 00 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 BF [08:41:00]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:41:00]wFMCommunicate OK [08:41:00]SAM_PROTO_GetShiftState done [08:41:00]FM_GetShiftState done [08:41:00]req_shift_opened done [08:41:00]requested_item shift.open_date is exist - process it [08:41:00]req_shift_open_date [08:41:00]req_shift_open_date done [08:41:00]produce_requested_data done [08:41:00]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72809,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:41:00]process_action_free close_receipt [08:41:00]json_value_free [08:41:00]json_value_free done [08:41:00]process_json_proto returns [08:41:00]Send response to host [08:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72809,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:41:00]free response buf [08:41:00]execute_script done [08:41:00]execute_script returns [08:41:00]free content buf [08:41:00]Sock 9.Close socket [08:41:00]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:04]recv_with_timeout no data received [08:42:05]accept exits with 7 [08:42:05]New connection [08:42:05]New thread 3066789220 created [08:42:05]Thread 3066645860 joined [08:42:05]Waiting for new connection... [08:42:05] Sock 7.Parse request [08:42:05]Sock 7.Check first char [08:42:05]Sock 7.First char is OK [08:42:05]request: POST /json_proto HTTP/1.0 [08:42:05]Method: POST [08:42:05]URL: /json_proto [08:42:05]Method is POST - this is cgi request [08:42:05]url: /json_proto [08:42:05]query_string will be loaded in cgi processing [08:42:05]execute_cgi json_proto POST (null) [08:42:05]execute_cgi path=json_proto method=POST [08:42:05]POST find Content-Length [08:42:05]Host: 172.17.43.195:8080 [08:42:05]Content-Length: 687 [08:42:05]Content-Type: application/json [08:42:05] [08:42:05]POST finish read [08:42:05]Found Content-Length = 687 [08:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952367", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:05]execute_script... [08:42:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952367", "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" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:05]POST & json_proto [08:42:05]process_json_proto [08:42:05]json parsed OK: [08:42:05]protocol is kg_v1.0 [08:42:05]action value=close_receipt [08:42:05]process_action close_receipt [08:42:05]cmd_close_receipt [08:42:05]MH_GetDate [08:42:05]Write to MH i2c: F0 00 00 6F 02 60 [08:42:05]Write i2c OK [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: F0 [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: F0 09 00 [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: F0 09 00 6F 02 00 5D F1 21 67 74 2C AD 66 F2 [08:42:05]GetLastDocTimeStamp 1730277656 [08:42:05]current date 1730277725 [08:42:05]FM_GetShiftState [08:42:05]SAM_PROTO_GetShiftState [08:42:05]wFMCommunicate request_size=4 [08:42:05]MH_SAM_APDU [08:42:05]CAPDU: 80 13 01 00 [08:42:05]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [08:42:05]Write i2c OK [08:42:05]MH_I2C_Read... [08:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:05]Read from MH i2c: E2 [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: E2 0E 00 [08:42:05]MH_I2C_Read... [08:42:05]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 C1 [08:42:05]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:42:05]wFMCommunicate OK [08:42:05]SAM_PROTO_GetShiftState done [08:42:05]FM_GetShiftState done [08:42:05]opened in 1730247109 [08:42:05]opened+sec_in_day 1730333509 [08:42:05]quantity*price = 100050 [08:42:05]sum+1 = 100052 [08:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 47 30.10.2024 08:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72810 ФПД: 37457637690244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084205&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72810&fm=37457637690244&tin=02508201610067®Number=0000000000091644&sum=100000 [08:42:06]StoreToDocumentArchive [08:42:06]shift 556 fd 72810 [08:42:06]save to /storage/0556/doc_00072810 [08:42:06]save last doc name /storage/0556/doc_00072810 to /storage/kkm_last_doc_name [08:42:06]save OK [08:42:06]Clear old archive folders... [08:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:42:06]tlvbuf is 011CAC20 [08:42:06]SAM_PROTO_ClearQueue [08:42:06]wFMCommunicate request_size=4 [08:42:06]MH_SAM_APDU [08:42:06]CAPDU: 80 09 00 00 [08:42:06]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [08:42:06]RAPDU: 90 00 [08:42:06]wFMCommunicate OK [08:42:06]SAM_PROTO_ClearQueue done [08:42:06]KKMCreateOFDPacket [08:42:06]OFDProtocolAddRootSTLVToBuf [08:42:06]FM_MakeSignedData [08:42:06]FM_MakeSignedData [08:42:06]SAM_PROTO_SignData [08:42:06]wFMCommunicate request_size=4 [08:42:06]MH_SAM_APDU [08:42:06]CAPDU: 80 0D 01 02 [08:42:06]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:06]Read from MH i2c: E2 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 [08:42:06]MH_I2C_Read... [08:42:06]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [08:42:06]RAPDU: 90 00 [08:42:06]wFMCommunicate OK [08:42:06]wFMCommunicate request_size=255 [08:42:06]MH_SAM_APDU [08:42:06]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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 5D F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1C 01 00 35 04 06 00 [08:42:06]Write to MH i2c: E2 02 01 7F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 5D F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1C 01 00 35 04 06 00 00 00 20 [08:42:06]Write i2c OK [08:42:06]MH_I2C_Read... [08:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:07]Read from MH i2c: E2 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: E2 03 00 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [08:42:07]RAPDU: 90 00 [08:42:07]wFMCommunicate OK [08:42:07]wFMCommunicate request_size=11 [08:42:07]MH_SAM_APDU [08:42:07]CAPDU: 80 0D 02 02 06 22 11 49 30 4B 84 [08:42:07]Write to MH i2c: E2 0E 00 80 02 80 0D 02 02 06 00 22 11 49 30 4B 84 00 00 83 [08:42:07]Write i2c OK [08:42:07]MH_I2C_Read... [08:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:07]Read from MH i2c: E2 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: E2 03 00 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [08:42:07]RAPDU: 90 00 [08:42:07]wFMCommunicate OK [08:42:07]wFMCommunicate request_size=4 [08:42:07]MH_SAM_APDU [08:42:07]CAPDU: 80 0D 03 02 [08:42:07]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [08:42:07]Write i2c OK [08:42:07]MH_I2C_Read... [08:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:07]Read from MH i2c: E2 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: E2 0B 00 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: E2 0B 00 81 02 00 D5 A5 EE 3E 34 09 70 4F 90 00 A1 [08:42:07]RAPDU: D5 A5 EE 3E 34 09 70 4F 90 00 [08:42:07]wFMCommunicate OK [08:42:07]SAM_PROTO_SignData done [08:42:07]FM_MakeSignedData done [08:42:07]CreateOFDProtocolMessage [08:42:07]wFMCommunicate request_size=4 [08:42:07]MH_SAM_APDU [08:42:07]CAPDU: 80 11 00 00 [08:42:07]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [08:42:07]Write i2c OK [08:42:07]MH_I2C_Read... [08:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:07]Read from MH i2c: E2 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: E2 17 00 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [08:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:42:07]wFMCommunicate OK [08:42:07]CreateOFDProtocolMessage done [08:42:07]OFDSenderStorePacket 72810 [08:42:07]StoreOFDPacket docnum=72810 [08:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 36 02 08 01 E1 4F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 5D F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1C 01 00 35 04 06 00 22 11 49 30 4B 84 D5 A5 EE 3E 34 09 70 4F [08:42:07]CheckFolder [08:42:07]dirname=/storage/ofd_packets [08:42:07]CheckFolder done [08:42:07]ProducePacketName [08:42:07]name=ofd_packets/00072810 [08:42:07]NVStorageSaveData ofd_packets/00072810 [08:42:07]File name is /storage/ofd_packets/00072810 [08:42:07]Write 302 bytes [08:42:07]NVStorageSaveData done [08:42:07]OFDSenderStorePacket done [08:42:07]KKMCreateOFDPacket done [08:42:07]NVStorageSaveData kkm_last_timestamp [08:42:07]File name is /storage/kkm_last_timestamp [08:42:07]Write 4 bytes [08:42:07]NVStorageSaveData done [08:42:07]ExternCall_PrintAddStr [08:42:07]wPrintStart [08:42:07]Write to MH i2c: 01 00 00 83 02 85 [08:42:07]Write i2c OK [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: 01 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: 01 07 00 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [08:42:07]RasterBufferAndPrint [08:42:07]line Счет N : (1)952367 [08:42:07]line ИНН: 02508201610067 [08:42:07]line Контрольно-Кассовый Чек [08:42:07]line ПРОДАЖА [08:42:07]line ТРК (МРК, ГНК) : 43 [08:42:07]line Товар: 2710194210 [08:42:07]line ДТ(л)-К-5 [08:42:07]line 13.130 * 76.20 [08:42:07]line = 1000.51 [08:42:07]line НДС 12% НСП 1% [08:42:07]line > о реализуемом товаре [08:42:07]line ОКРУГЛЕНИЕ: -0.51 [08:42:07]line ИТОГО: 1000.00 [08:42:07]line Внесено: 1000.00 [08:42:07]line СДАЧА: 0.00 [08:42:07]line НСП 1% : 8.85 [08:42:07]line НДС 12% : 106.25 [08:42:07]line Наличными: 1000.00 [08:42:07]line Безнал.: 0.00 [08:42:07]line Место: АЗС № 113 "Партнер Нефть" [08:42:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:42:07]line СНО: Общий режим [08:42:07]line Чек 47 30.10.2024 08:42 [08:42:07]line Смена: 556 ФФД: 1.0 [08:42:07]line ЗНМ: 0300000087 [08:42:07]line РНМ: 0000000000091644 [08:42:07]line Версия ККМ: 001 [08:42:07]line ФМ: 0000000000874662 [08:42:07]line ФД: 72810 [08:42:07]line ФПД: 37457637690244 [08:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084205&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72810&fm=37457637690244&tin=02508201610067®Number=0000000000091644&sum=100000 [08:42:07]OFD Sender: Processing packet 72810 [packets to send 278, broken 277] [08:42:07]ProducePacketName [08:42:07]name=ofd_packets/00072810 [08:42:07]OFD Sender: To server: pG, [08:42:07]CommunicateWithHost lk.salyk.kg:30040 [08:42:07]ConnectInit lk.salyk.kg [08:42:07]written 0, free lines is 4095 [08:42:07]Write to MH i2c: 01 00 00 AE 02 B0 [08:42:07]Write i2c OK [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: 01 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: 01 07 00 [08:42:07]MH_I2C_Read... [08:42:07]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 CC 0C 8F [08:42:07]RasterBufferAndPrint [08:42:07]line [08:42:07]line [08:42:07]line [08:42:07]line [08:42:07]line [08:42:08]written 0, free lines is 3282 [08:42:08]MH_Cut [08:42:08]Write to MH i2c: D1 01 00 B5 02 01 89 [08:42:08]Write i2c OK [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: D1 [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: D1 01 00 [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: D1 01 00 B5 02 00 88 [08:42:08]Write to MH i2c: 01 00 00 B6 02 B8 [08:42:08]Write i2c OK [08:42:08]MH_I2C_Read... [08:42:08]Connected sock=10 [08:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 36 02 08 01 E1 4F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 5D F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1C 01 00 35 04 06 00 22 11 49 30 4B 84 D5 A5 EE 3E 34 09 70 4F [08:42:08]*** Cut start [08:42:08]*** Partial cut [08:42:08]*** CUTSNS_PIN = 1 [08:42:08]*** CUTSNS_PIN = 0 [08:42:09]*** Brake cut motor [08:42:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 17 28 47 00 63 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1C 01 00 F4 03 04 00 17 9C 21 67 B6 04 01 00 00 4D 4F A3 7A 73 A4 3A 53 [08:42:09]CommunicateWithHost err = 0 [08:42:09]CheckOFDResponse [08:42:09]1017 (14) - 77093643461234 [08:42:09]1041 (16) - 0000000000874662 [08:42:09]1040 (4) - 72810 [08:42:09]1012 (4) - 30.10.2024 02:38 [08:42:09]1206 (1) - 0 [08:42:09]OFD Sender: Remove packet 72810 [08:42:09]ProducePacketName [08:42:09]name=ofd_packets/00072810 [08:42:09]NVStorageDeleteData [08:42:09]Read from MH i2c: 01 [08:42:09]MH_I2C_Read... [08:42:09]*** Stop cut motor [08:42:09]*** Cut end [08:42:09]Read from MH i2c: 01 07 00 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [08:42:09]process_action close_receipt done [08:42:09]requested_data is exist [08:42:09]produce_requested_data [08:42:09]requested_item fm.sn is exist - process it [08:42:09]wFMCommunicate request_size=4 [08:42:09]MH_SAM_APDU [08:42:09]CAPDU: 80 11 00 00 [08:42:09]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [08:42:09]Write i2c OK [08:42:09]MH_I2C_Read... [08:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:09]Read from MH i2c: E2 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 17 00 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 87 [08:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:42:09]wFMCommunicate OK [08:42:09]requested_item fd.num is exist - process it [08:42:09]SAM_PROTO_GetFieldsCounters [08:42:09]wFMCommunicate request_size=4 [08:42:09]MH_SAM_APDU [08:42:09]CAPDU: 80 13 00 00 [08:42:09]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [08:42:09]Write i2c OK [08:42:09]MH_I2C_Read... [08:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:09]OFD Sender: No OFD packet to send [08:42:09]Read from MH i2c: E2 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 62 00 [08:42:09]MH_I2C_Read... [08:42:09]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6A 1C 01 00 0E 04 04 00 2C 02 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 99 [08:42:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6A 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:09]wFMCommunicate OK [08:42:09]SAM_PROTO_GetFieldsCounters done [08:42:09]requested_item shift.num is exist - process it [08:42:09]requested_item shift.opened is exist - process it [08:42:09]req_shift_opened [08:42:09]FM_GetShiftState [08:42:09]SAM_PROTO_GetShiftState [08:42:09]wFMCommunicate request_size=4 [08:42:09]MH_SAM_APDU [08:42:09]CAPDU: 80 13 01 00 [08:42:09]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [08:42:09]Write i2c OK [08:42:09]MH_I2C_Read... [08:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:09]Read from MH i2c: E2 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 0E 00 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 0A [08:42:09]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:42:09]wFMCommunicate OK [08:42:09]SAM_PROTO_GetShiftState done [08:42:09]FM_GetShiftState done [08:42:09]req_shift_opened done [08:42:09]requested_item shift.open_date is exist - process it [08:42:09]req_shift_open_date [08:42:09]req_shift_open_date done [08:42:09]produce_requested_data done [08:42:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72810,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:42:09]process_action_free close_receipt [08:42:09]json_value_free [08:42:09]json_value_free done [08:42:09]process_json_proto returns [08:42:09]Send response to host [08:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72810,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:42:09]free response buf [08:42:09]execute_script done [08:42:09]execute_script returns [08:42:09]free content buf [08:42:09]Sock 7.Close socket [08:42:09]Sock 7.Thread stoped [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:25]accept exits with 9 [08:42:25]New connection [08:42:25]New thread 3066645860 created [08:42:25]Thread 3066789220 joined [08:42:25]Waiting for new connection... [08:42:25] Sock 9.Parse request [08:42:25]Sock 9.Check first char [08:42:25]Sock 9.First char is OK [08:42:25]request: POST /json_proto HTTP/1.0 [08:42:25]Method: POST [08:42:25]URL: /json_proto [08:42:25]Method is POST - this is cgi request [08:42:25]url: /json_proto [08:42:25]query_string will be loaded in cgi processing [08:42:25]execute_cgi json_proto POST (null) [08:42:25]execute_cgi path=json_proto method=POST [08:42:25]POST find Content-Length [08:42:25]Host: 172.17.43.195:8080 [08:42:25]Content-Length: 792 [08:42:25]Content-Type: application/json [08:42:25] [08:42:25]POST finish read [08:42:25]Found Content-Length = 792 [08:42:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 23.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:25]execute_script... [08:42:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 23.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:25]POST & json_proto [08:42:25]process_json_proto [08:42:25]json parsed OK: [08:42:25]protocol is kg_v1.0 [08:42:25]action value=close_receipt [08:42:25]process_action close_receipt [08:42:25]cmd_close_receipt [08:42:25]MH_GetDate [08:42:25]Write to MH i2c: F0 00 00 BA 02 AB [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: F0 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: F0 09 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: F0 09 00 BA 02 00 71 F1 21 67 74 2C AD 66 51 [08:42:25]GetLastDocTimeStamp 1730277725 [08:42:25]current date 1730277745 [08:42:25]FM_GetShiftState [08:42:25]SAM_PROTO_GetShiftState [08:42:25]wFMCommunicate request_size=4 [08:42:25]MH_SAM_APDU [08:42:25]CAPDU: 80 13 01 00 [08:42:25]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [08:42:25]Write i2c OK [08:42:25]MH_I2C_Read... [08:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:25]Read from MH i2c: E2 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 0E 00 [08:42:25]MH_I2C_Read... [08:42:25]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 0C [08:42:25]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:42:25]wFMCommunicate OK [08:42:25]SAM_PROTO_GetShiftState done [08:42:25]FM_GetShiftState done [08:42:25]opened in 1730247109 [08:42:25]opened+sec_in_day 1730333509 [08:42:25]quantity*price = 0 [08:42:25]sum+1 = 1 [08:42:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 48 30.10.2024 08:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72811 ФПД: 130468626272413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084225&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72811&fm=130468626272413&tin=02508201610067®Number=0000000000091644&sum=0 [08:42:26]StoreToDocumentArchive [08:42:26]shift 556 fd 72811 [08:42:26]save to /storage/0556/doc_00072811 [08:42:26]save last doc name /storage/0556/doc_00072811 to /storage/kkm_last_doc_name [08:42:26]save OK [08:42:26]Clear old archive folders... [08:42:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:26]tlvbuf is 011D0BE0 [08:42:26]SAM_PROTO_ClearQueue [08:42:26]wFMCommunicate request_size=4 [08:42:26]MH_SAM_APDU [08:42:26]CAPDU: 80 09 00 00 [08:42:26]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:26]Read from MH i2c: E2 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 03 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [08:42:26]RAPDU: 90 00 [08:42:26]wFMCommunicate OK [08:42:26]SAM_PROTO_ClearQueue done [08:42:26]KKMCreateOFDPacket [08:42:26]OFDProtocolAddRootSTLVToBuf [08:42:26]FM_MakeSignedData [08:42:26]FM_MakeSignedData [08:42:26]SAM_PROTO_SignData [08:42:26]wFMCommunicate request_size=4 [08:42:26]MH_SAM_APDU [08:42:26]CAPDU: 80 0D 01 02 [08:42:26]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:26]Read from MH i2c: E2 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 03 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [08:42:26]RAPDU: 90 00 [08:42:26]wFMCommunicate OK [08:42:26]wFMCommunicate request_size=255 [08:42:26]MH_SAM_APDU [08:42:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 59 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 30 00 00 00 F4 03 04 00 71 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1C 01 00 35 04 06 00 76 [08:42:26]Write to MH i2c: E2 02 01 CA 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 D8 59 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 30 00 00 00 F4 03 04 00 71 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1C 01 00 35 04 06 00 76 00 00 C5 [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:26]Read from MH i2c: E2 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 03 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [08:42:26]RAPDU: 90 00 [08:42:26]wFMCommunicate OK [08:42:26]wFMCommunicate request_size=10 [08:42:26]MH_SAM_APDU [08:42:26]CAPDU: 80 0D 02 02 05 A9 18 1F 90 9D [08:42:26]Write to MH i2c: E2 0D 00 CB 02 80 0D 02 02 05 00 A9 18 1F 90 9D 00 00 5E [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:26]Read from MH i2c: E2 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 03 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [08:42:26]RAPDU: 90 00 [08:42:26]wFMCommunicate OK [08:42:26]wFMCommunicate request_size=4 [08:42:26]MH_SAM_APDU [08:42:26]CAPDU: 80 0D 03 02 [08:42:26]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:26]Read from MH i2c: E2 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 0B 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 0B 00 CC 02 00 9E 16 DD E5 3D BB FB 2F 90 00 E2 [08:42:26]RAPDU: 9E 16 DD E5 3D BB FB 2F 90 00 [08:42:26]wFMCommunicate OK [08:42:26]SAM_PROTO_SignData done [08:42:26]FM_MakeSignedData done [08:42:26]CreateOFDProtocolMessage [08:42:26]wFMCommunicate request_size=4 [08:42:26]MH_SAM_APDU [08:42:26]CAPDU: 80 11 00 00 [08:42:26]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:26]Read from MH i2c: E2 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 17 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9D [08:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:42:26]wFMCommunicate OK [08:42:26]CreateOFDProtocolMessage done [08:42:26]OFDSenderStorePacket 72811 [08:42:26]StoreOFDPacket docnum=72811 [08:42:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A9 FC 07 01 2B 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 59 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 30 00 00 00 F4 03 04 00 71 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1C 01 00 35 04 06 00 76 A9 18 1F 90 9D 9E 16 DD E5 3D BB FB 2F [08:42:26]CheckFolder [08:42:26]dirname=/storage/ofd_packets [08:42:26]CheckFolder done [08:42:26]ProducePacketName [08:42:26]name=ofd_packets/00072811 [08:42:26]NVStorageSaveData ofd_packets/00072811 [08:42:26]File name is /storage/ofd_packets/00072811 [08:42:26]Write 301 bytes [08:42:26]NVStorageSaveData done [08:42:26]OFDSenderStorePacket done [08:42:26]KKMCreateOFDPacket done [08:42:26]NVStorageSaveData kkm_last_timestamp [08:42:26]File name is /storage/kkm_last_timestamp [08:42:26]Write 4 bytes [08:42:26]NVStorageSaveData done [08:42:26]ExternCall_PrintAddStr [08:42:26]wPrintStart [08:42:26]Write to MH i2c: 01 00 00 CE 02 D0 [08:42:26]Write i2c OK [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: 01 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: 01 07 00 [08:42:26]MH_I2C_Read... [08:42:26]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 FF 0F E5 [08:42:26]RasterBufferAndPrint [08:42:26]line Счет N : (1)952368 [08:42:26]line ИНН: 02508201610067 [08:42:26]line Контрольно-Кассовый Чек [08:42:26]line ПРОДАЖА [08:42:26]line ТРК (МРК, ГНК) : 63 [08:42:26]line Товар: 2710124130 [08:42:26]line Аи-92-К-5 [08:42:26]line 23.000 * 0.00 [08:42:26]line = 0.00 [08:42:26]line НДС 12% НСП 1% [08:42:26]line > о реализуемом товаре [08:42:26]line ИТОГО: 0.00 [08:42:26]line НСП 1% : 0.00 [08:42:26]line НДС 12% : 0.00 [08:42:26]line Наличными: 0.00 [08:42:26]line Безнал.: 0.00 [08:42:26]line Место: АЗС № 113 "Партнер Нефть" [08:42:26]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:42:26]line СНО: Общий режим [08:42:26]line Чек 48 30.10.2024 08:42 [08:42:26]line Смена: 556 ФФД: 1.0 [08:42:26]line ЗНМ: 0300000087 [08:42:26]line РНМ: 0000000000091644 [08:42:26]line Версия ККМ: 001 [08:42:26]line Талоны: Топливная Карта [08:42:26]line 03047 [08:42:26]line ФМ: 0000000000874662 [08:42:26]line ФД: 72811 [08:42:26]line ФПД: 130468626272413 [08:42:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084225&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72811&fm=130468626272413&tin=02508201610067®Number=0000000000091644&sum=0 [08:42:26]written 0, free lines is 4095 [08:42:26]OFD Sender: Processing packet 72811 [packets to send 278, broken 277] [08:42:26]ProducePacketName [08:42:26]name=ofd_packets/00072811 [08:42:26]OFD Sender: To server: pG, [08:42:26]CommunicateWithHost lk.salyk.kg:30040 [08:42:26]ConnectInit lk.salyk.kg [08:42:27]Write to MH i2c: 01 00 00 F8 02 FA [08:42:27]Write i2c OK [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: 01 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: 01 07 00 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 E9 0C F6 [08:42:27]RasterBufferAndPrint [08:42:27]line [08:42:27]line [08:42:27]line [08:42:27]line [08:42:27]line [08:42:27]written 0, free lines is 3315 [08:42:27]MH_Cut [08:42:27]Write to MH i2c: D1 01 00 FF 02 01 D3 [08:42:27]Write i2c OK [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: D1 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: D1 01 00 [08:42:27]MH_I2C_Read... [08:42:27]Read from MH i2c: D1 01 00 FF 02 00 D2 [08:42:27]Write to MH i2c: 01 00 00 00 03 03 [08:42:27]Write i2c OK [08:42:27]MH_I2C_Read... [08:42:27]Connected sock=10 [08:42:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A9 FC 07 01 2B 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 59 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 30 00 00 00 F4 03 04 00 71 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1C 01 00 35 04 06 00 76 A9 18 1F 90 9D 9E 16 DD E5 3D BB FB 2F [08:42:28]*** Cut start [08:42:28]*** Partial cut [08:42:28]*** CUTSNS_PIN = 1 [08:42:28]*** CUTSNS_PIN = 0 [08:42:28]*** Brake cut motor [08:42:28]Read from MH i2c: 01 [08:42:28]MH_I2C_Read... [08:42:28]*** Stop cut motor [08:42:28]*** Cut end [08:42:28]Read from MH i2c: 01 07 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: 01 07 00 00 03 00 00 00 00 00 FF 0F 18 [08:42:28]process_action close_receipt done [08:42:28]requested_data is exist [08:42:28]produce_requested_data [08:42:28]requested_item fm.sn is exist - process it [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 11 00 00 [08:42:28]Write to MH i2c: E2 08 00 01 03 80 11 00 00 00 00 00 00 7E [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 17 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 17 00 01 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D2 [08:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:42:28]wFMCommunicate OK [08:42:28]requested_item fd.num is exist - process it [08:42:28]SAM_PROTO_GetFieldsCounters [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 13 00 00 [08:42:28]Write to MH i2c: E2 08 00 02 03 80 13 00 00 00 00 00 00 81 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:28]Read from MH i2c: E2 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 62 00 [08:42:28]MH_I2C_Read... [08:42:28]Read from MH i2c: E2 62 00 02 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6B 1C 01 00 0E 04 04 00 2C 02 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 E8 [08:42:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6B 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:28]wFMCommunicate OK [08:42:28]SAM_PROTO_GetFieldsCounters done [08:42:28]requested_item shift.num is exist - process it [08:42:28]requested_item shift.opened is exist - process it [08:42:28]req_shift_opened [08:42:28]FM_GetShiftState [08:42:28]SAM_PROTO_GetShiftState [08:42:28]wFMCommunicate request_size=4 [08:42:28]MH_SAM_APDU [08:42:28]CAPDU: 80 13 01 00 [08:42:28]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [08:42:28]Write i2c OK [08:42:28]MH_I2C_Read... [08:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:29]Read from MH i2c: E2 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 0E 00 [08:42:29]MH_I2C_Read... [08:42:29]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 55 [08:42:29]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:42:29]wFMCommunicate OK [08:42:29]SAM_PROTO_GetShiftState done [08:42:29]FM_GetShiftState done [08:42:29]req_shift_opened done [08:42:29]requested_item shift.open_date is exist - process it [08:42:29]req_shift_open_date [08:42:29]req_shift_open_date done [08:42:29]produce_requested_data done [08:42:29]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72811,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:42:29]process_action_free close_receipt [08:42:29]json_value_free [08:42:29]json_value_free done [08:42:29]process_json_proto returns [08:42:29]Send response to host [08:42:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72811,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:42:29]free response buf [08:42:29]execute_script done [08:42:29]execute_script returns [08:42:29]free content buf [08:42:29]Sock 9.Close socket [08:42:29]Sock 9.Thread stoped [08:42:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BC 7F 47 00 33 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1C 01 00 F4 03 04 00 2C 9C 21 67 B6 04 01 00 00 01 8D C4 B4 64 4D D7 38 [08:42:29]CommunicateWithHost err = 0 [08:42:29]CheckOFDResponse [08:42:29]1017 (14) - 77093643461234 [08:42:29]1041 (16) - 0000000000874662 [08:42:29]1040 (4) - 72811 [08:42:29]1012 (4) - 30.10.2024 02:38 [08:42:29]1206 (1) - 0 [08:42:29]OFD Sender: Remove packet 72811 [08:42:29]ProducePacketName [08:42:29]name=ofd_packets/00072811 [08:42:29]NVStorageDeleteData [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:34]accept exits with 7 [08:43:34]New connection [08:43:34]New thread 3066789220 created [08:43:34]Thread 3066645860 joined [08:43:34]Waiting for new connection... [08:43:34] Sock 7.Parse request [08:43:34]Sock 7.Check first char [08:43:34]Sock 7.First char is OK [08:43:34]request: POST /json_proto HTTP/1.0 [08:43:34]Method: POST [08:43:34]URL: /json_proto [08:43:34]Method is POST - this is cgi request [08:43:34]url: /json_proto [08:43:34]query_string will be loaded in cgi processing [08:43:34]execute_cgi json_proto POST (null) [08:43:34]execute_cgi path=json_proto method=POST [08:43:34]POST find Content-Length [08:43:34]Host: 172.17.43.195:8080 [08:43:34]Content-Length: 677 [08:43:34]Content-Type: application/json [08:43:34] [08:43:34]POST finish read [08:43:34]Found Content-Length = 677 [08:43:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:34]execute_script... [08:43:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:34]POST & json_proto [08:43:34]process_json_proto [08:43:34]json parsed OK: [08:43:34]protocol is kg_v1.0 [08:43:34]action value=close_receipt [08:43:34]process_action close_receipt [08:43:34]cmd_close_receipt [08:43:34]MH_GetDate [08:43:34]Write to MH i2c: F0 00 00 04 03 F6 [08:43:34]Write i2c OK [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: F0 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: F0 09 00 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: F0 09 00 04 03 00 B7 F1 21 67 74 2C AD 66 E2 [08:43:34]GetLastDocTimeStamp 1730277745 [08:43:34]current date 1730277815 [08:43:34]FM_GetShiftState [08:43:34]SAM_PROTO_GetShiftState [08:43:34]wFMCommunicate request_size=4 [08:43:34]MH_SAM_APDU [08:43:34]CAPDU: 80 13 01 00 [08:43:34]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [08:43:34]Write i2c OK [08:43:34]MH_I2C_Read... [08:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:34]Read from MH i2c: E2 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: E2 0E 00 [08:43:34]MH_I2C_Read... [08:43:34]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 57 [08:43:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:43:34]wFMCommunicate OK [08:43:34]SAM_PROTO_GetShiftState done [08:43:34]FM_GetShiftState done [08:43:34]opened in 1730247109 [08:43:34]opened+sec_in_day 1730333509 [08:43:34]quantity*price = 40068 [08:43:34]sum+1 = 40069 [08:43:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 49 30.10.2024 08:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72812 ФПД: 2729279056432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084335&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72812&fm=2729279056432&tin=02508201610067®Number=0000000000091644&sum=40000 [08:43:35]StoreToDocumentArchive [08:43:35]shift 556 fd 72812 [08:43:35]save to /storage/0556/doc_00072812 [08:43:35]save last doc name /storage/0556/doc_00072812 to /storage/kkm_last_doc_name [08:43:35]save OK [08:43:35]Clear old archive folders... [08:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:35]tlvbuf is 011C5380 [08:43:35]SAM_PROTO_ClearQueue [08:43:35]wFMCommunicate request_size=4 [08:43:35]MH_SAM_APDU [08:43:35]CAPDU: 80 09 00 00 [08:43:35]Write to MH i2c: E2 08 00 12 03 80 09 00 00 00 00 00 00 87 [08:43:35]Write i2c OK [08:43:35]MH_I2C_Read... [08:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:35]Read from MH i2c: E2 [08:43:35]MH_I2C_Read... [08:43:35]Read from MH i2c: E2 03 00 [08:43:35]MH_I2C_Read... [08:43:35]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [08:43:35]RAPDU: 90 00 [08:43:35]wFMCommunicate OK [08:43:35]SAM_PROTO_ClearQueue done [08:43:35]KKMCreateOFDPacket [08:43:35]OFDProtocolAddRootSTLVToBuf [08:43:35]FM_MakeSignedData [08:43:35]FM_MakeSignedData [08:43:35]SAM_PROTO_SignData [08:43:35]wFMCommunicate request_size=4 [08:43:35]MH_SAM_APDU [08:43:35]CAPDU: 80 0D 01 02 [08:43:35]Write to MH i2c: E2 08 00 13 03 80 0D 01 02 00 00 00 00 8F [08:43:35]Write i2c OK [08:43:35]MH_I2C_Read... [08:43:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:35]Read from MH i2c: E2 [08:43:35]MH_I2C_Read... [08:43:35]Read from MH i2c: E2 03 00 [08:43:35]MH_I2C_Read... [08:43:35]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [08:43:35]RAPDU: 90 00 [08:43:35]wFMCommunicate OK [08:43:35]wFMCommunicate request_size=255 [08:43:35]MH_SAM_APDU [08:43:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 B7 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1C 01 00 35 04 06 00 02 [08:43:35]Write to MH i2c: E2 02 01 14 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 B7 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1C 01 00 35 04 06 00 02 00 00 E5 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [08:43:36]RAPDU: 90 00 [08:43:36]wFMCommunicate OK [08:43:36]wFMCommunicate request_size=10 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 0D 02 02 05 7B 75 B5 6A 30 [08:43:36]Write to MH i2c: E2 0D 00 15 03 80 0D 02 02 05 00 7B 75 B5 6A 30 00 00 DB [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [08:43:36]RAPDU: 90 00 [08:43:36]wFMCommunicate OK [08:43:36]wFMCommunicate request_size=4 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 0D 03 02 [08:43:36]Write to MH i2c: E2 08 00 16 03 80 0D 03 02 00 00 00 00 94 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 0B 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 0B 00 16 03 00 B6 9C B7 42 A9 13 40 A7 90 00 83 [08:43:36]RAPDU: B6 9C B7 42 A9 13 40 A7 90 00 [08:43:36]wFMCommunicate OK [08:43:36]SAM_PROTO_SignData done [08:43:36]FM_MakeSignedData done [08:43:36]CreateOFDProtocolMessage [08:43:36]wFMCommunicate request_size=4 [08:43:36]MH_SAM_APDU [08:43:36]CAPDU: 80 11 00 00 [08:43:36]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:36]Read from MH i2c: E2 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 17 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E8 [08:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:43:36]wFMCommunicate OK [08:43:36]CreateOFDProtocolMessage done [08:43:36]OFDSenderStorePacket 72812 [08:43:36]StoreOFDPacket docnum=72812 [08:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 29 C4 07 01 20 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 B7 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1C 01 00 35 04 06 00 02 7B 75 B5 6A 30 B6 9C B7 42 A9 13 40 A7 [08:43:36]CheckFolder [08:43:36]dirname=/storage/ofd_packets [08:43:36]CheckFolder done [08:43:36]ProducePacketName [08:43:36]name=ofd_packets/00072812 [08:43:36]NVStorageSaveData ofd_packets/00072812 [08:43:36]File name is /storage/ofd_packets/00072812 [08:43:36]Write 301 bytes [08:43:36]NVStorageSaveData done [08:43:36]OFDSenderStorePacket done [08:43:36]KKMCreateOFDPacket done [08:43:36]NVStorageSaveData kkm_last_timestamp [08:43:36]File name is /storage/kkm_last_timestamp [08:43:36]Write 4 bytes [08:43:36]NVStorageSaveData done [08:43:36]ExternCall_PrintAddStr [08:43:36]wPrintStart [08:43:36]Write to MH i2c: 01 00 00 18 03 1B [08:43:36]Write i2c OK [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: 01 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: 01 07 00 [08:43:36]MH_I2C_Read... [08:43:36]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 FF 0F 30 [08:43:36]RasterBufferAndPrint [08:43:36]line Счет N : (1)952369 [08:43:36]line ИНН: 02508201610067 [08:43:36]line Контрольно-Кассовый Чек [08:43:36]line ПРОДАЖА [08:43:36]line ТРК (МРК, ГНК) : 41 [08:43:36]line Товар: 2710124500 [08:43:36]line Аи-95-К-3 [08:43:36]line 5.400 * 74.20 [08:43:36]line = 400.68 [08:43:36]line НДС 12% НСП 1% [08:43:36]line > о реализуемом товаре [08:43:36]line ОКРУГЛЕНИЕ: -0.68 [08:43:36]line ИТОГО: 400.00 [08:43:36]line Внесено: 400.00 [08:43:36]line СДАЧА: 0.00 [08:43:36]line НСП 1% : 3.55 [08:43:36]line НДС 12% : 42.55 [08:43:36]line Наличными: 400.00 [08:43:36]line Безнал.: 0.00 [08:43:36]line Место: АЗС № 113 "Партнер Нефть" [08:43:36]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:43:36]line СНО: Общий режим [08:43:36]line Чек 49 30.10.2024 08:43 [08:43:36]line Смена: 556 ФФД: 1.0 [08:43:36]line ЗНМ: 0300000087 [08:43:36]line РНМ: 0000000000091644 [08:43:36]line Версия ККМ: 001 [08:43:36]line ФМ: 0000000000874662 [08:43:36]line ФД: 72812 [08:43:36]line ФПД: 2729279056432 [08:43:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T084335&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72812&fm=2729279056432&tin=02508201610067®Number=0000000000091644&sum=40000 [08:43:36]OFD Sender: Processing packet 72812 [packets to send 278, broken 277] [08:43:36]ProducePacketName [08:43:36]name=ofd_packets/00072812 [08:43:36]OFD Sender: To server: pG, [08:43:36]CommunicateWithHost lk.salyk.kg:30040 [08:43:36]ConnectInit lk.salyk.kg [08:43:36]written 0, free lines is 4095 [08:43:37]Write to MH i2c: 01 00 00 43 03 46 [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: 01 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: 01 07 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 CC 0C 25 [08:43:37]RasterBufferAndPrint [08:43:37]line [08:43:37]line [08:43:37]line [08:43:37]line [08:43:37]line [08:43:37]written 0, free lines is 3283 [08:43:37]MH_Cut [08:43:37]Write to MH i2c: D1 01 00 4A 03 01 1F [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: D1 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: D1 01 00 [08:43:37]MH_I2C_Read... [08:43:37]Read from MH i2c: D1 01 00 4A 03 00 1E [08:43:37]Write to MH i2c: 01 00 00 4B 03 4E [08:43:37]Write i2c OK [08:43:37]MH_I2C_Read... [08:43:37]*** Cut start [08:43:37]*** Partial cut [08:43:37]*** CUTSNS_PIN = 1 [08:43:38]*** CUTSNS_PIN = 0 [08:43:38]*** Brake cut motor [08:43:38]Connected sock=11 [08:43:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 29 C4 07 01 20 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 B7 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1C 01 00 35 04 06 00 02 7B 75 B5 6A 30 B6 9C B7 42 A9 13 40 A7 [08:43:38]Read from MH i2c: 01 [08:43:38]MH_I2C_Read... [08:43:38]*** Stop cut motor [08:43:38]*** Cut end [08:43:38]Read from MH i2c: 01 07 00 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 FF 0F 63 [08:43:38]process_action close_receipt done [08:43:38]requested_data is exist [08:43:38]produce_requested_data [08:43:38]requested_item fm.sn is exist - process it [08:43:38]wFMCommunicate request_size=4 [08:43:38]MH_SAM_APDU [08:43:38]CAPDU: 80 11 00 00 [08:43:38]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [08:43:38]Write i2c OK [08:43:38]MH_I2C_Read... [08:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:38]Read from MH i2c: E2 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: E2 17 00 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1D [08:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:43:38]wFMCommunicate OK [08:43:38]requested_item fd.num is exist - process it [08:43:38]SAM_PROTO_GetFieldsCounters [08:43:38]wFMCommunicate request_size=4 [08:43:38]MH_SAM_APDU [08:43:38]CAPDU: 80 13 00 00 [08:43:38]Write to MH i2c: E2 08 00 4D 03 80 13 00 00 00 00 00 00 CC [08:43:38]Write i2c OK [08:43:38]MH_I2C_Read... [08:43:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:38]Read from MH i2c: E2 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: E2 62 00 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: E2 62 00 4D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6C 1C 01 00 0E 04 04 00 2C 02 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 37 [08:43:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6C 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:38]wFMCommunicate OK [08:43:38]SAM_PROTO_GetFieldsCounters done [08:43:38]requested_item shift.num is exist - process it [08:43:38]requested_item shift.opened is exist - process it [08:43:38]req_shift_opened [08:43:38]FM_GetShiftState [08:43:38]SAM_PROTO_GetShiftState [08:43:38]wFMCommunicate request_size=4 [08:43:38]MH_SAM_APDU [08:43:38]CAPDU: 80 13 01 00 [08:43:38]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [08:43:38]Write i2c OK [08:43:38]MH_I2C_Read... [08:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:38]Read from MH i2c: E2 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: E2 0E 00 [08:43:38]MH_I2C_Read... [08:43:38]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A0 [08:43:38]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:43:38]wFMCommunicate OK [08:43:38]SAM_PROTO_GetShiftState done [08:43:38]FM_GetShiftState done [08:43:38]req_shift_opened done [08:43:38]requested_item shift.open_date is exist - process it [08:43:38]req_shift_open_date [08:43:38]req_shift_open_date done [08:43:38]produce_requested_data done [08:43:38]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72812,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:43:38]process_action_free close_receipt [08:43:38]json_value_free [08:43:38]json_value_free done [08:43:38]process_json_proto returns [08:43:38]Send response to host [08:43:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72812,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:43:38]free response buf [08:43:38]execute_script done [08:43:38]execute_script returns [08:43:38]free content buf [08:43:38]Sock 7.Close socket [08:43:38]Sock 7.Thread stoped [08:43:43]recv_with_timeout no data received [08:43:43]CommunicateWithHost answer receiving error [08:43:43]CommunicateWithHost err = -3 [08:43:43]OFD Sender: Server communicate error [08:43:48]OFD Sender: Processing packet 72812 [packets to send 278, broken 277] [08:43:48]ProducePacketName [08:43:48]name=ofd_packets/00072812 [08:43:48]OFD Sender: To server: pG, [08:43:48]CommunicateWithHost lk.salyk.kg:30040 [08:43:48]ConnectInit lk.salyk.kg [08:43:50]Connected sock=9 [08:43:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 29 C4 07 01 20 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 31 00 00 00 F4 03 04 00 B7 F1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1C 01 00 35 04 06 00 02 7B 75 B5 6A 30 B6 9C B7 42 A9 13 40 A7 [08:43:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DE 99 47 00 7A 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1C 01 00 F4 03 04 00 7E 9C 21 67 B6 04 01 00 00 DB 4E CD A2 01 4D C3 49 [08:43:51]CommunicateWithHost err = 0 [08:43:51]CheckOFDResponse [08:43:51]1017 (14) - 77093643461234 [08:43:51]1041 (16) - 0000000000874662 [08:43:51]1040 (4) - 72812 [08:43:51]1012 (4) - 30.10.2024 02:39 [08:43:51]1206 (1) - 0 [08:43:51]OFD Sender: Remove packet 72812 [08:43:51]ProducePacketName [08:43:51]name=ofd_packets/00072812 [08:43:51]NVStorageDeleteData [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:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:03]recv_with_timeout no data received [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:14]recv_with_timeout no data received [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:51]recv_with_timeout no data received [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:17]recv_with_timeout no data received [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:51]recv_with_timeout no data received [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]accept exits with 10 [08:53:37]New connection [08:53:37]New thread 3066645860 created [08:53:37]Thread 3066789220 joined [08:53:37]Waiting for new connection... [08:53:37] Sock 10.Parse request [08:53:37]Sock 10.Check first char [08:53:37]Sock 10.First char is OK [08:53:37]request: POST /json_proto HTTP/1.0 [08:53:37]Method: POST [08:53:37]URL: /json_proto [08:53:37]Method is POST - this is cgi request [08:53:37]url: /json_proto [08:53:37]query_string will be loaded in cgi processing [08:53:37]execute_cgi json_proto POST (null) [08:53:37]execute_cgi path=json_proto method=POST [08:53:37]POST find Content-Length [08:53:37]Host: 172.17.43.195:8080 [08:53:37]Content-Length: 791 [08:53:37]Content-Type: application/json [08:53:37] [08:53:37]POST finish read [08:53:37]Found Content-Length = 791 [08:53:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:37]execute_script... [08:53: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)952370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:37]POST & json_proto [08:53:37]process_json_proto [08:53:37]json parsed OK: [08:53:37]protocol is kg_v1.0 [08:53:37]action value=close_receipt [08:53:37]process_action close_receipt [08:53:37]cmd_close_receipt [08:53:37]MH_GetDate [08:53:37]Write to MH i2c: F0 00 00 4F 03 41 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: F0 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: F0 09 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: F0 09 00 4F 03 00 11 F4 21 67 74 2C AD 66 8A [08:53:37]GetLastDocTimeStamp 1730277815 [08:53:37]current date 1730278417 [08:53:37]FM_GetShiftState [08:53:37]SAM_PROTO_GetShiftState [08:53:37]wFMCommunicate request_size=4 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 13 01 00 [08:53:37]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 0E 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A2 [08:53:37]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:53:37]wFMCommunicate OK [08:53:37]SAM_PROTO_GetShiftState done [08:53:37]FM_GetShiftState done [08:53:37]opened in 1730247109 [08:53:37]opened+sec_in_day 1730333509 [08:53:37]quantity*price = 0 [08:53:37]sum+1 = 1 [08:53:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 50 30.10.2024 08:53 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72813 ФПД: 265558108494710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085337&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72813&fm=265558108494710&tin=02508201610067®Number=0000000000091644&sum=0 [08:53:38]StoreToDocumentArchive [08:53:38]shift 556 fd 72813 [08:53:38]save to /storage/0556/doc_00072813 [08:53:38]save last doc name /storage/0556/doc_00072813 to /storage/kkm_last_doc_name [08:53:38]save OK [08:53:38]Clear old archive folders... [08:53:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:38]tlvbuf is 0115BEB0 [08:53:38]SAM_PROTO_ClearQueue [08:53:38]wFMCommunicate request_size=4 [08:53:38]MH_SAM_APDU [08:53:38]CAPDU: 80 09 00 00 [08:53:38]Write to MH i2c: E2 08 00 5D 03 80 09 00 00 00 00 00 00 D2 [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:38]Read from MH i2c: E2 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 03 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [08:53:38]RAPDU: 90 00 [08:53:38]wFMCommunicate OK [08:53:38]SAM_PROTO_ClearQueue done [08:53:38]KKMCreateOFDPacket [08:53:38]OFDProtocolAddRootSTLVToBuf [08:53:38]FM_MakeSignedData [08:53:38]FM_MakeSignedData [08:53:38]SAM_PROTO_SignData [08:53:38]wFMCommunicate request_size=4 [08:53:38]MH_SAM_APDU [08:53:38]CAPDU: 80 0D 01 02 [08:53:38]Write to MH i2c: E2 08 00 5E 03 80 0D 01 02 00 00 00 00 DA [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:38]Read from MH i2c: E2 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 03 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [08:53:38]RAPDU: 90 00 [08:53:38]wFMCommunicate OK [08:53:38]wFMCommunicate request_size=255 [08:53:38]MH_SAM_APDU [08:53: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 11 F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1C 01 00 35 04 06 00 F1 [08:53:38]Write to MH i2c: E2 02 01 5F 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 11 F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1C 01 00 35 04 06 00 F1 00 00 E7 [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:39]Read from MH i2c: E2 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [08:53:39]RAPDU: 90 00 [08:53:39]wFMCommunicate OK [08:53:39]wFMCommunicate request_size=10 [08:53:39]MH_SAM_APDU [08:53:39]CAPDU: 80 0D 02 02 05 86 10 B9 5B 76 [08:53:39]Write to MH i2c: E2 0D 00 60 03 80 0D 02 02 05 00 86 10 B9 5B 76 00 00 07 [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:39]Read from MH i2c: E2 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [08:53:39]RAPDU: 90 00 [08:53:39]wFMCommunicate OK [08:53:39]wFMCommunicate request_size=4 [08:53:39]MH_SAM_APDU [08:53:39]CAPDU: 80 0D 03 02 [08:53:39]Write to MH i2c: E2 08 00 61 03 80 0D 03 02 00 00 00 00 DF [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:39]Read from MH i2c: E2 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 0B 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 0B 00 61 03 00 DE 67 C9 0F 38 CD 83 4B 90 00 D0 [08:53:39]RAPDU: DE 67 C9 0F 38 CD 83 4B 90 00 [08:53:39]wFMCommunicate OK [08:53:39]SAM_PROTO_SignData done [08:53:39]FM_MakeSignedData done [08:53:39]CreateOFDProtocolMessage [08:53:39]wFMCommunicate request_size=4 [08:53:39]MH_SAM_APDU [08:53:39]CAPDU: 80 11 00 00 [08:53:39]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:39]Read from MH i2c: E2 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 17 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [08:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:53:39]wFMCommunicate OK [08:53:39]CreateOFDProtocolMessage done [08:53:39]OFDSenderStorePacket 72813 [08:53:39]StoreOFDPacket docnum=72813 [08:53:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 97 5B 07 01 13 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 11 F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1C 01 00 35 04 06 00 F1 86 10 B9 5B 76 DE 67 C9 0F 38 CD 83 4B [08:53:39]CheckFolder [08:53:39]dirname=/storage/ofd_packets [08:53:39]CheckFolder done [08:53:39]ProducePacketName [08:53:39]name=ofd_packets/00072813 [08:53:39]NVStorageSaveData ofd_packets/00072813 [08:53:39]File name is /storage/ofd_packets/00072813 [08:53:39]Write 301 bytes [08:53:39]NVStorageSaveData done [08:53:39]OFDSenderStorePacket done [08:53:39]KKMCreateOFDPacket done [08:53:39]NVStorageSaveData kkm_last_timestamp [08:53:39]File name is /storage/kkm_last_timestamp [08:53:39]Write 4 bytes [08:53:39]NVStorageSaveData done [08:53:39]ExternCall_PrintAddStr [08:53:39]wPrintStart [08:53:39]Write to MH i2c: 01 00 00 63 03 66 [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: 01 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: 01 07 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: 01 07 00 63 03 00 00 00 00 00 FF 0F 7B [08:53:39]RasterBufferAndPrint [08:53:39]line Счет N : (1)952370 [08:53:39]line ИНН: 02508201610067 [08:53:39]line Контрольно-Кассовый Чек [08:53:39]line ПРОДАЖА [08:53:39]line ТРК (МРК, ГНК) : 53 [08:53:39]line Товар: 2710124130 [08:53:39]line Аи-92-К-5 [08:53:39]line 5.000 * 0.00 [08:53:39]line = 0.00 [08:53:39]line НДС 12% НСП 1% [08:53:39]line > о реализуемом товаре [08:53:39]line ИТОГО: 0.00 [08:53:39]line НСП 1% : 0.00 [08:53:39]line НДС 12% : 0.00 [08:53:39]line Наличными: 0.00 [08:53:39]line Безнал.: 0.00 [08:53:39]line Место: АЗС № 113 "Партнер Нефть" [08:53:39]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:53:39]line СНО: Общий режим [08:53:39]line Чек 50 30.10.2024 08:53 [08:53:39]line Смена: 556 ФФД: 1.0 [08:53:39]line ЗНМ: 0300000087 [08:53:39]line РНМ: 0000000000091644 [08:53:39]line Версия ККМ: 001 [08:53:39]line Талоны: Топливная Карта [08:53:39]line 03047 [08:53:39]line ФМ: 0000000000874662 [08:53:39]line ФД: 72813 [08:53:39]line ФПД: 265558108494710 [08:53:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085337&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72813&fm=265558108494710&tin=02508201610067®Number=0000000000091644&sum=0 [08:53:39]written 0, free lines is 4095 [08:53:39]OFD Sender: Processing packet 72813 [packets to send 278, broken 277] [08:53:39]ProducePacketName [08:53:39]name=ofd_packets/00072813 [08:53:39]OFD Sender: To server: pG, [08:53:39]CommunicateWithHost lk.salyk.kg:30040 [08:53:39]ConnectInit lk.salyk.kg [08:53:39]Write to MH i2c: 01 00 00 8D 03 90 [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: 01 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: 01 07 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 E1 0C 84 [08:53:39]RasterBufferAndPrint [08:53:39]line [08:53:39]line [08:53:39]line [08:53:39]line [08:53:39]line [08:53:39]written 0, free lines is 3303 [08:53:39]MH_Cut [08:53:39]Write to MH i2c: D1 01 00 94 03 01 69 [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: D1 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: D1 01 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: D1 01 00 94 03 00 68 [08:53:39]Write to MH i2c: 01 00 00 95 03 98 [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:40]*** Cut start [08:53:40]*** Partial cut [08:53:40]*** CUTSNS_PIN = 1 [08:53:40]*** CUTSNS_PIN = 0 [08:53:40]*** Brake cut motor [08:53:41]Read from MH i2c: 01 [08:53:41]MH_I2C_Read... [08:53:41]*** Stop cut motor [08:53:41]*** Cut end [08:53:41]Read from MH i2c: 01 07 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [08:53:41]process_action close_receipt done [08:53:41]requested_data is exist [08:53:41]produce_requested_data [08:53:41]requested_item fm.sn is exist - process it [08:53:41]wFMCommunicate request_size=4 [08:53:41]MH_SAM_APDU [08:53:41]CAPDU: 80 11 00 00 [08:53:41]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [08:53:41]Write i2c OK [08:53:41]MH_I2C_Read... [08:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:41]Read from MH i2c: E2 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 17 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 67 [08:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:53:41]wFMCommunicate OK [08:53:41]requested_item fd.num is exist - process it [08:53:41]SAM_PROTO_GetFieldsCounters [08:53:41]wFMCommunicate request_size=4 [08:53:41]MH_SAM_APDU [08:53:41]CAPDU: 80 13 00 00 [08:53:41]Write to MH i2c: E2 08 00 97 03 80 13 00 00 00 00 00 00 16 [08:53:41]Write i2c OK [08:53:41]MH_I2C_Read... [08:53:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:41]Read from MH i2c: E2 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 62 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 62 00 97 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6D 1C 01 00 0E 04 04 00 2C 02 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 85 [08:53:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6D 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:41]wFMCommunicate OK [08:53:41]SAM_PROTO_GetFieldsCounters done [08:53:41]requested_item shift.num is exist - process it [08:53:41]requested_item shift.opened is exist - process it [08:53:41]req_shift_opened [08:53:41]FM_GetShiftState [08:53:41]SAM_PROTO_GetShiftState [08:53:41]wFMCommunicate request_size=4 [08:53:41]MH_SAM_APDU [08:53:41]CAPDU: 80 13 01 00 [08:53:41]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [08:53:41]Write i2c OK [08:53:41]MH_I2C_Read... [08:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:41]Read from MH i2c: E2 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 0E 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 EA [08:53:41]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:53:41]wFMCommunicate OK [08:53:41]SAM_PROTO_GetShiftState done [08:53:41]FM_GetShiftState done [08:53:41]req_shift_opened done [08:53:41]requested_item shift.open_date is exist - process it [08:53:41]req_shift_open_date [08:53:41]req_shift_open_date done [08:53:41]produce_requested_data done [08:53:41]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72813,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:53:41]process_action_free close_receipt [08:53:41]json_value_free [08:53:41]json_value_free done [08:53:41]process_json_proto returns [08:53:41]Send response to host [08:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72813,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:53:41]free response buf [08:53:41]execute_script done [08:53:41]execute_script returns [08:53:41]free content buf [08:53:41]Sock 10.Close socket [08:53:41]Sock 10.Thread stoped [08:53:44]ConnectInit Can't take IP for lk.salyk.kg [08:53:44]CommunicateWithHost connect error [08:53:44]CommunicateWithHost err = -1 [08:53:44]OFD Sender: Server communicate error [08:53:49]OFD Sender: Processing packet 72813 [packets to send 278, broken 277] [08:53:49]ProducePacketName [08:53:49]name=ofd_packets/00072813 [08:53:49]OFD Sender: To server: pG, [08:53:49]CommunicateWithHost lk.salyk.kg:30040 [08:53:49]ConnectInit lk.salyk.kg [08:53:58]recv_with_timeout no data received [08:54:00]Connected sock=10 [08:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 97 5B 07 01 13 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 11 F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1C 01 00 35 04 06 00 F1 86 10 B9 5B 76 DE 67 C9 0F 38 CD 83 4B [08:54:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A2 01 47 00 B7 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1C 01 00 F4 03 04 00 E0 9E 21 67 B6 04 01 00 00 42 BC 4A BB 06 23 20 C2 [08:54:02]CommunicateWithHost err = 0 [08:54:02]CheckOFDResponse [08:54:02]1017 (14) - 77093643461234 [08:54:02]1041 (16) - 0000000000874662 [08:54:02]1040 (4) - 72813 [08:54:02]1012 (4) - 30.10.2024 02:50 [08:54:02]1206 (1) - 0 [08:54:02]OFD Sender: Remove packet 72813 [08:54:02]ProducePacketName [08:54:02]name=ofd_packets/00072813 [08:54:02]NVStorageDeleteData [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:33]recv_with_timeout no data received [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:01]recv_with_timeout no data received [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:39]accept exits with 9 [08:57:39]New connection [08:57:39]New thread 3066789220 created [08:57:39]Thread 3066645860 joined [08:57:39]Waiting for new connection... [08:57:39] Sock 9.Parse request [08:57:39]Sock 9.Check first char [08:57:39]Sock 9.First char is OK [08:57:39]request: POST /json_proto HTTP/1.0 [08:57:39]Method: POST [08:57:39]URL: /json_proto [08:57:39]Method is POST - this is cgi request [08:57:39]url: /json_proto [08:57:39]query_string will be loaded in cgi processing [08:57:39]execute_cgi json_proto POST (null) [08:57:39]execute_cgi path=json_proto method=POST [08:57:39]POST find Content-Length [08:57:39]Host: 172.17.43.195:8080 [08:57:39]Content-Length: 685 [08:57:39]Content-Type: application/json [08:57:39] [08:57:39]POST finish read [08:57:39]Found Content-Length = 685 [08:57:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:39]execute_script... [08:57:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:39]POST & json_proto [08:57:39]process_json_proto [08:57:39]json parsed OK: [08:57:39]protocol is kg_v1.0 [08:57:39]action value=close_receipt [08:57:39]process_action close_receipt [08:57:39]cmd_close_receipt [08:57:39]MH_GetDate [08:57:39]Write to MH i2c: F0 00 00 99 03 8B [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: F0 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: F0 09 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: F0 09 00 99 03 00 03 F5 21 67 74 2C AD 66 C7 [08:57:39]GetLastDocTimeStamp 1730278417 [08:57:39]current date 1730278659 [08:57:39]FM_GetShiftState [08:57:39]SAM_PROTO_GetShiftState [08:57:39]wFMCommunicate request_size=4 [08:57:39]MH_SAM_APDU [08:57:39]CAPDU: 80 13 01 00 [08:57:39]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:39]Read from MH i2c: E2 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 0E 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 EC [08:57:39]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:57:39]wFMCommunicate OK [08:57:39]SAM_PROTO_GetShiftState done [08:57:39]FM_GetShiftState done [08:57:39]opened in 1730247109 [08:57:39]opened+sec_in_day 1730333509 [08:57:39]quantity*price = 100011 [08:57:39]sum+1 = 100013 [08:57:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 51 30.10.2024 08:57 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72814 ФПД: 64028275510974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085739&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72814&fm=64028275510974&tin=02508201610067®Number=0000000000091644&sum=100000 [08:57:40]StoreToDocumentArchive [08:57:40]shift 556 fd 72814 [08:57:40]save to /storage/0556/doc_00072814 [08:57:40]save last doc name /storage/0556/doc_00072814 to /storage/kkm_last_doc_name [08:57:40]save OK [08:57:40]Clear old archive folders... [08:57:40]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:57:40]tlvbuf is 011D4EB0 [08:57:40]SAM_PROTO_ClearQueue [08:57:40]wFMCommunicate request_size=4 [08:57:40]MH_SAM_APDU [08:57:40]CAPDU: 80 09 00 00 [08:57:40]Write to MH i2c: E2 08 00 A7 03 80 09 00 00 00 00 00 00 1C [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:40]Read from MH i2c: E2 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 03 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [08:57:40]RAPDU: 90 00 [08:57:40]wFMCommunicate OK [08:57:40]SAM_PROTO_ClearQueue done [08:57:40]KKMCreateOFDPacket [08:57:40]OFDProtocolAddRootSTLVToBuf [08:57:40]FM_MakeSignedData [08:57:40]FM_MakeSignedData [08:57:40]SAM_PROTO_SignData [08:57:40]wFMCommunicate request_size=4 [08:57:40]MH_SAM_APDU [08:57:40]CAPDU: 80 0D 01 02 [08:57:40]Write to MH i2c: E2 08 00 A8 03 80 0D 01 02 00 00 00 00 24 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:40]Read from MH i2c: E2 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 03 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [08:57:40]RAPDU: 90 00 [08:57:40]wFMCommunicate OK [08:57:40]wFMCommunicate request_size=255 [08:57:40]MH_SAM_APDU [08:57:40]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 03 F5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1C 01 00 35 04 06 00 3A 3B [08:57:40]Write to MH i2c: E2 02 01 A9 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 03 F5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1C 01 00 35 04 06 00 3A 3B 00 00 66 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:40]Read from MH i2c: E2 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 03 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [08:57:40]RAPDU: 90 00 [08:57:40]wFMCommunicate OK [08:57:40]wFMCommunicate request_size=9 [08:57:40]MH_SAM_APDU [08:57:40]CAPDU: 80 0D 02 02 04 BE 9E 0E BE [08:57:40]Write to MH i2c: E2 0C 00 AA 03 80 0D 02 02 04 00 BE 9E 0E BE 00 00 57 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:40]Read from MH i2c: E2 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 03 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [08:57:40]RAPDU: 90 00 [08:57:40]wFMCommunicate OK [08:57:40]wFMCommunicate request_size=4 [08:57:40]MH_SAM_APDU [08:57:40]CAPDU: 80 0D 03 02 [08:57:40]Write to MH i2c: E2 08 00 AB 03 80 0D 03 02 00 00 00 00 29 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:40]Read from MH i2c: E2 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 0B 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 0B 00 AB 03 00 46 E5 35 A4 3B 6A 29 93 90 00 8F [08:57:40]RAPDU: 46 E5 35 A4 3B 6A 29 93 90 00 [08:57:40]wFMCommunicate OK [08:57:40]SAM_PROTO_SignData done [08:57:40]FM_MakeSignedData done [08:57:40]CreateOFDProtocolMessage [08:57:40]wFMCommunicate request_size=4 [08:57:40]MH_SAM_APDU [08:57:40]CAPDU: 80 11 00 00 [08:57:40]Write to MH i2c: E2 08 00 AC 03 80 11 00 00 00 00 00 00 29 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:40]Read from MH i2c: E2 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 17 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: E2 17 00 AC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [08:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:57:40]wFMCommunicate OK [08:57:40]CreateOFDProtocolMessage done [08:57:40]OFDSenderStorePacket 72814 [08:57:40]StoreOFDPacket docnum=72814 [08:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 39 86 06 01 3A B5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 03 F5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1C 01 00 35 04 06 00 3A 3B BE 9E 0E BE 46 E5 35 A4 3B 6A 29 93 [08:57:40]CheckFolder [08:57:40]dirname=/storage/ofd_packets [08:57:40]CheckFolder done [08:57:40]ProducePacketName [08:57:40]name=ofd_packets/00072814 [08:57:40]NVStorageSaveData ofd_packets/00072814 [08:57:40]File name is /storage/ofd_packets/00072814 [08:57:40]Write 300 bytes [08:57:40]NVStorageSaveData done [08:57:40]OFDSenderStorePacket done [08:57:40]KKMCreateOFDPacket done [08:57:40]NVStorageSaveData kkm_last_timestamp [08:57:40]File name is /storage/kkm_last_timestamp [08:57:40]Write 4 bytes [08:57:40]NVStorageSaveData done [08:57:40]ExternCall_PrintAddStr [08:57:40]wPrintStart [08:57:40]Write to MH i2c: 01 00 00 AD 03 B0 [08:57:40]Write i2c OK [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: 01 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: 01 07 00 [08:57:40]MH_I2C_Read... [08:57:40]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 FF 0F C5 [08:57:40]RasterBufferAndPrint [08:57:40]line Счет N : (1)952371 [08:57:40]line ИНН: 02508201610067 [08:57:40]line Контрольно-Кассовый Чек [08:57:40]line ПРОДАЖА [08:57:40]line ТРК (МРК, ГНК) : 71 [08:57:40]line Товар: 2711190000 [08:57:40]line ГАЗ-К-3 [08:57:40]line 25.710 * 38.90 [08:57:40]line = 1000.12 [08:57:40]line НДС 12% НСП 1% [08:57:40]line > о реализуемом товаре [08:57:40]line ОКРУГЛЕНИЕ: -0.12 [08:57:40]line ИТОГО: 1000.00 [08:57:40]line Внесено: 1000.00 [08:57:40]line СДАЧА: 0.00 [08:57:40]line НСП 1% : 8.85 [08:57:40]line НДС 12% : 106.21 [08:57:40]line Наличными: 1000.00 [08:57:40]line Безнал.: 0.00 [08:57:40]line Место: АЗС № 113 "Партнер Нефть" [08:57:40]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:57:40]line СНО: Общий режим [08:57:40]line Чек 51 30.10.2024 08:57 [08:57:40]line Смена: 556 ФФД: 1.0 [08:57:40]line ЗНМ: 0300000087 [08:57:40]line РНМ: 0000000000091644 [08:57:40]line Версия ККМ: 001 [08:57:40]line ФМ: 0000000000874662 [08:57:40]line ФД: 72814 [08:57:40]line ФПД: 64028275510974 [08:57:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085739&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72814&fm=64028275510974&tin=02508201610067®Number=0000000000091644&sum=100000 [08:57:40]written 0, free lines is 4095 [08:57:40]OFD Sender: Processing packet 72814 [packets to send 278, broken 277] [08:57:40]ProducePacketName [08:57:40]name=ofd_packets/00072814 [08:57:40]OFD Sender: To server: pG, [08:57:40]CommunicateWithHost lk.salyk.kg:30040 [08:57:40]ConnectInit lk.salyk.kg [08:57:41]Write to MH i2c: 01 00 00 D8 03 DB [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: 01 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: 01 07 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 CD 0C BB [08:57:41]RasterBufferAndPrint [08:57:41]line [08:57:41]line [08:57:41]line [08:57:41]line [08:57:41]line [08:57:41]written 0, free lines is 3283 [08:57:41]MH_Cut [08:57:41]Write to MH i2c: D1 01 00 DF 03 01 B4 [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: D1 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: D1 01 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: D1 01 00 DF 03 00 B3 [08:57:41]Write to MH i2c: 01 00 00 E0 03 E3 [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:42]*** Cut start [08:57:42]*** Partial cut [08:57:42]*** CUTSNS_PIN = 1 [08:57:42]*** CUTSNS_PIN = 0 [08:57:42]*** Brake cut motor [08:57:42]Connected sock=10 [08:57:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 39 86 06 01 3A B5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 03 F5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1C 01 00 35 04 06 00 3A 3B BE 9E 0E BE 46 E5 35 A4 3B 6A 29 93 [08:57:42]Read from MH i2c: 01 [08:57:42]MH_I2C_Read... [08:57:42]*** Stop cut motor [08:57:42]*** Cut end [08:57:42]Read from MH i2c: 01 07 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: 01 07 00 E0 03 00 00 00 00 00 FF 0F F8 [08:57:42]process_action close_receipt done [08:57:42]requested_data is exist [08:57:42]produce_requested_data [08:57:42]requested_item fm.sn is exist - process it [08:57:42]wFMCommunicate request_size=4 [08:57:42]MH_SAM_APDU [08:57:42]CAPDU: 80 11 00 00 [08:57:42]Write to MH i2c: E2 08 00 E1 03 80 11 00 00 00 00 00 00 5E [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:42]Read from MH i2c: E2 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 17 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 17 00 E1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B2 [08:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:57:42]wFMCommunicate OK [08:57:42]requested_item fd.num is exist - process it [08:57:42]SAM_PROTO_GetFieldsCounters [08:57:42]wFMCommunicate request_size=4 [08:57:42]MH_SAM_APDU [08:57:42]CAPDU: 80 13 00 00 [08:57:42]Write to MH i2c: E2 08 00 E2 03 80 13 00 00 00 00 00 00 61 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:42]Read from MH i2c: E2 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 62 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 62 00 E2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6E 1C 01 00 0E 04 04 00 2C 02 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 D4 [08:57:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6E 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:42]wFMCommunicate OK [08:57:42]SAM_PROTO_GetFieldsCounters done [08:57:42]requested_item shift.num is exist - process it [08:57:42]requested_item shift.opened is exist - process it [08:57:42]req_shift_opened [08:57:42]FM_GetShiftState [08:57:42]SAM_PROTO_GetShiftState [08:57:42]wFMCommunicate request_size=4 [08:57:42]MH_SAM_APDU [08:57:42]CAPDU: 80 13 01 00 [08:57:42]Write to MH i2c: E2 08 00 E3 03 80 13 01 00 00 00 00 00 63 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:42]Read from MH i2c: E2 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 0E 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 0E 00 E3 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 35 [08:57:42]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [08:57:42]wFMCommunicate OK [08:57:42]SAM_PROTO_GetShiftState done [08:57:42]FM_GetShiftState done [08:57:42]req_shift_opened done [08:57:42]requested_item shift.open_date is exist - process it [08:57:42]req_shift_open_date [08:57:42]req_shift_open_date done [08:57:42]produce_requested_data done [08:57:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72814,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [08:57:42]process_action_free close_receipt [08:57:42]json_value_free [08:57:42]json_value_free done [08:57:42]process_json_proto returns [08:57:42]Send response to host [08:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72814,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [08:57:42]free response buf [08:57:42]execute_script done [08:57:42]execute_script returns [08:57:42]free content buf [08:57:42]Sock 9.Close socket [08:57:42]Sock 9.Thread stoped [08:57:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 32 9B 47 00 BD 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 38 37 34 36 36 32 10 04 04 00 6E 1C 01 00 F4 03 04 00 BE 9F 21 67 B6 04 01 00 00 9E 82 1C 7A 3F 9D A0 53 [08:57:43]CommunicateWithHost err = 0 [08:57:43]CheckOFDResponse [08:57:43]1017 (14) - 77093643461234 [08:57:43]1041 (16) - 0000000000874662 [08:57:43]1040 (4) - 72814 [08:57:43]1012 (4) - 30.10.2024 02:53 [08:57:43]1206 (1) - 0 [08:57:43]OFD Sender: Remove packet 72814 [08:57:43]ProducePacketName [08:57:43]name=ofd_packets/00072814 [08:57:43]NVStorageDeleteData [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:48]recv_with_timeout no data received [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:02]recv_with_timeout no data received [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:16]recv_with_timeout no data received [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:30]accept exits with 7 [09:00:30]New connection [09:00:30]New thread 3066645860 created [09:00:30]Thread 3066789220 joined [09:00:30]Waiting for new connection... [09:00:30] Sock 7.Parse request [09:00:30]Sock 7.Check first char [09:00:30]Sock 7.First char is OK [09:00:30]request: POST /json_proto HTTP/1.0 [09:00:30]Method: POST [09:00:30]URL: /json_proto [09:00:30]Method is POST - this is cgi request [09:00:30]url: /json_proto [09:00:30]query_string will be loaded in cgi processing [09:00:30]execute_cgi json_proto POST (null) [09:00:30]execute_cgi path=json_proto method=POST [09:00:30]POST find Content-Length [09:00:30]Host: 172.17.43.195:8080 [09:00:30]Content-Length: 792 [09:00:30]Content-Type: application/json [09:00:30] [09:00:30]POST finish read [09:00:30]Found Content-Length = 792 [09:00:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:30]execute_script... [09:00: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)952372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:30]POST & json_proto [09:00:30]process_json_proto [09:00:30]json parsed OK: [09:00:30]protocol is kg_v1.0 [09:00:30]action value=close_receipt [09:00:30]process_action close_receipt [09:00:30]cmd_close_receipt [09:00:30]MH_GetDate [09:00:30]Write to MH i2c: F0 00 00 E4 03 D6 [09:00:30]Write i2c OK [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: F0 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: F0 09 00 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: F0 09 00 E4 03 00 AF F5 21 67 74 2C AD 66 BE [09:00:30]GetLastDocTimeStamp 1730278659 [09:00:30]current date 1730278831 [09:00:30]FM_GetShiftState [09:00:30]SAM_PROTO_GetShiftState [09:00:30]wFMCommunicate request_size=4 [09:00:30]MH_SAM_APDU [09:00:30]CAPDU: 80 13 01 00 [09:00:30]Write to MH i2c: E2 08 00 E5 03 80 13 01 00 00 00 00 00 65 [09:00:30]Write i2c OK [09:00:30]MH_I2C_Read... [09:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:30]Read from MH i2c: E2 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: E2 0E 00 [09:00:30]MH_I2C_Read... [09:00:30]Read from MH i2c: E2 0E 00 E5 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 37 [09:00:30]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:00:30]wFMCommunicate OK [09:00:30]SAM_PROTO_GetShiftState done [09:00:30]FM_GetShiftState done [09:00:30]opened in 1730247109 [09:00:30]opened+sec_in_day 1730333509 [09:00:30]quantity*price = 0 [09:00:30]sum+1 = 1 [09:00:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 52 30.10.2024 09:00 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72815 ФПД: 103255113989705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090031&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72815&fm=103255113989705&tin=02508201610067®Number=0000000000091644&sum=0 [09:00:31]StoreToDocumentArchive [09:00:31]shift 556 fd 72815 [09:00:31]save to /storage/0556/doc_00072815 [09:00:31]save last doc name /storage/0556/doc_00072815 to /storage/kkm_last_doc_name [09:00:31]save OK [09:00:31]Clear old archive folders... [09:00:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:31]tlvbuf is 011D0820 [09:00:31]SAM_PROTO_ClearQueue [09:00:31]wFMCommunicate request_size=4 [09:00:31]MH_SAM_APDU [09:00:31]CAPDU: 80 09 00 00 [09:00:31]Write to MH i2c: E2 08 00 F2 03 80 09 00 00 00 00 00 00 67 [09:00:31]Write i2c OK [09:00:31]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:32]Read from MH i2c: E2 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 03 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [09:00:32]RAPDU: 90 00 [09:00:32]wFMCommunicate OK [09:00:32]SAM_PROTO_ClearQueue done [09:00:32]KKMCreateOFDPacket [09:00:32]OFDProtocolAddRootSTLVToBuf [09:00:32]FM_MakeSignedData [09:00:32]FM_MakeSignedData [09:00:32]SAM_PROTO_SignData [09:00:32]wFMCommunicate request_size=4 [09:00:32]MH_SAM_APDU [09:00:32]CAPDU: 80 0D 01 02 [09:00:32]Write to MH i2c: E2 08 00 F3 03 80 0D 01 02 00 00 00 00 6F [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:32]Read from MH i2c: E2 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 03 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [09:00:32]RAPDU: 90 00 [09:00:32]wFMCommunicate OK [09:00:32]wFMCommunicate request_size=255 [09:00:32]MH_SAM_APDU [09:00:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 AF F5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1C 01 00 35 04 06 00 5D [09:00:32]Write to MH i2c: E2 02 01 F4 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 AF F5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1C 01 00 35 04 06 00 5D 00 00 5E [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:32]Read from MH i2c: E2 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 03 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [09:00:32]RAPDU: 90 00 [09:00:32]wFMCommunicate OK [09:00:32]wFMCommunicate request_size=10 [09:00:32]MH_SAM_APDU [09:00:32]CAPDU: 80 0D 02 02 05 E8 F4 63 FE 49 [09:00:32]Write to MH i2c: E2 0D 00 F5 03 80 0D 02 02 05 00 E8 F4 63 FE 49 00 00 02 [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:32]Read from MH i2c: E2 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 03 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [09:00:32]RAPDU: 90 00 [09:00:32]wFMCommunicate OK [09:00:32]wFMCommunicate request_size=4 [09:00:32]MH_SAM_APDU [09:00:32]CAPDU: 80 0D 03 02 [09:00:32]Write to MH i2c: E2 08 00 F6 03 80 0D 03 02 00 00 00 00 74 [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:32]Read from MH i2c: E2 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 0B 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 0B 00 F6 03 00 EF CF 37 B3 1D 21 24 4B 90 00 CA [09:00:32]RAPDU: EF CF 37 B3 1D 21 24 4B 90 00 [09:00:32]wFMCommunicate OK [09:00:32]SAM_PROTO_SignData done [09:00:32]FM_MakeSignedData done [09:00:32]CreateOFDProtocolMessage [09:00:32]wFMCommunicate request_size=4 [09:00:32]MH_SAM_APDU [09:00:32]CAPDU: 80 11 00 00 [09:00:32]Write to MH i2c: E2 08 00 F7 03 80 11 00 00 00 00 00 00 74 [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:32]Read from MH i2c: E2 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 17 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: E2 17 00 F7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C8 [09:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:00:32]wFMCommunicate OK [09:00:32]CreateOFDProtocolMessage done [09:00:32]OFDSenderStorePacket 72815 [09:00:32]StoreOFDPacket docnum=72815 [09:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CC 3A 07 01 08 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 AF F5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1C 01 00 35 04 06 00 5D E8 F4 63 FE 49 EF CF 37 B3 1D 21 24 4B [09:00:32]CheckFolder [09:00:32]dirname=/storage/ofd_packets [09:00:32]CheckFolder done [09:00:32]ProducePacketName [09:00:32]name=ofd_packets/00072815 [09:00:32]NVStorageSaveData ofd_packets/00072815 [09:00:32]File name is /storage/ofd_packets/00072815 [09:00:32]Write 301 bytes [09:00:32]NVStorageSaveData done [09:00:32]OFDSenderStorePacket done [09:00:32]KKMCreateOFDPacket done [09:00:32]NVStorageSaveData kkm_last_timestamp [09:00:32]File name is /storage/kkm_last_timestamp [09:00:32]Write 4 bytes [09:00:32]NVStorageSaveData done [09:00:32]ExternCall_PrintAddStr [09:00:32]wPrintStart [09:00:32]Write to MH i2c: 01 00 00 F8 03 FB [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: 01 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: 01 07 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: 01 07 00 F8 03 00 00 00 00 00 FF 0F 10 [09:00:32]RasterBufferAndPrint [09:00:32]line Счет N : (1)952372 [09:00:32]line ИНН: 02508201610067 [09:00:32]line Контрольно-Кассовый Чек [09:00:32]line ПРОДАЖА [09:00:32]line ТРК (МРК, ГНК) : 53 [09:00:32]line Товар: 2710124130 [09:00:32]line Аи-92-К-5 [09:00:32]line 20.000 * 0.00 [09:00:32]line = 0.00 [09:00:32]line НДС 12% НСП 1% [09:00:32]line > о реализуемом товаре [09:00:32]line ИТОГО: 0.00 [09:00:32]line НСП 1% : 0.00 [09:00:32]line НДС 12% : 0.00 [09:00:32]line Наличными: 0.00 [09:00:32]line Безнал.: 0.00 [09:00:32]line Место: АЗС № 113 "Партнер Нефть" [09:00:32]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:00:32]line СНО: Общий режим [09:00:32]line Чек 52 30.10.2024 09:00 [09:00:32]line Смена: 556 ФФД: 1.0 [09:00:32]line ЗНМ: 0300000087 [09:00:32]line РНМ: 0000000000091644 [09:00:32]line Версия ККМ: 001 [09:00:32]line Талоны: Топливная Карта [09:00:32]line 03047 [09:00:32]line ФМ: 0000000000874662 [09:00:32]line ФД: 72815 [09:00:32]line ФПД: 103255113989705 [09:00:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090031&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72815&fm=103255113989705&tin=02508201610067®Number=0000000000091644&sum=0 [09:00:32]written 0, free lines is 4095 [09:00:32]OFD Sender: Processing packet 72815 [packets to send 278, broken 277] [09:00:32]ProducePacketName [09:00:32]name=ofd_packets/00072815 [09:00:32]OFD Sender: To server: pG, [09:00:32]CommunicateWithHost lk.salyk.kg:30040 [09:00:32]ConnectInit lk.salyk.kg [09:00:32]Write to MH i2c: 01 00 00 22 04 26 [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: 01 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: 01 07 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 DD 0C 16 [09:00:32]RasterBufferAndPrint [09:00:32]line [09:00:32]line [09:00:32]line [09:00:32]line [09:00:32]line [09:00:32]written 0, free lines is 3299 [09:00:32]MH_Cut [09:00:32]Write to MH i2c: D1 01 00 29 04 01 FF [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: D1 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: D1 01 00 [09:00:32]MH_I2C_Read... [09:00:32]Read from MH i2c: D1 01 00 29 04 00 FE [09:00:32]Write to MH i2c: 01 00 00 2A 04 2E [09:00:32]Write i2c OK [09:00:32]MH_I2C_Read... [09:00:33]*** Cut start [09:00:33]*** Partial cut [09:00:33]*** CUTSNS_PIN = 1 [09:00:33]*** CUTSNS_PIN = 0 [09:00:34]*** Brake cut motor [09:00:34]Read from MH i2c: 01 [09:00:34]MH_I2C_Read... [09:00:34]*** Stop cut motor [09:00:34]*** Cut end [09:00:34]Read from MH i2c: 01 07 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 FF 0F 43 [09:00:34]process_action close_receipt done [09:00:34]requested_data is exist [09:00:34]produce_requested_data [09:00:34]requested_item fm.sn is exist - process it [09:00:34]wFMCommunicate request_size=4 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 11 00 00 [09:00:34]Write to MH i2c: E2 08 00 2B 04 80 11 00 00 00 00 00 00 A9 [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 17 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 17 00 2B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FD [09:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:00:34]wFMCommunicate OK [09:00:34]requested_item fd.num is exist - process it [09:00:34]SAM_PROTO_GetFieldsCounters [09:00:34]wFMCommunicate request_size=4 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 13 00 00 [09:00:34]Write to MH i2c: E2 08 00 2C 04 80 13 00 00 00 00 00 00 AC [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]Connected sock=11 [09:00:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CC 3A 07 01 08 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 AF F5 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1C 01 00 35 04 06 00 5D E8 F4 63 FE 49 EF CF 37 B3 1D 21 24 4B [09:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 62 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 62 00 2C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6F 1C 01 00 0E 04 04 00 2C 02 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 23 [09:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6F 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:34]wFMCommunicate OK [09:00:34]SAM_PROTO_GetFieldsCounters done [09:00:34]requested_item shift.num is exist - process it [09:00:34]requested_item shift.opened is exist - process it [09:00:34]req_shift_opened [09:00:34]FM_GetShiftState [09:00:34]SAM_PROTO_GetShiftState [09:00:34]wFMCommunicate request_size=4 [09:00:34]MH_SAM_APDU [09:00:34]CAPDU: 80 13 01 00 [09:00:34]Write to MH i2c: E2 08 00 2D 04 80 13 01 00 00 00 00 00 AE [09:00:34]Write i2c OK [09:00:34]MH_I2C_Read... [09:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:34]Read from MH i2c: E2 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 0E 00 [09:00:34]MH_I2C_Read... [09:00:34]Read from MH i2c: E2 0E 00 2D 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 80 [09:00:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:00:34]wFMCommunicate OK [09:00:34]SAM_PROTO_GetShiftState done [09:00:34]FM_GetShiftState done [09:00:34]req_shift_opened done [09:00:34]requested_item shift.open_date is exist - process it [09:00:34]req_shift_open_date [09:00:34]req_shift_open_date done [09:00:34]produce_requested_data done [09:00:34]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72815,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [09:00:34]process_action_free close_receipt [09:00:34]json_value_free [09:00:34]json_value_free done [09:00:34]process_json_proto returns [09:00:34]Send response to host [09:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72815,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [09:00:34]free response buf [09:00:34]execute_script done [09:00:34]execute_script returns [09:00:34]free content buf [09:00:34]Sock 7.Close socket [09:00:34]Sock 7.Thread stoped [09:00:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 83 13 47 00 FE 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1C 01 00 F4 03 04 00 6A A0 21 67 B6 04 01 00 00 9E 74 4A 17 6C 46 2D C4 [09:00:35]CommunicateWithHost err = 0 [09:00:35]CheckOFDResponse [09:00:35]1017 (14) - 77093643461234 [09:00:35]1041 (16) - 0000000000874662 [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:32]ConnectInit Can't connect to host [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:52]accept exits with 10 [09:09:52]New connection [09:09:52]New thread 3066789220 created [09:09:52]Thread 3066645860 joined [09:09:52]Waiting for new connection... [09:09:52] Sock 10.Parse request [09:09:52]Sock 10.Check first char [09:09:52]Sock 10.First char is OK [09:09:52]request: POST /json_proto HTTP/1.0 [09:09:52]Method: POST [09:09:52]URL: /json_proto [09:09:52]Method is POST - this is cgi request [09:09:52]url: /json_proto [09:09:52]query_string will be loaded in cgi processing [09:09:52]execute_cgi json_proto POST (null) [09:09:52]execute_cgi path=json_proto method=POST [09:09:52]POST find Content-Length [09:09:52]Host: 172.17.43.195:8080 [09:09:52]Content-Length: 792 [09:09:52]Content-Type: application/json [09:09:52] [09:09:52]POST finish read [09:09:52]Found Content-Length = 792 [09:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:52]execute_script... [09:09:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:52]POST & json_proto [09:09:52]process_json_proto [09:09:52]json parsed OK: [09:09:52]protocol is kg_v1.0 [09:09:52]action value=close_receipt [09:09:52]process_action close_receipt [09:09:52]cmd_close_receipt [09:09:52]MH_GetDate [09:09:52]Write to MH i2c: F0 00 00 2E 04 21 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: F0 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: F0 09 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: F0 09 00 2E 04 00 E0 F7 21 67 74 2C AD 66 3C [09:09:52]GetLastDocTimeStamp 1730278831 [09:09:52]current date 1730279392 [09:09:52]FM_GetShiftState [09:09:52]SAM_PROTO_GetShiftState [09:09:52]wFMCommunicate request_size=4 [09:09:52]MH_SAM_APDU [09:09:52]CAPDU: 80 13 01 00 [09:09:52]Write to MH i2c: E2 08 00 2F 04 80 13 01 00 00 00 00 00 B0 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:52]Read from MH i2c: E2 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 0E 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 0E 00 2F 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 82 [09:09:52]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:09:52]wFMCommunicate OK [09:09:52]SAM_PROTO_GetShiftState done [09:09:52]FM_GetShiftState done [09:09:52]opened in 1730247109 [09:09:52]opened+sec_in_day 1730333509 [09:09:52]quantity*price = 0 [09:09:52]sum+1 = 1 [09:09:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 53 30.10.2024 09:09 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72816 ФПД: 161760390156851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090952&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72816&fm=161760390156851&tin=02508201610067®Number=0000000000091644&sum=0 [09:09:53]StoreToDocumentArchive [09:09:53]shift 556 fd 72816 [09:09:53]save to /storage/0556/doc_00072816 [09:09:53]save last doc name /storage/0556/doc_00072816 to /storage/kkm_last_doc_name [09:09:53]save OK [09:09:53]Clear old archive folders... [09:09:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:53]tlvbuf is 011418D0 [09:09:53]SAM_PROTO_ClearQueue [09:09:53]wFMCommunicate request_size=4 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 09 00 00 [09:09:53]Write to MH i2c: E2 08 00 3C 04 80 09 00 00 00 00 00 00 B2 [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 03 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [09:09:53]RAPDU: 90 00 [09:09:53]wFMCommunicate OK [09:09:53]SAM_PROTO_ClearQueue done [09:09:53]KKMCreateOFDPacket [09:09:53]OFDProtocolAddRootSTLVToBuf [09:09:53]FM_MakeSignedData [09:09:53]FM_MakeSignedData [09:09:53]SAM_PROTO_SignData [09:09:53]wFMCommunicate request_size=4 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 0D 01 02 [09:09:53]Write to MH i2c: E2 08 00 3D 04 80 0D 01 02 00 00 00 00 BA [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 03 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [09:09:53]RAPDU: 90 00 [09:09:53]wFMCommunicate OK [09:09:53]wFMCommunicate request_size=255 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 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 35 00 00 00 F4 03 04 00 E0 F7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1C 01 00 35 04 06 00 93 [09:09:53]Write to MH i2c: E2 02 01 3E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 35 00 00 00 F4 03 04 00 E0 F7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1C 01 00 35 04 06 00 93 00 00 DD [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 03 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [09:09:53]RAPDU: 90 00 [09:09:53]wFMCommunicate OK [09:09:53]wFMCommunicate request_size=10 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 0D 02 02 05 1E C6 98 12 33 [09:09:53]Write to MH i2c: E2 0D 00 3F 04 80 0D 02 02 05 00 1E C6 98 12 33 00 00 88 [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 03 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [09:09:53]RAPDU: 90 00 [09:09:53]wFMCommunicate OK [09:09:53]wFMCommunicate request_size=4 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 0D 03 02 [09:09:53]Write to MH i2c: E2 08 00 40 04 80 0D 03 02 00 00 00 00 BF [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 0B 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 0B 00 40 04 00 EB E8 03 B8 E4 5E 2E 3F 90 00 FD [09:09:53]RAPDU: EB E8 03 B8 E4 5E 2E 3F 90 00 [09:09:53]wFMCommunicate OK [09:09:53]SAM_PROTO_SignData done [09:09:53]FM_MakeSignedData done [09:09:53]CreateOFDProtocolMessage [09:09:53]wFMCommunicate request_size=4 [09:09:53]MH_SAM_APDU [09:09:53]CAPDU: 80 11 00 00 [09:09:53]Write to MH i2c: E2 08 00 41 04 80 11 00 00 00 00 00 00 BF [09:09:53]Write i2c OK [09:09:53]MH_I2C_Read... [09:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:53]Read from MH i2c: E2 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 17 00 [09:09:53]MH_I2C_Read... [09:09:53]Read from MH i2c: E2 17 00 41 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 13 [09:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:09:54]wFMCommunicate OK [09:09:54]CreateOFDProtocolMessage done [09:09:54]OFDSenderStorePacket 72816 [09:09:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72816,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [09:09:56]free response buf [09:09:56]execute_script done [09:09:56]execute_script returns [09:09:56]free content buf [09:09:56]Sock 10.Close socket [09:09:56]Sock 10.Thread stoped [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:49]recv_with_timeout no data received [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:14]recv_with_timeout no data received [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:11:57]recv_with_timeout no data received [09:12:01]OFD Sender: No OFD packet to send [09:09:54]StoreOFDPacket docnum=72816 [09:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 59 33 07 01 47 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 35 00 00 00 F4 03 04 00 E0 F7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1C 01 00 35 04 06 00 93 1E C6 98 12 33 EB E8 03 B8 E4 5E 2E 3F [09:09:54]CheckFolder [09:09:54]dirname=/storage/ofd_packets [09:09:54]CheckFolder done [09:09:54]ProducePacketName [09:09:54]name=ofd_packets/00072816 [09:09:54]NVStorageSaveData ofd_packets/00072816 [09:09:54]File name is /storage/ofd_packets/00072816 [09:09:54]Write 301 bytes [09:09:54]NVStorageSaveData done [09:09:54]OFDSenderStorePacket done [09:09:54]KKMCreateOFDPacket done [09:09:54]NVStorageSaveData kkm_last_timestamp [09:09:54]File name is /storage/kkm_last_timestamp [09:09:54]Write 4 bytes [09:09:54]NVStorageSaveData done [09:09:54]OFD Sender: Processing packet 72816 [packets to send 278, broken 277] [09:09:54]ProducePacketName [09:09:54]name=ofd_packets/00072816 [09:09:54]ExternCall_PrintAddStr [09:09:54]wPrintStart [09:09:54]Write to MH i2c: 01 00 00 42 04 46 [09:09:54]OFD Sender: To server: pG, [09:09:54]CommunicateWithHost lk.salyk.kg:30040 [09:09:54]ConnectInit lk.salyk.kg [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 42 04 00 00 00 00 00 FF 0F 5B [09:09:54]RasterBufferAndPrint [09:09:54]line Счет N : (1)952373 [09:09:54]line ИНН: 02508201610067 [09:09:54]line Контрольно-Кассовый Чек [09:09:54]line ПРОДАЖА [09:09:54]line ТРК (МРК, ГНК) : 53 [09:09:54]line Товар: 2710124130 [09:09:54]line Аи-92-К-5 [09:09:54]line 10.000 * 0.00 [09:09:54]line = 0.00 [09:09:54]line НДС 12% НСП 1% [09:09:54]line > о реализуемом товаре [09:09:54]line ИТОГО: 0.00 [09:09:54]line НСП 1% : 0.00 [09:09:54]line НДС 12% : 0.00 [09:09:54]line Наличными: 0.00 [09:09:54]line Безнал.: 0.00 [09:09:54]line Место: АЗС № 113 "Партнер Нефть" [09:09:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:09:54]line СНО: Общий режим [09:09:54]line Чек 53 30.10.2024 09:09 [09:09:54]line Смена: 556 ФФД: 1.0 [09:09:54]line ЗНМ: 0300000087 [09:09:54]line РНМ: 0000000000091644 [09:09:54]line Версия ККМ: 001 [09:09:54]line Талоны: Топливная Карта [09:09:54]line 03047 [09:09:54]line ФМ: 0000000000874662 [09:09:54]line ФД: 72816 [09:09:54]line ФПД: 161760390156851 [09:09:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T090952&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72816&fm=161760390156851&tin=02508201610067®Number=0000000000091644&sum=0 [09:09:54]written 0, free lines is 4095 [09:09:54]Write to MH i2c: 01 00 00 6C 04 70 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 DE 0C 61 [09:09:54]RasterBufferAndPrint [09:09:54]line [09:09:54]line [09:09:54]line [09:09:54]line [09:09:54]line [09:09:54]written 0, free lines is 3300 [09:09:54]MH_Cut [09:09:54]Write to MH i2c: D1 01 00 73 04 01 49 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: D1 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: D1 01 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: D1 01 00 73 04 00 48 [09:09:54]Write to MH i2c: 01 00 00 74 04 78 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:55]Connected sock=11 [09:09:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 59 33 07 01 47 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 35 00 00 00 F4 03 04 00 E0 F7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1C 01 00 35 04 06 00 93 1E C6 98 12 33 EB E8 03 B8 E4 5E 2E 3F [09:09:55]*** Cut start [09:09:55]*** Partial cut [09:09:55]*** CUTSNS_PIN = 1 [09:09:55]*** CUTSNS_PIN = 0 [09:09:55]*** Brake cut motor [09:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4E 9A 47 00 73 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1C 01 00 F4 03 04 00 9A A2 21 67 B6 04 01 00 00 0A D1 8D 99 49 57 F1 A9 [09:09:55]CommunicateWithHost err = 0 [09:09:55]CheckOFDResponse [09:09:55]1017 (14) - 77093643461234 [09:09:55]1041 (16) - 0000000000874662 [09:09:55]1040 (4) - 72816 [09:09:55]1012 (4) - 30.10.2024 03:06 [09:09:55]1206 (1) - 0 [09:09:55]OFD Sender: Remove packet 72816 [09:09:55]ProducePacketName [09:09:55]name=ofd_packets/00072816 [09:09:55]NVStorageDeleteData [09:09:56]Read from MH i2c: 01 [09:09:56]MH_I2C_Read... [09:09:56]*** Stop cut motor [09:09:56]*** Cut end [09:09:56]Read from MH i2c: 01 07 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 FF 0F 8D [09:09:56]process_action close_receipt done [09:09:56]requested_data is exist [09:09:56]produce_requested_data [09:09:56]requested_item fm.sn is exist - process it [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 11 00 00 [09:09:56]Write to MH i2c: E2 08 00 75 04 80 11 00 00 00 00 00 00 F3 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:56]Read from MH i2c: E2 17 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 17 00 75 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 47 [09:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:09:56]wFMCommunicate OK [09:09:56]requested_item fd.num is exist - process it [09:09:56]SAM_PROTO_GetFieldsCounters [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 13 00 00 [09:09:56]Write to MH i2c: E2 08 00 76 04 80 13 00 00 00 00 00 00 F6 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 62 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 62 00 76 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 70 1C 01 00 0E 04 04 00 2C 02 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 71 [09:09:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 70 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:56]wFMCommunicate OK [09:09:56]SAM_PROTO_GetFieldsCounters done [09:09:56]requested_item shift.num is exist - process it [09:09:56]requested_item shift.opened is exist - process it [09:09:56]req_shift_opened [09:09:56]FM_GetShiftState [09:09:56]SAM_PROTO_GetShiftState [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 13 01 00 [09:09:56]Write to MH i2c: E2 08 00 77 04 80 13 01 00 00 00 00 00 F8 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:56]OFD Sender: No OFD packet to send [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 0E 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 0E 00 77 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 CA [09:09:56]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:09:56]wFMCommunicate OK [09:09:56]SAM_PROTO_GetShiftState done [09:09:56]FM_GetShiftState done [09:09:56]req_shift_opened done [09:09:56]requested_item shift.open_date is exist - process it [09:09:56]req_shift_open_date [09:09:56]req_shift_open_date done [09:09:56]produce_requested_data done [09:09:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72816,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [09:09:56]process_action_free close_receipt [09:09:56]json_value_free [09:09:56]json_value_free done [09:09:56]process_json_proto returns [09:09:56]Send response to host [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]recv_with_timeout no data received [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:54]recv_with_timeout no data received [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]recv_with_timeout no data received [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]recv_with_timeout no data received [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:52]recv_with_timeout no data received [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:07]recv_with_timeout no data received [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:40]recv_with_timeout no data received [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:53]recv_with_timeout no data received [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:36]recv_with_timeout no data received [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:08]recv_with_timeout no data received [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:28]accept exits with 9 [09:19:28]New connection [09:19:28]New thread 3066645860 created [09:19:28]Thread 3066789220 joined [09:19:28]Waiting for new connection... [09:19:28] Sock 9.Parse request [09:19:28]Sock 9.Check first char [09:19:28]Sock 9.First char is OK [09:19:28]request: POST /json_proto HTTP/1.0 [09:19:28]Method: POST [09:19:28]URL: /json_proto [09:19:28]Method is POST - this is cgi request [09:19:28]url: /json_proto [09:19:28]query_string will be loaded in cgi processing [09:19:28]execute_cgi json_proto POST (null) [09:19:28]execute_cgi path=json_proto method=POST [09:19:28]POST find Content-Length [09:19:28]Host: 172.17.43.195:8080 [09:19:28]Content-Length: 797 [09:19:28]Content-Type: application/json [09:19:28] [09:19:28]POST finish read [09:19:28]Found Content-Length = 797 [09:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:28]execute_script... [09:19:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:28]POST & json_proto [09:19:28]process_json_proto [09:19:28]json parsed OK: [09:19:28]protocol is kg_v1.0 [09:19:28]action value=close_receipt [09:19:28]process_action close_receipt [09:19:28]cmd_close_receipt [09:19:28]MH_GetDate [09:19:28]Write to MH i2c: F0 00 00 78 04 6B [09:19:28]Write i2c OK [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: F0 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: F0 09 00 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: F0 09 00 78 04 00 20 FA 21 67 74 2C AD 66 C9 [09:19:28]GetLastDocTimeStamp 1730279392 [09:19:28]current date 1730279968 [09:19:28]FM_GetShiftState [09:19:28]SAM_PROTO_GetShiftState [09:19:28]wFMCommunicate request_size=4 [09:19:28]MH_SAM_APDU [09:19:28]CAPDU: 80 13 01 00 [09:19:28]Write to MH i2c: E2 08 00 79 04 80 13 01 00 00 00 00 00 FA [09:19:28]Write i2c OK [09:19:28]MH_I2C_Read... [09:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:28]Read from MH i2c: E2 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: E2 0E 00 [09:19:28]MH_I2C_Read... [09:19:28]Read from MH i2c: E2 0E 00 79 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 CC [09:19:28]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:19:28]wFMCommunicate OK [09:19:28]SAM_PROTO_GetShiftState done [09:19:28]FM_GetShiftState done [09:19:28]opened in 1730247109 [09:19:28]opened+sec_in_day 1730333509 [09:19:28]quantity*price = 0 [09:19:28]sum+1 = 1 [09:19:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 54 30.10.2024 09:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72817 ФПД: 37591150587748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T091928&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72817&fm=37591150587748&tin=02508201610067®Number=0000000000091644&sum=0 [09:19:29]StoreToDocumentArchive [09:19:29]shift 556 fd 72817 [09:19:29]save to /storage/0556/doc_00072817 [09:19:29]save last doc name /storage/0556/doc_00072817 to /storage/kkm_last_doc_name [09:19:29]save OK [09:19:29]Clear old archive folders... [09:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:19:29]tlvbuf is 011434D0 [09:19:29]SAM_PROTO_ClearQueue [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 09 00 00 [09:19:29]Write to MH i2c: E2 08 00 86 04 80 09 00 00 00 00 00 00 FC [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [09:19:29]RAPDU: 90 00 [09:19:29]wFMCommunicate OK [09:19:29]SAM_PROTO_ClearQueue done [09:19:29]KKMCreateOFDPacket [09:19:29]OFDProtocolAddRootSTLVToBuf [09:19:29]FM_MakeSignedData [09:19:29]FM_MakeSignedData [09:19:29]SAM_PROTO_SignData [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 0D 01 02 [09:19:29]Write to MH i2c: E2 08 00 87 04 80 0D 01 02 00 00 00 00 04 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [09:19:29]RAPDU: 90 00 [09:19:29]wFMCommunicate OK [09:19:29]wFMCommunicate request_size=255 [09:19:29]MH_SAM_APDU [09:19:29]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 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 36 00 00 00 F4 03 04 00 20 FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1C 01 00 35 04 06 00 [09:19:29]Write to MH i2c: E2 02 01 88 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 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 36 00 00 00 F4 03 04 00 20 FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1C 01 00 35 04 06 00 00 00 14 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [09:19:29]RAPDU: 90 00 [09:19:29]wFMCommunicate OK [09:19:29]wFMCommunicate request_size=11 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 0D 02 02 06 22 30 5F 2D 6F 64 [09:19:29]Write to MH i2c: E2 0E 00 89 04 80 0D 02 02 06 00 22 30 5F 2D 6F 64 00 00 C4 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [09:19:29]RAPDU: 90 00 [09:19:29]wFMCommunicate OK [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 0D 03 02 [09:19:29]Write to MH i2c: E2 08 00 8A 04 80 0D 03 02 00 00 00 00 09 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 0B 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 0B 00 8A 04 00 AC AB 3E 76 FD 51 3A 51 90 00 EE [09:19:29]RAPDU: AC AB 3E 76 FD 51 3A 51 90 00 [09:19:29]wFMCommunicate OK [09:19:29]SAM_PROTO_SignData done [09:19:29]FM_MakeSignedData done [09:19:29]CreateOFDProtocolMessage [09:19:29]wFMCommunicate request_size=4 [09:19:29]MH_SAM_APDU [09:19:29]CAPDU: 80 11 00 00 [09:19:29]Write to MH i2c: E2 08 00 8B 04 80 11 00 00 00 00 00 00 09 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:29]Read from MH i2c: E2 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 17 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: E2 17 00 8B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5D [09:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:19:29]wFMCommunicate OK [09:19:29]CreateOFDProtocolMessage done [09:19:29]OFDSenderStorePacket 72817 [09:19:29]StoreOFDPacket docnum=72817 [09:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 EA 90 08 01 3E DA 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 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 36 00 00 00 F4 03 04 00 20 FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1C 01 00 35 04 06 00 22 30 5F 2D 6F 64 AC AB 3E 76 FD 51 3A 51 [09:19:29]CheckFolder [09:19:29]dirname=/storage/ofd_packets [09:19:29]CheckFolder done [09:19:29]ProducePacketName [09:19:29]name=ofd_packets/00072817 [09:19:29]NVStorageSaveData ofd_packets/00072817 [09:19:29]File name is /storage/ofd_packets/00072817 [09:19:29]Write 302 bytes [09:19:29]NVStorageSaveData done [09:19:29]OFDSenderStorePacket done [09:19:29]KKMCreateOFDPacket done [09:19:29]NVStorageSaveData kkm_last_timestamp [09:19:29]File name is /storage/kkm_last_timestamp [09:19:29]Write 4 bytes [09:19:29]NVStorageSaveData done [09:19:29]OFD Sender: Processing packet 72817 [packets to send 278, broken 277] [09:19:29]ProducePacketName [09:19:29]name=ofd_packets/00072817 [09:19:29]OFD Sender: To server: pG, [09:19:29]CommunicateWithHost lk.salyk.kg:30040 [09:19:29]ConnectInit lk.salyk.kg [09:19:29]ExternCall_PrintAddStr [09:19:29]wPrintStart [09:19:29]Write to MH i2c: 01 00 00 8C 04 90 [09:19:29]Write i2c OK [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: 01 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: 01 07 00 [09:19:29]MH_I2C_Read... [09:19:29]Read from MH i2c: 01 07 00 8C 04 00 00 00 00 00 FF 0F A5 [09:19:29]RasterBufferAndPrint [09:19:29]line Счет N : (1)952374 [09:19:29]line ИНН: 02508201610067 [09:19:29]line Контрольно-Кассовый Чек [09:19:29]line ПРОДАЖА [09:19:29]line ТРК (МРК, ГНК) : 22 [09:19:29]line Товар: 2710194210 [09:19:29]line ДТ(л)-К-5 [09:19:29]line 10.000 * 0.00 [09:19:29]line = 0.00 [09:19:29]line НДС 12% НСП 1% [09:19:29]line > о реализуемом товаре [09:19:29]line ИТОГО: 0.00 [09:19:29]line НСП 1% : 0.00 [09:19:29]line НДС 12% : 0.00 [09:19:29]line Наличными: 0.00 [09:19:29]line Безнал.: 0.00 [09:19:29]line Место: АЗС № 113 "Партнер Нефть" [09:19:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:19:29]line СНО: Общий режим [09:19:29]line Чек 54 30.10.2024 09:19 [09:19:29]line Смена: 556 ФФД: 1.0 [09:19:29]line ЗНМ: 0300000087 [09:19:29]line РНМ: 0000000000091644 [09:19:29]line Версия ККМ: 001 [09:19:29]line Талоны: Топливная Карта [09:19:29]line 53623 [09:19:29]line ФМ: 0000000000874662 [09:19:29]line ФД: 72817 [09:19:29]line ФПД: 37591150587748 [09:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T091928&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72817&fm=37591150587748&tin=02508201610067®Number=0000000000091644&sum=0 [09:19:30]written 0, free lines is 4095 [09:19:30]Write to MH i2c: 01 00 00 B6 04 BA [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: 01 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: 01 07 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: 01 07 00 B6 04 00 00 00 00 00 E1 0C AE [09:19:30]RasterBufferAndPrint [09:19:30]line [09:19:30]line [09:19:30]line [09:19:30]line [09:19:30]line [09:19:30]written 0, free lines is 3303 [09:19:30]MH_Cut [09:19:30]Write to MH i2c: D1 01 00 BD 04 01 93 [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: D1 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: D1 01 00 [09:19:30]MH_I2C_Read... [09:19:30]Read from MH i2c: D1 01 00 BD 04 00 92 [09:19:30]Write to MH i2c: 01 00 00 BE 04 C2 [09:19:30]Write i2c OK [09:19:30]MH_I2C_Read... [09:19:31]Connected sock=11 [09:19:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 EA 90 08 01 3E DA 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 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 36 00 00 00 F4 03 04 00 20 FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1C 01 00 35 04 06 00 22 30 5F 2D 6F 64 AC AB 3E 76 FD 51 3A 51 [09:19:31]*** Cut start [09:19:31]*** Partial cut [09:19:31]*** CUTSNS_PIN = 1 [09:19:31]*** CUTSNS_PIN = 0 [09:19:31]*** Brake cut motor [09:19:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8B 12 47 00 D6 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1C 01 00 F4 03 04 00 DA A4 21 67 B6 04 01 00 00 C9 8F 51 62 A0 2E E5 7C [09:19:32]CommunicateWithHost err = 0 [09:19:32]CheckOFDResponse [09:19:32]1017 (14) - 77093643461234 [09:19:32]1041 (16) - 0000000000874662 [09:19:32]1040 (4) - 72817 [09:19:32]1012 (4) - 30.10.2024 03:15 [09:19:32]1206 (1) - 0 [09:19:32]OFD Sender: Remove packet 72817 [09:19:32]ProducePacketName [09:19:32]name=ofd_packets/00072817 [09:19:32]NVStorageDeleteData [09:19:32]Read from MH i2c: 01 [09:19:32]MH_I2C_Read... [09:19:32]*** Stop cut motor [09:19:32]*** Cut end [09:19:32]Read from MH i2c: 01 07 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 FF 0F D7 [09:19:32]process_action close_receipt done [09:19:32]requested_data is exist [09:19:32]produce_requested_data [09:19:32]requested_item fm.sn is exist - process it [09:19:32]wFMCommunicate request_size=4 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 11 00 00 [09:19:32]Write to MH i2c: E2 08 00 BF 04 80 11 00 00 00 00 00 00 3D [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 17 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 17 00 BF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 91 [09:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:19:32]wFMCommunicate OK [09:19:32]requested_item fd.num is exist - process it [09:19:32]SAM_PROTO_GetFieldsCounters [09:19:32]wFMCommunicate request_size=4 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 13 00 00 [09:19:32]Write to MH i2c: E2 08 00 C0 04 80 13 00 00 00 00 00 00 40 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 62 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 62 00 C0 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 71 1C 01 00 0E 04 04 00 2C 02 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 BF [09:19:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 71 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:32]wFMCommunicate OK [09:19:32]SAM_PROTO_GetFieldsCounters done [09:19:32]requested_item shift.num is exist - process it [09:19:32]requested_item shift.opened is exist - process it [09:19:32]req_shift_opened [09:19:32]FM_GetShiftState [09:19:32]SAM_PROTO_GetShiftState [09:19:32]wFMCommunicate request_size=4 [09:19:32]MH_SAM_APDU [09:19:32]CAPDU: 80 13 01 00 [09:19:32]Write to MH i2c: E2 08 00 C1 04 80 13 01 00 00 00 00 00 42 [09:19:32]Write i2c OK [09:19:32]MH_I2C_Read... [09:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:32]Read from MH i2c: E2 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 0E 00 [09:19:32]MH_I2C_Read... [09:19:32]Read from MH i2c: E2 0E 00 C1 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 14 [09:19:32]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:19:32]wFMCommunicate OK [09:19:32]SAM_PROTO_GetShiftState done [09:19:32]FM_GetShiftState done [09:19:32]req_shift_opened done [09:19:32]requested_item shift.open_date is exist - process it [09:19:32]req_shift_open_date [09:19:32]req_shift_open_date done [09:19:32]produce_requested_data done [09:19:32]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72817,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [09:19:32]process_action_free close_receipt [09:19:32]json_value_free [09:19:32]json_value_free done [09:19:32]process_json_proto returns [09:19:32]Send response to host [09:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72817,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [09:19:32]free response buf [09:19:32]execute_script done [09:19:32]execute_script returns [09:19:32]free content buf [09:19:32]Sock 9.Close socket [09:19:32]Sock 9.Thread stoped [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:56]recv_with_timeout no data received [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:26]accept exits with 7 [09:22:26]New connection [09:22:26]New thread 3066789220 created [09:22:26]Thread 3066645860 joined [09:22:26]Waiting for new connection... [09:22:26] Sock 7.Parse request [09:22:26]Sock 7.Check first char [09:22:26]Sock 7.First char is OK [09:22:26]request: POST /json_proto HTTP/1.0 [09:22:26]Method: POST [09:22:26]URL: /json_proto [09:22:26]Method is POST - this is cgi request [09:22:26]url: /json_proto [09:22:26]query_string will be loaded in cgi processing [09:22:26]execute_cgi json_proto POST (null) [09:22:26]execute_cgi path=json_proto method=POST [09:22:26]POST find Content-Length [09:22:26]Host: 172.17.43.195:8080 [09:22:26]Content-Length: 677 [09:22:26]Content-Type: application/json [09:22:26] [09:22:26]POST finish read [09:22:26]Found Content-Length = 677 [09:22:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:26]execute_script... [09:22:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:26]POST & json_proto [09:22:26]process_json_proto [09:22:26]json parsed OK: [09:22:26]protocol is kg_v1.0 [09:22:26]action value=close_receipt [09:22:26]process_action close_receipt [09:22:26]cmd_close_receipt [09:22:26]MH_GetDate [09:22:26]Write to MH i2c: F0 00 00 C2 04 B5 [09:22:26]Write i2c OK [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: F0 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: F0 09 00 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: F0 09 00 C2 04 00 D3 FA 21 67 74 2C AD 66 C6 [09:22:26]GetLastDocTimeStamp 1730279968 [09:22:26]current date 1730280147 [09:22:26]FM_GetShiftState [09:22:26]SAM_PROTO_GetShiftState [09:22:26]wFMCommunicate request_size=4 [09:22:26]MH_SAM_APDU [09:22:26]CAPDU: 80 13 01 00 [09:22:26]Write to MH i2c: E2 08 00 C3 04 80 13 01 00 00 00 00 00 44 [09:22:26]Write i2c OK [09:22:26]MH_I2C_Read... [09:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:26]Read from MH i2c: E2 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: E2 0E 00 [09:22:26]MH_I2C_Read... [09:22:26]Read from MH i2c: E2 0E 00 C3 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 16 [09:22:26]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:22:26]wFMCommunicate OK [09:22:26]SAM_PROTO_GetShiftState done [09:22:26]FM_GetShiftState done [09:22:26]opened in 1730247109 [09:22:26]opened+sec_in_day 1730333509 [09:22:26]quantity*price = 40006 [09:22:26]sum+1 = 40007 [09:22:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 55 30.10.2024 09:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72818 ФПД: 141338033020080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092227&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72818&fm=141338033020080&tin=02508201610067®Number=0000000000091644&sum=40000 [09:22:27]StoreToDocumentArchive [09:22:27]shift 556 fd 72818 [09:22:27]save to /storage/0556/doc_00072818 [09:22:27]save last doc name /storage/0556/doc_00072818 to /storage/kkm_last_doc_name [09:22:27]save OK [09:22:27]Clear old archive folders... [09:22:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:27]tlvbuf is B6D80890 [09:22:27]SAM_PROTO_ClearQueue [09:22:27]wFMCommunicate request_size=4 [09:22:27]MH_SAM_APDU [09:22:27]CAPDU: 80 09 00 00 [09:22:27]Write to MH i2c: E2 08 00 D0 04 80 09 00 00 00 00 00 00 46 [09:22:27]Write i2c OK [09:22:27]MH_I2C_Read... [09:22:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:27]Read from MH i2c: E2 [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: E2 03 00 [09:22:27]MH_I2C_Read... [09:22:27]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [09:22:27]RAPDU: 90 00 [09:22:27]wFMCommunicate OK [09:22:27]SAM_PROTO_ClearQueue done [09:22:27]KKMCreateOFDPacket [09:22:27]OFDProtocolAddRootSTLVToBuf [09:22:27]FM_MakeSignedData [09:22:27]FM_MakeSignedData [09:22:27]SAM_PROTO_SignData [09:22:27]wFMCommunicate request_size=4 [09:22:27]MH_SAM_APDU [09:22:27]CAPDU: 80 0D 01 02 [09:22:27]Write to MH i2c: E2 08 00 D1 04 80 0D 01 02 00 00 00 00 4E [09:22:27]Write i2c OK [09:22:27]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [09:22:28]RAPDU: 90 00 [09:22:28]wFMCommunicate OK [09:22:28]wFMCommunicate request_size=255 [09:22:28]MH_SAM_APDU [09:22:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D3 FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1C 01 00 35 04 06 00 80 [09:22:28]Write to MH i2c: E2 02 01 D2 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D3 FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1C 01 00 35 04 06 00 80 00 00 75 [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 D2 04 00 90 00 4A [09:22:28]RAPDU: 90 00 [09:22:28]wFMCommunicate OK [09:22:28]wFMCommunicate request_size=10 [09:22:28]MH_SAM_APDU [09:22:28]CAPDU: 80 0D 02 02 05 8B D3 40 5C B0 [09:22:28]Write to MH i2c: E2 0D 00 D3 04 80 0D 02 02 05 00 8B D3 40 5C B0 00 00 05 [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 03 00 D3 04 00 90 00 4B [09:22:28]RAPDU: 90 00 [09:22:28]wFMCommunicate OK [09:22:28]wFMCommunicate request_size=4 [09:22:28]MH_SAM_APDU [09:22:28]CAPDU: 80 0D 03 02 [09:22:28]Write to MH i2c: E2 08 00 D4 04 80 0D 03 02 00 00 00 00 53 [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 0B 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 0B 00 D4 04 00 96 FA 22 5B D2 91 5F B6 90 00 D9 [09:22:28]RAPDU: 96 FA 22 5B D2 91 5F B6 90 00 [09:22:28]wFMCommunicate OK [09:22:28]SAM_PROTO_SignData done [09:22:28]FM_MakeSignedData done [09:22:28]CreateOFDProtocolMessage [09:22:28]wFMCommunicate request_size=4 [09:22:28]MH_SAM_APDU [09:22:28]CAPDU: 80 11 00 00 [09:22:28]Write to MH i2c: E2 08 00 D5 04 80 11 00 00 00 00 00 00 53 [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:28]Read from MH i2c: E2 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 17 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: E2 17 00 D5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A7 [09:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:22:28]wFMCommunicate OK [09:22:28]CreateOFDProtocolMessage done [09:22:28]OFDSenderStorePacket 72818 [09:22:28]StoreOFDPacket docnum=72818 [09:22:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DF D5 07 01 15 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D3 FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1C 01 00 35 04 06 00 80 8B D3 40 5C B0 96 FA 22 5B D2 91 5F B6 [09:22:28]CheckFolder [09:22:28]dirname=/storage/ofd_packets [09:22:28]CheckFolder done [09:22:28]ProducePacketName [09:22:28]name=ofd_packets/00072818 [09:22:28]NVStorageSaveData ofd_packets/00072818 [09:22:28]File name is /storage/ofd_packets/00072818 [09:22:28]Write 301 bytes [09:22:28]NVStorageSaveData done [09:22:28]OFDSenderStorePacket done [09:22:28]KKMCreateOFDPacket done [09:22:28]NVStorageSaveData kkm_last_timestamp [09:22:28]File name is /storage/kkm_last_timestamp [09:22:28]Write 4 bytes [09:22:28]NVStorageSaveData done [09:22:28]ExternCall_PrintAddStr [09:22:28]wPrintStart [09:22:28]Write to MH i2c: 01 00 00 D6 04 DA [09:22:28]Write i2c OK [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: 01 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: 01 07 00 [09:22:28]MH_I2C_Read... [09:22:28]Read from MH i2c: 01 07 00 D6 04 00 00 00 00 00 FF 0F EF [09:22:28]RasterBufferAndPrint [09:22:28]line Счет N : (1)952375 [09:22:28]line ИНН: 02508201610067 [09:22:28]line Контрольно-Кассовый Чек [09:22:28]line ПРОДАЖА [09:22:28]line ТРК (МРК, ГНК) : 63 [09:22:28]line Товар: 2710124130 [09:22:28]line Аи-92-К-5 [09:22:28]line 5.980 * 66.90 [09:22:28]line = 400.06 [09:22:28]line НДС 12% НСП 1% [09:22:28]line > о реализуемом товаре [09:22:28]line ОКРУГЛЕНИЕ: -0.06 [09:22:28]line ИТОГО: 400.00 [09:22:28]line Внесено: 400.00 [09:22:28]line СДАЧА: 0.00 [09:22:28]line НСП 1% : 3.54 [09:22:28]line НДС 12% : 42.48 [09:22:28]line Наличными: 400.00 [09:22:28]line Безнал.: 0.00 [09:22:28]line Место: АЗС № 113 "Партнер Нефть" [09:22:28]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:22:28]line СНО: Общий режим [09:22:28]line Чек 55 30.10.2024 09:22 [09:22:28]line Смена: 556 ФФД: 1.0 [09:22:28]line ЗНМ: 0300000087 [09:22:28]line РНМ: 0000000000091644 [09:22:28]line Версия ККМ: 001 [09:22:28]line ФМ: 0000000000874662 [09:22:28]line ФД: 72818 [09:22:28]line ФПД: 141338033020080 [09:22:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092227&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72818&fm=141338033020080&tin=02508201610067®Number=0000000000091644&sum=40000 [09:22:28]OFD Sender: Processing packet 72818 [packets to send 278, broken 277] [09:22:28]ProducePacketName [09:22:28]name=ofd_packets/00072818 [09:22:28]OFD Sender: To server: pG, [09:22:28]CommunicateWithHost lk.salyk.kg:30040 [09:22:28]ConnectInit lk.salyk.kg [09:22:28]written 0, free lines is 4095 [09:22:29]Write to MH i2c: 01 00 00 01 05 06 [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: 01 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: 01 07 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 D1 0C EA [09:22:29]RasterBufferAndPrint [09:22:29]line [09:22:29]line [09:22:29]line [09:22:29]line [09:22:29]line [09:22:29]written 0, free lines is 3285 [09:22:29]MH_Cut [09:22:29]Write to MH i2c: D1 01 00 08 05 01 DF [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: D1 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: D1 01 00 [09:22:29]MH_I2C_Read... [09:22:29]Read from MH i2c: D1 01 00 08 05 00 DE [09:22:29]Write to MH i2c: 01 00 00 09 05 0E [09:22:29]Write i2c OK [09:22:29]MH_I2C_Read... [09:22:30]*** Cut start [09:22:30]*** Partial cut [09:22:30]*** CUTSNS_PIN = 1 [09:22:30]*** CUTSNS_PIN = 0 [09:22:30]*** Brake cut motor [09:22:30]Read from MH i2c: 01 [09:22:30]MH_I2C_Read... [09:22:30]*** Stop cut motor [09:22:30]*** Cut end [09:22:30]Read from MH i2c: 01 07 00 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 FF 0F 23 [09:22:30]process_action close_receipt done [09:22:30]requested_data is exist [09:22:30]produce_requested_data [09:22:30]requested_item fm.sn is exist - process it [09:22:30]wFMCommunicate request_size=4 [09:22:30]MH_SAM_APDU [09:22:30]CAPDU: 80 11 00 00 [09:22:30]Write to MH i2c: E2 08 00 0A 05 80 11 00 00 00 00 00 00 89 [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:30]Read from MH i2c: E2 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 17 00 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 17 00 0A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DD [09:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:22:30]wFMCommunicate OK [09:22:30]requested_item fd.num is exist - process it [09:22:30]SAM_PROTO_GetFieldsCounters [09:22:30]wFMCommunicate request_size=4 [09:22:30]MH_SAM_APDU [09:22:30]CAPDU: 80 13 00 00 [09:22:30]Write to MH i2c: E2 08 00 0B 05 80 13 00 00 00 00 00 00 8C [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:30]Read from MH i2c: E2 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 62 00 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 62 00 0B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 72 1C 01 00 0E 04 04 00 2C 02 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 0F [09:22:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 72 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:30]wFMCommunicate OK [09:22:30]SAM_PROTO_GetFieldsCounters done [09:22:30]requested_item shift.num is exist - process it [09:22:30]requested_item shift.opened is exist - process it [09:22:30]req_shift_opened [09:22:30]FM_GetShiftState [09:22:30]SAM_PROTO_GetShiftState [09:22:30]wFMCommunicate request_size=4 [09:22:30]MH_SAM_APDU [09:22:30]CAPDU: 80 13 01 00 [09:22:30]Write to MH i2c: E2 08 00 0C 05 80 13 01 00 00 00 00 00 8E [09:22:30]Write i2c OK [09:22:30]MH_I2C_Read... [09:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:30]Read from MH i2c: E2 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 0E 00 [09:22:30]MH_I2C_Read... [09:22:30]Read from MH i2c: E2 0E 00 0C 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 60 [09:22:30]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:22:30]wFMCommunicate OK [09:22:30]SAM_PROTO_GetShiftState done [09:22:30]FM_GetShiftState done [09:22:30]req_shift_opened done [09:22:30]requested_item shift.open_date is exist - process it [09:22:30]req_shift_open_date [09:22:30]req_shift_open_date done [09:22:30]produce_requested_data done [09:22:30]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72818,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [09:22:30]process_action_free close_receipt [09:22:30]json_value_free [09:22:30]json_value_free done [09:22:30]process_json_proto returns [09:22:30]Send response to host [09:22:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72818,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [09:22:30]free response buf [09:22:30]execute_script done [09:22:30]execute_script returns [09:22:30]free content buf [09:22:30]Sock 7.Close socket [09:22:30]Sock 7.Thread stoped [09:22:33]recv_with_timeout no data received [09:22:33]ConnectInit Can't take IP for lk.salyk.kg [09:22:33]CommunicateWithHost connect error [09:22:33]CommunicateWithHost err = -1 [09:22:33]OFD Sender: Server communicate error [09:22:38]OFD Sender: Processing packet 72818 [packets to send 278, broken 277] [09:22:38]ProducePacketName [09:22:38]name=ofd_packets/00072818 [09:22:38]OFD Sender: To server: pG, [09:22:38]CommunicateWithHost lk.salyk.kg:30040 [09:22:38]ConnectInit lk.salyk.kg [09:22:43]ConnectInit Can't take IP for lk.salyk.kg [09:22:43]CommunicateWithHost connect error [09:22:43]CommunicateWithHost err = -1 [09:22:43]OFD Sender: Server communicate error [09:22:48]OFD Sender: Processing packet 72818 [packets to send 278, broken 277] [09:22:48]ProducePacketName [09:22:48]name=ofd_packets/00072818 [09:22:48]OFD Sender: To server: pG, [09:22:48]CommunicateWithHost lk.salyk.kg:30040 [09:22:48]ConnectInit lk.salyk.kg [09:22:49]recv_with_timeout no data received [09:22:53]ConnectInit Can't take IP for lk.salyk.kg [09:22:53]CommunicateWithHost connect error [09:22:53]CommunicateWithHost err = -1 [09:22:53]OFD Sender: Server communicate error [09:22:58]OFD Sender: Processing packet 72818 [packets to send 278, broken 277] [09:22:58]ProducePacketName [09:22:58]name=ofd_packets/00072818 [09:22:58]OFD Sender: To server: pG, [09:22:58]CommunicateWithHost lk.salyk.kg:30040 [09:22:58]ConnectInit lk.salyk.kg [09:23:04]recv_with_timeout no data received [09:23:12]Connected sock=10 [09:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DF D5 07 01 15 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 D3 FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1C 01 00 35 04 06 00 80 8B D3 40 5C B0 96 FA 22 5B D2 91 5F B6 [09:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E1 03 47 00 83 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1C 01 00 F4 03 04 00 B9 A5 21 67 B6 04 01 00 00 D0 E0 2E 26 29 72 91 D9 [09:23:14]CommunicateWithHost err = 0 [09:23:14]CheckOFDResponse [09:23:14]1017 (14) - 77093643461234 [09:23:14]1041 (16) - 0000000000874662 [09:23:14]1040 (4) - 72818 [09:23:14]1012 (4) - 30.10.2024 03:19 [09:23:14]1206 (1) - 0 [09:23:14]OFD Sender: Remove packet 72818 [09:23:14]ProducePacketName [09:23:14]name=ofd_packets/00072818 [09:23:14]NVStorageDeleteData [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:36]recv_with_timeout no data received [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:54]recv_with_timeout no data received [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:04]recv_with_timeout no data received [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:25]accept exits with 9 [09:26:25]New connection [09:26:25]New thread 3066645860 created [09:26:25]Thread 3066789220 joined [09:26:25]Waiting for new connection... [09:26:25] Sock 9.Parse request [09:26:25]Sock 9.Check first char [09:26:25]Sock 9.First char is OK [09:26:25]request: POST /json_proto HTTP/1.0 [09:26:25]Method: POST [09:26:25]URL: /json_proto [09:26:25]Method is POST - this is cgi request [09:26:25]url: /json_proto [09:26:25]query_string will be loaded in cgi processing [09:26:25]execute_cgi json_proto POST (null) [09:26:25]execute_cgi path=json_proto method=POST [09:26:25]POST find Content-Length [09:26:25]Host: 172.17.43.195:8080 [09:26:25]Content-Length: 682 [09:26:25]Content-Type: application/json [09:26:25] [09:26:25]POST finish read [09:26:25]Found Content-Length = 682 [09:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:25]execute_script... [09:26:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:25]POST & json_proto [09:26:25]process_json_proto [09:26:25]json parsed OK: [09:26:25]protocol is kg_v1.0 [09:26:25]action value=close_receipt [09:26:25]process_action close_receipt [09:26:25]cmd_close_receipt [09:26:25]MH_GetDate [09:26:25]Write to MH i2c: F0 00 00 0D 05 01 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: F0 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: F0 09 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: F0 09 00 0D 05 00 C2 FB 21 67 74 2C AD 66 02 [09:26:25]GetLastDocTimeStamp 1730280147 [09:26:25]current date 1730280386 [09:26:25]FM_GetShiftState [09:26:25]SAM_PROTO_GetShiftState [09:26:25]wFMCommunicate request_size=4 [09:26:25]MH_SAM_APDU [09:26:25]CAPDU: 80 13 01 00 [09:26:25]Write to MH i2c: E2 08 00 0E 05 80 13 01 00 00 00 00 00 90 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:25]Read from MH i2c: E2 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 0E 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: E2 0E 00 0E 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 62 [09:26:25]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:26:25]wFMCommunicate OK [09:26:25]SAM_PROTO_GetShiftState done [09:26:25]FM_GetShiftState done [09:26:25]opened in 1730247109 [09:26:25]opened+sec_in_day 1730333509 [09:26:25]quantity*price = 250054 [09:26:25]sum+1 = 250055 [09:26:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 56 30.10.2024 09:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72819 ФПД: 134034659642334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092626&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72819&fm=134034659642334&tin=02508201610067®Number=0000000000091644&sum=250000 [09:26:26]StoreToDocumentArchive [09:26:26]shift 556 fd 72819 [09:26:26]save to /storage/0556/doc_00072819 [09:26:26]save last doc name /storage/0556/doc_00072819 to /storage/kkm_last_doc_name [09:26:26]save OK [09:26:26]Clear old archive folders... [09:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:26]tlvbuf is 01204B10 [09:26:26]SAM_PROTO_ClearQueue [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 09 00 00 [09:26:26]Write to MH i2c: E2 08 00 1B 05 80 09 00 00 00 00 00 00 92 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [09:26:26]RAPDU: 90 00 [09:26:26]wFMCommunicate OK [09:26:26]SAM_PROTO_ClearQueue done [09:26:26]KKMCreateOFDPacket [09:26:26]OFDProtocolAddRootSTLVToBuf [09:26:26]FM_MakeSignedData [09:26:26]FM_MakeSignedData [09:26:26]SAM_PROTO_SignData [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 0D 01 02 [09:26:26]Write to MH i2c: E2 08 00 1C 05 80 0D 01 02 00 00 00 00 9A [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [09:26:26]RAPDU: 90 00 [09:26:26]wFMCommunicate OK [09:26:26]wFMCommunicate request_size=255 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C2 FB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1C 01 00 35 04 06 00 79 [09:26:26]Write to MH i2c: E2 02 01 1D 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C2 FB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1C 01 00 35 04 06 00 79 00 00 C6 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [09:26:27]RAPDU: 90 00 [09:26:27]wFMCommunicate OK [09:26:27]wFMCommunicate request_size=10 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 0D 02 02 05 E7 60 46 8B DE [09:26:27]Write to MH i2c: E2 0D 00 1E 05 80 0D 02 02 05 00 E7 60 46 8B DE 00 00 9D [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [09:26:27]RAPDU: 90 00 [09:26:27]wFMCommunicate OK [09:26:27]wFMCommunicate request_size=4 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 0D 03 02 [09:26:27]Write to MH i2c: E2 08 00 1F 05 80 0D 03 02 00 00 00 00 9F [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 0B 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 0B 00 1F 05 00 E0 ED B5 44 1B 99 75 2F 90 00 BE [09:26:27]RAPDU: E0 ED B5 44 1B 99 75 2F 90 00 [09:26:27]wFMCommunicate OK [09:26:27]SAM_PROTO_SignData done [09:26:27]FM_MakeSignedData done [09:26:27]CreateOFDProtocolMessage [09:26:27]wFMCommunicate request_size=4 [09:26:27]MH_SAM_APDU [09:26:27]CAPDU: 80 11 00 00 [09:26:27]Write to MH i2c: E2 08 00 20 05 80 11 00 00 00 00 00 00 9F [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:27]Read from MH i2c: E2 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 17 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: E2 17 00 20 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F3 [09:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:26:27]wFMCommunicate OK [09:26:27]CreateOFDProtocolMessage done [09:26:27]OFDSenderStorePacket 72819 [09:26:27]StoreOFDPacket docnum=72819 [09:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F2 2F 07 01 0D 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C2 FB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1C 01 00 35 04 06 00 79 E7 60 46 8B DE E0 ED B5 44 1B 99 75 2F [09:26:27]CheckFolder [09:26:27]dirname=/storage/ofd_packets [09:26:27]CheckFolder done [09:26:27]ProducePacketName [09:26:27]name=ofd_packets/00072819 [09:26:27]NVStorageSaveData ofd_packets/00072819 [09:26:27]File name is /storage/ofd_packets/00072819 [09:26:27]Write 301 bytes [09:26:27]NVStorageSaveData done [09:26:27]OFDSenderStorePacket done [09:26:27]KKMCreateOFDPacket done [09:26:27]NVStorageSaveData kkm_last_timestamp [09:26:27]File name is /storage/kkm_last_timestamp [09:26:27]Write 4 bytes [09:26:27]NVStorageSaveData done [09:26:27]OFD Sender: Processing packet 72819 [packets to send 278, broken 277] [09:26:27]ProducePacketName [09:26:27]name=ofd_packets/00072819 [09:26:27]OFD Sender: To server: pG, [09:26:27]CommunicateWithHost lk.salyk.kg:30040 [09:26:27]ConnectInit lk.salyk.kg [09:26:27]ExternCall_PrintAddStr [09:26:27]wPrintStart [09:26:27]Write to MH i2c: 01 00 00 21 05 26 [09:26:27]Write i2c OK [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: 01 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: 01 07 00 [09:26:27]MH_I2C_Read... [09:26:27]Read from MH i2c: 01 07 00 21 05 00 00 00 00 00 FF 0F 3B [09:26:27]RasterBufferAndPrint [09:26:27]line Счет N : (1)952376 [09:26:27]line ИНН: 02508201610067 [09:26:27]line Контрольно-Кассовый Чек [09:26:27]line ПРОДАЖА [09:26:27]line ТРК (МРК, ГНК) : 52 [09:26:27]line Товар: 2710124500 [09:26:27]line Аи-95-К-3 [09:26:27]line 33.700 * 74.20 [09:26:27]line = 2500.54 [09:26:27]line НДС 12% НСП 1% [09:26:27]line > о реализуемом товаре [09:26:27]line ОКРУГЛЕНИЕ: -0.54 [09:26:27]line ИТОГО: 2500.00 [09:26:27]line Внесено: 2500.00 [09:26:27]line СДАЧА: 0.00 [09:26:27]line НСП 1% : 22.13 [09:26:27]line НДС 12% : 265.54 [09:26:27]line Наличными: 2500.00 [09:26:27]line Безнал.: 0.00 [09:26:27]line Место: АЗС № 113 "Партнер Нефть" [09:26:27]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:26:27]line СНО: Общий режим [09:26:27]line Чек 56 30.10.2024 09:26 [09:26:27]line Смена: 556 ФФД: 1.0 [09:26:27]line ЗНМ: 0300000087 [09:26:27]line РНМ: 0000000000091644 [09:26:27]line Версия ККМ: 001 [09:26:27]line ФМ: 0000000000874662 [09:26:27]line ФД: 72819 [09:26:27]line ФПД: 134034659642334 [09:26:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T092626&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72819&fm=134034659642334&tin=02508201610067®Number=0000000000091644&sum=250000 [09:26:27]written 0, free lines is 4095 [09:26:28]Write to MH i2c: 01 00 00 4C 05 51 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 07 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: 01 07 00 4C 05 00 00 00 00 00 DA 0C 3E [09:26:28]RasterBufferAndPrint [09:26:28]line [09:26:28]line [09:26:28]line [09:26:28]line [09:26:28]line [09:26:28]written 0, free lines is 3298 [09:26:28]MH_Cut [09:26:28]Write to MH i2c: D1 01 00 53 05 01 2A [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: D1 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: D1 01 00 [09:26:28]MH_I2C_Read... [09:26:28]Read from MH i2c: D1 01 00 53 05 00 29 [09:26:28]Write to MH i2c: 01 00 00 54 05 59 [09:26:28]Write i2c OK [09:26:28]MH_I2C_Read... [09:26:29]*** Cut start [09:26:29]*** Partial cut [09:26:29]*** CUTSNS_PIN = 1 [09:26:29]*** CUTSNS_PIN = 0 [09:26:29]*** Brake cut motor [09:26:29]Connected sock=12 [09:26:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F2 2F 07 01 0D 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C2 FB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1C 01 00 35 04 06 00 79 E7 60 46 8B DE E0 ED B5 44 1B 99 75 2F [09:26:29]Read from MH i2c: 01 [09:26:29]MH_I2C_Read... [09:26:29]*** Stop cut motor [09:26:29]*** Cut end [09:26:29]Read from MH i2c: 01 07 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 FF 0F 6E [09:26:29]process_action close_receipt done [09:26:29]requested_data is exist [09:26:29]produce_requested_data [09:26:29]requested_item fm.sn is exist - process it [09:26:29]wFMCommunicate request_size=4 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 11 00 00 [09:26:29]Write to MH i2c: E2 08 00 55 05 80 11 00 00 00 00 00 00 D4 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 17 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 17 00 55 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [09:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:26:29]wFMCommunicate OK [09:26:29]requested_item fd.num is exist - process it [09:26:29]SAM_PROTO_GetFieldsCounters [09:26:29]wFMCommunicate request_size=4 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 13 00 00 [09:26:29]Write to MH i2c: E2 08 00 56 05 80 13 00 00 00 00 00 00 D7 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 EE 36 47 00 80 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1C 01 00 F4 03 04 00 7C A6 21 67 B6 04 01 00 00 03 0B FF D5 1B E7 10 41 [09:26:29]CommunicateWithHost err = 0 [09:26:29]CheckOFDResponse [09:26:29]1017 (14) - 77093643461234 [09:26:29]1041 (16) - 0000000000874662 [09:26:29]1040 (4) - 72819 [09:26:29]1012 (4) - 30.10.2024 03:22 [09:26:29]1206 (1) - 0 [09:26:29]OFD Sender: Remove packet 72819 [09:26:29]ProducePacketName [09:26:29]name=ofd_packets/00072819 [09:26:29]NVStorageDeleteData [09:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 62 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 62 00 56 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 73 1C 01 00 0E 04 04 00 2C 02 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 5E [09:26:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 73 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:29]wFMCommunicate OK [09:26:29]SAM_PROTO_GetFieldsCounters done [09:26:29]requested_item shift.num is exist - process it [09:26:29]requested_item shift.opened is exist - process it [09:26:29]req_shift_opened [09:26:29]FM_GetShiftState [09:26:29]SAM_PROTO_GetShiftState [09:26:29]wFMCommunicate request_size=4 [09:26:29]MH_SAM_APDU [09:26:29]CAPDU: 80 13 01 00 [09:26:29]Write to MH i2c: E2 08 00 57 05 80 13 01 00 00 00 00 00 D9 [09:26:29]Write i2c OK [09:26:29]MH_I2C_Read... [09:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:29]Read from MH i2c: E2 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 0E 00 [09:26:29]MH_I2C_Read... [09:26:29]Read from MH i2c: E2 0E 00 57 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 AB [09:26:29]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:26:29]wFMCommunicate OK [09:26:29]SAM_PROTO_GetShiftState done [09:26:29]FM_GetShiftState done [09:26:29]req_shift_opened done [09:26:29]requested_item shift.open_date is exist - process it [09:26:29]req_shift_open_date [09:26:29]req_shift_open_date done [09:26:29]produce_requested_data done [09:26:29]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72819,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [09:26:29]process_action_free close_receipt [09:26:29]json_value_free [09:26:29]json_value_free done [09:26:29]process_json_proto returns [09:26:29]Send response to host [09:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72819,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [09:26:29]free response buf [09:26:29]execute_script done [09:26:29]execute_script returns [09:26:29]free content buf [09:26:29]Sock 9.Close socket [09:26:29]Sock 9.Thread stoped [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:39]recv_with_timeout no data received [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:27:58]recv_with_timeout no data received [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]recv_with_timeout no data received [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:09]recv_with_timeout no data received [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]recv_with_timeout no data received [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:18]recv_with_timeout no data received [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:09]recv_with_timeout no data received [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:31:59]recv_with_timeout no data received [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:20]recv_with_timeout no data received [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:38]recv_with_timeout no data received [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:55]recv_with_timeout no data received [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:38]recv_with_timeout no data received [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:34:56]recv_with_timeout no data received [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:44]recv_with_timeout no data received [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:24]recv_with_timeout no data received [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]recv_with_timeout no data received [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]accept exits with 7 [09:40:26]New connection [09:40:26]New thread 3066789220 created [09:40:26]Thread 3066645860 joined [09:40:26]Waiting for new connection... [09:40:26] Sock 7.Parse request [09:40:26]Sock 7.Check first char [09:40:26]Sock 7.First char is OK [09:40:26]request: POST /json_proto HTTP/1.0 [09:40:26]Method: POST [09:40:26]URL: /json_proto [09:40:26]Method is POST - this is cgi request [09:40:26]url: /json_proto [09:40:26]query_string will be loaded in cgi processing [09:40:26]execute_cgi json_proto POST (null) [09:40:26]execute_cgi path=json_proto method=POST [09:40:26]POST find Content-Length [09:40:26]Host: 172.17.43.195:8080 [09:40:26]Content-Length: 687 [09:40:26]Content-Type: application/json [09:40:26] [09:40:26]POST finish read [09:40:26]Found Content-Length = 687 [09:40:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952380", "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" : 16.850, "sum" : 1283.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1283.00, "payments": [ { "type": 0, "sum" : 1283.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:26]execute_script... [09:40:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952380", "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" : 16.850, "sum" : 1283.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1283.00, "payments": [ { "type": 0, "sum" : 1283.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:26]POST & json_proto [09:40:26]process_json_proto [09:40:26]json parsed OK: [09:40:26]protocol is kg_v1.0 [09:40:26]action value=close_receipt [09:40:26]process_action close_receipt [09:40:26]cmd_close_receipt [09:40:26]MH_GetDate [09:40:26]Write to MH i2c: F0 00 00 58 05 4C [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: F0 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: F0 09 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: F0 09 00 58 05 00 0B FF 21 67 74 2C AD 66 9A [09:40:26]GetLastDocTimeStamp 1730280386 [09:40:26]current date 1730281227 [09:40:26]FM_GetShiftState [09:40:26]SAM_PROTO_GetShiftState [09:40:26]wFMCommunicate request_size=4 [09:40:26]MH_SAM_APDU [09:40:26]CAPDU: 80 13 01 00 [09:40:26]Write to MH i2c: E2 08 00 59 05 80 13 01 00 00 00 00 00 DB [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:26]Read from MH i2c: E2 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 0E 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 0E 00 59 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 AD [09:40:26]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:40:26]wFMCommunicate OK [09:40:26]SAM_PROTO_GetShiftState done [09:40:26]FM_GetShiftState done [09:40:26]opened in 1730247109 [09:40:26]opened+sec_in_day 1730333509 [09:40:26]quantity*price = 128397 [09:40:26]sum+1 = 128398 [09:40:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.97 ИТОГО: 1283.00 Внесено: 2000.00 СДАЧА: 717.00 НСП 1% : 11.36 НДС 12% : 136.35 Наличными: 1283.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 57 30.10.2024 09:40 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72820 ФПД: 20607602466297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094027&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72820&fm=20607602466297&tin=02508201610067®Number=0000000000091644&sum=128300 [09:40:27]StoreToDocumentArchive [09:40:27]shift 556 fd 72820 [09:40:27]save to /storage/0556/doc_00072820 [09:40:27]save last doc name /storage/0556/doc_00072820 to /storage/kkm_last_doc_name [09:40:27]save OK [09:40:27]Clear old archive folders... [09:40:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:40:27]tlvbuf is 011C61F0 [09:40:27]SAM_PROTO_ClearQueue [09:40:27]wFMCommunicate request_size=4 [09:40:27]MH_SAM_APDU [09:40:27]CAPDU: 80 09 00 00 [09:40:27]Write to MH i2c: E2 08 00 66 05 80 09 00 00 00 00 00 00 DD [09:40:27]Write i2c OK [09:40:27]MH_I2C_Read... [09:40:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:27]Read from MH i2c: E2 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: E2 03 00 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [09:40:27]RAPDU: 90 00 [09:40:27]wFMCommunicate OK [09:40:27]SAM_PROTO_ClearQueue done [09:40:27]KKMCreateOFDPacket [09:40:27]OFDProtocolAddRootSTLVToBuf [09:40:27]FM_MakeSignedData [09:40:27]FM_MakeSignedData [09:40:27]SAM_PROTO_SignData [09:40:27]wFMCommunicate request_size=4 [09:40:27]MH_SAM_APDU [09:40:27]CAPDU: 80 0D 01 02 [09:40:27]Write to MH i2c: E2 08 00 67 05 80 0D 01 02 00 00 00 00 E5 [09:40:27]Write i2c OK [09:40:27]MH_I2C_Read... [09:40:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:27]Read from MH i2c: E2 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: E2 03 00 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [09:40:27]RAPDU: 90 00 [09:40:27]wFMCommunicate OK [09:40:27]wFMCommunicate request_size=255 [09:40:27]MH_SAM_APDU [09:40:27]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 D2 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8D F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 35 00 00 00 00 07 04 06 00 2C F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 0B FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1C 01 00 35 04 06 00 [09:40:27]Write to MH i2c: E2 02 01 68 05 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 D2 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8D F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 35 00 00 00 00 07 04 06 00 2C F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 0B FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1C 01 00 35 04 06 00 00 00 5B [09:40:27]Write i2c OK [09:40:27]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:28]Read from MH i2c: E2 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 03 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [09:40:28]RAPDU: 90 00 [09:40:28]wFMCommunicate OK [09:40:28]wFMCommunicate request_size=11 [09:40:28]MH_SAM_APDU [09:40:28]CAPDU: 80 0D 02 02 06 12 BE 14 D3 1D F9 [09:40:28]Write to MH i2c: E2 0E 00 69 05 80 0D 02 02 06 00 12 BE 14 D3 1D F9 00 00 C1 [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:28]Read from MH i2c: E2 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 03 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [09:40:28]RAPDU: 90 00 [09:40:28]wFMCommunicate OK [09:40:28]wFMCommunicate request_size=4 [09:40:28]MH_SAM_APDU [09:40:28]CAPDU: 80 0D 03 02 [09:40:28]Write to MH i2c: E2 08 00 6A 05 80 0D 03 02 00 00 00 00 EA [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:28]Read from MH i2c: E2 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 0B 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 0B 00 6A 05 00 84 1C B8 15 DD C7 59 96 90 00 EB [09:40:28]RAPDU: 84 1C B8 15 DD C7 59 96 90 00 [09:40:28]wFMCommunicate OK [09:40:28]SAM_PROTO_SignData done [09:40:28]FM_MakeSignedData done [09:40:28]CreateOFDProtocolMessage [09:40:28]wFMCommunicate request_size=4 [09:40:28]MH_SAM_APDU [09:40:28]CAPDU: 80 11 00 00 [09:40:28]Write to MH i2c: E2 08 00 6B 05 80 11 00 00 00 00 00 00 EA [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:28]Read from MH i2c: E2 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 17 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: E2 17 00 6B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3E [09:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:40:28]wFMCommunicate OK [09:40:28]CreateOFDProtocolMessage done [09:40:28]OFDSenderStorePacket 72820 [09:40:28]StoreOFDPacket docnum=72820 [09:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 46 B8 08 01 BB 94 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 D2 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8D F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 35 00 00 00 00 07 04 06 00 2C F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 0B FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1C 01 00 35 04 06 00 12 BE 14 D3 1D F9 84 1C B8 15 DD C7 59 96 [09:40:28]CheckFolder [09:40:28]dirname=/storage/ofd_packets [09:40:28]CheckFolder done [09:40:28]ProducePacketName [09:40:28]name=ofd_packets/00072820 [09:40:28]NVStorageSaveData ofd_packets/00072820 [09:40:28]File name is /storage/ofd_packets/00072820 [09:40:28]Write 302 bytes [09:40:28]NVStorageSaveData done [09:40:28]OFDSenderStorePacket done [09:40:28]KKMCreateOFDPacket done [09:40:28]NVStorageSaveData kkm_last_timestamp [09:40:28]File name is /storage/kkm_last_timestamp [09:40:28]Write 4 bytes [09:40:28]NVStorageSaveData done [09:40:28]ExternCall_PrintAddStr [09:40:28]wPrintStart [09:40:28]Write to MH i2c: 01 00 00 6C 05 71 [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: 01 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: 01 07 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: 01 07 00 6C 05 00 00 00 00 00 FF 0F 86 [09:40:28]RasterBufferAndPrint [09:40:28]line Счет N : (1)952380 [09:40:28]line ИНН: 02508201610067 [09:40:28]line Контрольно-Кассовый Чек [09:40:28]line ПРОДАЖА [09:40:28]line ТРК (МРК, ГНК) : 33 [09:40:28]line Товар: 2710194210 [09:40:28]line ДТ(л)-К-5 [09:40:28]line 16.850 * 76.20 [09:40:28]line = 1283.97 [09:40:28]line НДС 12% НСП 1% [09:40:28]line > о реализуемом товаре [09:40:28]line ОКРУГЛЕНИЕ: -0.97 [09:40:28]line ИТОГО: 1283.00 [09:40:28]line Внесено: 2000.00 [09:40:28]line СДАЧА: 717.00 [09:40:28]line НСП 1% : 11.36 [09:40:28]line НДС 12% : 136.35 [09:40:28]line Наличными: 1283.00 [09:40:28]line Безнал.: 0.00 [09:40:28]line Место: АЗС № 113 "Партнер Нефть" [09:40:28]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:40:28]line СНО: Общий режим [09:40:28]line Чек 57 30.10.2024 09:40 [09:40:28]line Смена: 556 ФФД: 1.0 [09:40:28]line ЗНМ: 0300000087 [09:40:28]line РНМ: 0000000000091644 [09:40:28]line Версия ККМ: 001 [09:40:28]line ФМ: 0000000000874662 [09:40:28]line ФД: 72820 [09:40:28]line ФПД: 20607602466297 [09:40:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094027&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72820&fm=20607602466297&tin=02508201610067®Number=0000000000091644&sum=128300 [09:40:28]OFD Sender: Processing packet 72820 [packets to send 278, broken 277] [09:40:28]ProducePacketName [09:40:28]name=ofd_packets/00072820 [09:40:28]OFD Sender: To server: pG, [09:40:28]CommunicateWithHost lk.salyk.kg:30040 [09:40:28]ConnectInit lk.salyk.kg [09:40:28]written 0, free lines is 4095 [09:40:29]Write to MH i2c: 01 00 00 97 05 9C [09:40:29]Write i2c OK [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: 01 [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: 01 07 00 [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 CF 0C 7E [09:40:29]RasterBufferAndPrint [09:40:29]line [09:40:29]line [09:40:29]line [09:40:29]line [09:40:29]line [09:40:29]written 0, free lines is 3282 [09:40:29]MH_Cut [09:40:29]Write to MH i2c: D1 01 00 9E 05 01 75 [09:40:29]Write i2c OK [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: D1 [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: D1 01 00 [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: D1 01 00 9E 05 00 74 [09:40:29]Write to MH i2c: 01 00 00 9F 05 A4 [09:40:29]Write i2c OK [09:40:29]MH_I2C_Read... [09:40:29]*** Cut start [09:40:29]*** Partial cut [09:40:29]*** CUTSNS_PIN = 1 [09:40:30]*** CUTSNS_PIN = 0 [09:40:30]*** Brake cut motor [09:40:30]Read from MH i2c: 01 [09:40:30]MH_I2C_Read... [09:40:30]*** Stop cut motor [09:40:30]*** Cut end [09:40:30]Read from MH i2c: 01 07 00 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: 01 07 00 9F 05 00 00 00 00 00 FF 0F B9 [09:40:30]process_action close_receipt done [09:40:30]requested_data is exist [09:40:30]produce_requested_data [09:40:30]requested_item fm.sn is exist - process it [09:40:30]wFMCommunicate request_size=4 [09:40:30]MH_SAM_APDU [09:40:30]CAPDU: 80 11 00 00 [09:40:30]Write to MH i2c: E2 08 00 A0 05 80 11 00 00 00 00 00 00 1F [09:40:30]Write i2c OK [09:40:30]MH_I2C_Read... [09:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:30]Read from MH i2c: E2 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 17 00 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 17 00 A0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 73 [09:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:40:30]wFMCommunicate OK [09:40:30]requested_item fd.num is exist - process it [09:40:30]SAM_PROTO_GetFieldsCounters [09:40:30]wFMCommunicate request_size=4 [09:40:30]MH_SAM_APDU [09:40:30]CAPDU: 80 13 00 00 [09:40:30]Write to MH i2c: E2 08 00 A1 05 80 13 00 00 00 00 00 00 22 [09:40:30]Write i2c OK [09:40:30]MH_I2C_Read... [09:40:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:30]Read from MH i2c: E2 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 62 00 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 62 00 A1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 74 1C 01 00 0E 04 04 00 2C 02 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 AD [09:40:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 74 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:30]wFMCommunicate OK [09:40:30]SAM_PROTO_GetFieldsCounters done [09:40:30]requested_item shift.num is exist - process it [09:40:30]requested_item shift.opened is exist - process it [09:40:30]req_shift_opened [09:40:30]FM_GetShiftState [09:40:30]SAM_PROTO_GetShiftState [09:40:30]wFMCommunicate request_size=4 [09:40:30]MH_SAM_APDU [09:40:30]CAPDU: 80 13 01 00 [09:40:30]Write to MH i2c: E2 08 00 A2 05 80 13 01 00 00 00 00 00 24 [09:40:30]Write i2c OK [09:40:30]MH_I2C_Read... [09:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:30]Read from MH i2c: E2 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 0E 00 [09:40:30]MH_I2C_Read... [09:40:30]Read from MH i2c: E2 0E 00 A2 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 F6 [09:40:30]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:40:30]wFMCommunicate OK [09:40:30]SAM_PROTO_GetShiftState done [09:40:30]FM_GetShiftState done [09:40:30]req_shift_opened done [09:40:30]requested_item shift.open_date is exist - process it [09:40:30]req_shift_open_date [09:40:30]req_shift_open_date done [09:40:30]produce_requested_data done [09:40:30]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72820,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [09:40:30]process_action_free close_receipt [09:40:30]json_value_free [09:40:30]json_value_free done [09:40:30]process_json_proto returns [09:40:30]Send response to host [09:40:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72820,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [09:40:30]free response buf [09:40:30]execute_script done [09:40:30]execute_script returns [09:40:30]free content buf [09:40:30]Sock 7.Close socket [09:40:30]Sock 7.Thread stoped [09:40:33]Connected sock=11 [09:40:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 46 B8 08 01 BB 94 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 D2 41 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8D F5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C F5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 35 00 00 00 00 07 04 06 00 2C F5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 0B FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1C 01 00 35 04 06 00 12 BE 14 D3 1D F9 84 1C B8 15 DD C7 59 96 [09:40:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 80 2F 47 00 2D EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1C 01 00 F4 03 04 00 C8 A9 21 67 B6 04 01 00 00 C0 C0 98 23 A1 B7 41 13 [09:40:33]CommunicateWithHost err = 0 [09:40:33]CheckOFDResponse [09:40:33]1017 (14) - 77093643461234 [09:40:33]1041 (16) - 0000000000874662 [09:40:33]1040 (4) - 72820 [09:40:33]1012 (4) - 30.10.2024 03:36 [09:40:33]1206 (1) - 0 [09:40:33]OFD Sender: Remove packet 72820 [09:40:33]ProducePacketName [09:40:33]name=ofd_packets/00072820 [09:40:33]NVStorageDeleteData [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:09]accept exits with 9 [09:41:09]New connection [09:41:09]New thread 3066645860 created [09:41:09]Thread 3066789220 joined [09:41:09]Waiting for new connection... [09:41:09] Sock 9.Parse request [09:41:09]Sock 9.Check first char [09:41:09]Sock 9.First char is OK [09:41:09]request: POST /json_proto HTTP/1.0 [09:41:09]Method: POST [09:41:09]URL: /json_proto [09:41:09]Method is POST - this is cgi request [09:41:09]url: /json_proto [09:41:09]query_string will be loaded in cgi processing [09:41:09]execute_cgi json_proto POST (null) [09:41:09]execute_cgi path=json_proto method=POST [09:41:09]POST find Content-Length [09:41:09]Host: 172.17.43.195:8080 [09:41:09]Content-Length: 792 [09:41:09]Content-Type: application/json [09:41:09] [09:41:09]POST finish read [09:41:09]Found Content-Length = 792 [09:41:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:09]execute_script... [09:41:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:09]POST & json_proto [09:41:09]process_json_proto [09:41:09]json parsed OK: [09:41:09]protocol is kg_v1.0 [09:41:09]action value=close_receipt [09:41:09]process_action close_receipt [09:41:09]cmd_close_receipt [09:41:09]MH_GetDate [09:41:09]Write to MH i2c: F0 00 00 A3 05 97 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: F0 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: F0 09 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: F0 09 00 A3 05 00 36 FF 21 67 74 2C AD 66 10 [09:41:09]GetLastDocTimeStamp 1730281227 [09:41:09]current date 1730281270 [09:41:09]FM_GetShiftState [09:41:09]SAM_PROTO_GetShiftState [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 13 01 00 [09:41:09]Write to MH i2c: E2 08 00 A4 05 80 13 01 00 00 00 00 00 26 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 0E 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 0E 00 A4 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 F8 [09:41:09]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:41:09]wFMCommunicate OK [09:41:09]SAM_PROTO_GetShiftState done [09:41:09]FM_GetShiftState done [09:41:09]opened in 1730247109 [09:41:09]opened+sec_in_day 1730333509 [09:41:09]quantity*price = 0 [09:41:09]sum+1 = 1 [09:41:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 58 30.10.2024 09:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72821 ФПД: 146930923278336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094110&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72821&fm=146930923278336&tin=02508201610067®Number=0000000000091644&sum=0 [09:41:11]StoreToDocumentArchive [09:41:11]shift 556 fd 72821 [09:41:11]save to /storage/0556/doc_00072821 [09:41:11]save last doc name /storage/0556/doc_00072821 to /storage/kkm_last_doc_name [09:41:11]save OK [09:41:11]Clear old archive folders... [09:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:11]tlvbuf is 01202E00 [09:41:11]SAM_PROTO_ClearQueue [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 09 00 00 [09:41:11]Write to MH i2c: E2 08 00 B1 05 80 09 00 00 00 00 00 00 28 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [09:41:11]RAPDU: 90 00 [09:41:11]wFMCommunicate OK [09:41:11]SAM_PROTO_ClearQueue done [09:41:11]KKMCreateOFDPacket [09:41:11]OFDProtocolAddRootSTLVToBuf [09:41:11]FM_MakeSignedData [09:41:11]FM_MakeSignedData [09:41:11]SAM_PROTO_SignData [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 0D 01 02 [09:41:11]Write to MH i2c: E2 08 00 B2 05 80 0D 01 02 00 00 00 00 30 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 B2 05 00 90 00 2B [09:41:11]RAPDU: 90 00 [09:41:11]wFMCommunicate OK [09:41:11]wFMCommunicate request_size=255 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 36 FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1C 01 00 35 04 06 00 85 [09:41:11]Write to MH i2c: E2 02 01 B3 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 36 FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1C 01 00 35 04 06 00 85 00 00 E4 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [09:41:11]RAPDU: 90 00 [09:41:11]wFMCommunicate OK [09:41:11]wFMCommunicate request_size=10 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 0D 02 02 05 A2 05 7D 10 00 [09:41:11]Write to MH i2c: E2 0D 00 B4 05 80 0D 02 02 05 00 A2 05 7D 10 00 00 00 71 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [09:41:11]RAPDU: 90 00 [09:41:11]wFMCommunicate OK [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 0D 03 02 [09:41:11]Write to MH i2c: E2 08 00 B5 05 80 0D 03 02 00 00 00 00 35 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 0B 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 0B 00 B5 05 00 90 E6 BD 2D 45 A5 44 76 90 00 3A [09:41:11]RAPDU: 90 E6 BD 2D 45 A5 44 76 90 00 [09:41:11]wFMCommunicate OK [09:41:11]SAM_PROTO_SignData done [09:41:11]FM_MakeSignedData done [09:41:11]CreateOFDProtocolMessage [09:41:11]wFMCommunicate request_size=4 [09:41:11]MH_SAM_APDU [09:41:11]CAPDU: 80 11 00 00 [09:41:11]Write to MH i2c: E2 08 00 B6 05 80 11 00 00 00 00 00 00 35 [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:11]Read from MH i2c: E2 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 17 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: E2 17 00 B6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 89 [09:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:41:11]wFMCommunicate OK [09:41:11]CreateOFDProtocolMessage done [09:41:11]OFDSenderStorePacket 72821 [09:41:11]StoreOFDPacket docnum=72821 [09:41:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DD FC 07 01 0E 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 36 FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1C 01 00 35 04 06 00 85 A2 05 7D 10 00 90 E6 BD 2D 45 A5 44 76 [09:41:11]CheckFolder [09:41:11]dirname=/storage/ofd_packets [09:41:11]CheckFolder done [09:41:11]ProducePacketName [09:41:11]name=ofd_packets/00072821 [09:41:11]NVStorageSaveData ofd_packets/00072821 [09:41:11]File name is /storage/ofd_packets/00072821 [09:41:11]Write 301 bytes [09:41:11]NVStorageSaveData done [09:41:11]OFDSenderStorePacket done [09:41:11]KKMCreateOFDPacket done [09:41:11]NVStorageSaveData kkm_last_timestamp [09:41:11]File name is /storage/kkm_last_timestamp [09:41:11]Write 4 bytes [09:41:11]NVStorageSaveData done [09:41:11]OFD Sender: Processing packet 72821 [packets to send 278, broken 277] [09:41:11]ProducePacketName [09:41:11]name=ofd_packets/00072821 [09:41:11]OFD Sender: To server: pG, [09:41:11]CommunicateWithHost lk.salyk.kg:30040 [09:41:11]ConnectInit lk.salyk.kg [09:41:11]ExternCall_PrintAddStr [09:41:11]wPrintStart [09:41:11]Write to MH i2c: 01 00 00 B7 05 BC [09:41:11]Write i2c OK [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: 01 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: 01 07 00 [09:41:11]MH_I2C_Read... [09:41:11]Read from MH i2c: 01 07 00 B7 05 00 00 00 00 00 FF 0F D1 [09:41:11]RasterBufferAndPrint [09:41:11]line Счет N : (1)952381 [09:41:11]line ИНН: 02508201610067 [09:41:11]line Контрольно-Кассовый Чек [09:41:11]line ПРОДАЖА [09:41:11]line ТРК (МРК, ГНК) : 53 [09:41:11]line Товар: 2710124130 [09:41:11]line Аи-92-К-5 [09:41:11]line 20.000 * 0.00 [09:41:11]line = 0.00 [09:41:11]line НДС 12% НСП 1% [09:41:11]line > о реализуемом товаре [09:41:11]line ИТОГО: 0.00 [09:41:11]line НСП 1% : 0.00 [09:41:11]line НДС 12% : 0.00 [09:41:11]line Наличными: 0.00 [09:41:11]line Безнал.: 0.00 [09:41:11]line Место: АЗС № 113 "Партнер Нефть" [09:41:11]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:41:11]line СНО: Общий режим [09:41:11]line Чек 58 30.10.2024 09:41 [09:41:11]line Смена: 556 ФФД: 1.0 [09:41:11]line ЗНМ: 0300000087 [09:41:11]line РНМ: 0000000000091644 [09:41:11]line Версия ККМ: 001 [09:41:11]line Талоны: Топливная Карта [09:41:11]line 03047 [09:41:11]line ФМ: 0000000000874662 [09:41:11]line ФД: 72821 [09:41:11]line ФПД: 146930923278336 [09:41:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094110&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72821&fm=146930923278336&tin=02508201610067®Number=0000000000091644&sum=0 [09:41:11]written 0, free lines is 4095 [09:41:12]Write to MH i2c: 01 00 00 E1 05 E6 [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 07 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: 01 07 00 E1 05 00 00 00 00 00 E4 0C DD [09:41:12]RasterBufferAndPrint [09:41:12]line [09:41:12]line [09:41:12]line [09:41:12]line [09:41:12]line [09:41:12]written 0, free lines is 3306 [09:41:12]MH_Cut [09:41:12]Write to MH i2c: D1 01 00 E8 05 01 BF [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: D1 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: D1 01 00 [09:41:12]MH_I2C_Read... [09:41:12]Read from MH i2c: D1 01 00 E8 05 00 BE [09:41:12]Write to MH i2c: 01 00 00 E9 05 EE [09:41:12]Write i2c OK [09:41:12]MH_I2C_Read... [09:41:13]*** Cut start [09:41:13]*** Partial cut [09:41:13]*** CUTSNS_PIN = 1 [09:41:13]*** CUTSNS_PIN = 0 [09:41:13]*** Brake cut motor [09:41:13]Read from MH i2c: 01 [09:41:13]MH_I2C_Read... [09:41:13]*** Stop cut motor [09:41:13]*** Cut end [09:41:13]Read from MH i2c: 01 07 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: 01 07 00 E9 05 00 00 00 00 00 FF 0F 03 [09:41:13]process_action close_receipt done [09:41:13]requested_data is exist [09:41:13]produce_requested_data [09:41:13]requested_item fm.sn is exist - process it [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 11 00 00 [09:41:13]Write to MH i2c: E2 08 00 EA 05 80 11 00 00 00 00 00 00 69 [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:13]Read from MH i2c: E2 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 17 00 [09:41:13]MH_I2C_Read... [09:41:13]Read from MH i2c: E2 17 00 EA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BD [09:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:41:13]wFMCommunicate OK [09:41:13]requested_item fd.num is exist - process it [09:41:13]SAM_PROTO_GetFieldsCounters [09:41:13]wFMCommunicate request_size=4 [09:41:13]MH_SAM_APDU [09:41:13]CAPDU: 80 13 00 00 [09:41:13]Write to MH i2c: E2 08 00 EB 05 80 13 00 00 00 00 00 00 6C [09:41:13]Write i2c OK [09:41:13]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 62 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 62 00 EB 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 75 1C 01 00 0E 04 04 00 2C 02 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 FB [09:41:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 75 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:14]wFMCommunicate OK [09:41:14]SAM_PROTO_GetFieldsCounters done [09:41:14]requested_item shift.num is exist - process it [09:41:14]requested_item shift.opened is exist - process it [09:41:14]req_shift_opened [09:41:14]FM_GetShiftState [09:41:14]SAM_PROTO_GetShiftState [09:41:14]wFMCommunicate request_size=4 [09:41:14]MH_SAM_APDU [09:41:14]CAPDU: 80 13 01 00 [09:41:14]Write to MH i2c: E2 08 00 EC 05 80 13 01 00 00 00 00 00 6E [09:41:14]Write i2c OK [09:41:14]MH_I2C_Read... [09:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:14]Read from MH i2c: E2 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 0E 00 [09:41:14]MH_I2C_Read... [09:41:14]Read from MH i2c: E2 0E 00 EC 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 40 [09:41:14]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:41:14]wFMCommunicate OK [09:41:14]SAM_PROTO_GetShiftState done [09:41:14]FM_GetShiftState done [09:41:14]req_shift_opened done [09:41:14]requested_item shift.open_date is exist - process it [09:41:14]req_shift_open_date [09:41:14]req_shift_open_date done [09:41:14]produce_requested_data done [09:41:14]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72821,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [09:41:14]process_action_free close_receipt [09:41:14]json_value_free [09:41:14]json_value_free done [09:41:14]process_json_proto returns [09:41:14]Send response to host [09:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72821,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [09:41:14]free response buf [09:41:14]execute_script done [09:41:14]execute_script returns [09:41:14]free content buf [09:41:14]Sock 9.Close socket [09:41:14]Sock 9.Thread stoped [09:41:14]Connected sock=11 [09:41:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DD FC 07 01 0E 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 36 FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1C 01 00 35 04 06 00 85 A2 05 7D 10 00 90 E6 BD 2D 45 A5 44 76 [09:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7B 14 47 00 1B BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1C 01 00 F4 03 04 00 F6 A9 21 67 B6 04 01 00 00 4A 26 09 6F BF 44 E9 B0 [09:41:19]CommunicateWithHost err = 0 [09:41:19]CheckOFDResponse [09:41:19]1017 (14) - 77093643461234 [09:41:19]1041 (16) - 0000000000874662 [09:41:19]1040 (4) - 72821 [09:41:19]1012 (4) - 30.10.2024 03:37 [09:41:19]1206 (1) - 0 [09:41:19]OFD Sender: Remove packet 72821 [09:41:19]ProducePacketName [09:41:19]name=ofd_packets/00072821 [09:41:19]NVStorageDeleteData [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:30]recv_with_timeout no data received [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:41:55]recv_with_timeout no data received [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:24]recv_with_timeout no data received [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]recv_with_timeout no data received [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]recv_with_timeout no data received [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:44:56]recv_with_timeout no data received [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:26]recv_with_timeout no data received [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:34]accept exits with 7 [09:46:34]New connection [09:46:34]New thread 3066789220 created [09:46:34]Thread 3066645860 joined [09:46:34]Waiting for new connection... [09:46:34] Sock 7.Parse request [09:46:34]Sock 7.Check first char [09:46:34]Sock 7.First char is OK [09:46:34]request: POST /json_proto HTTP/1.0 [09:46:34]Method: POST [09:46:34]URL: /json_proto [09:46:34]Method is POST - this is cgi request [09:46:34]url: /json_proto [09:46:34]query_string will be loaded in cgi processing [09:46:34]execute_cgi json_proto POST (null) [09:46:34]execute_cgi path=json_proto method=POST [09:46:34]POST find Content-Length [09:46:34]Host: 172.17.43.195:8080 [09:46:34]Content-Length: 677 [09:46:34]Content-Type: application/json [09:46:34] [09:46:34]POST finish read [09:46:34]Found Content-Length = 677 [09:46:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:34]execute_script... [09:46:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:34]POST & json_proto [09:46:34]process_json_proto [09:46:34]json parsed OK: [09:46:34]protocol is kg_v1.0 [09:46:34]action value=close_receipt [09:46:34]process_action close_receipt [09:46:34]cmd_close_receipt [09:46:34]MH_GetDate [09:46:34]Write to MH i2c: F0 00 00 ED 05 E1 [09:46:34]Write i2c OK [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: F0 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: F0 09 00 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: F0 09 00 ED 05 00 7A 00 22 67 74 2C AD 66 A0 [09:46:34]GetLastDocTimeStamp 1730281270 [09:46:34]current date 1730281594 [09:46:34]FM_GetShiftState [09:46:34]SAM_PROTO_GetShiftState [09:46:34]wFMCommunicate request_size=4 [09:46:34]MH_SAM_APDU [09:46:34]CAPDU: 80 13 01 00 [09:46:34]Write to MH i2c: E2 08 00 EE 05 80 13 01 00 00 00 00 00 70 [09:46:34]Write i2c OK [09:46:34]MH_I2C_Read... [09:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:34]Read from MH i2c: E2 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: E2 0E 00 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: E2 0E 00 EE 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 42 [09:46:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:46:34]wFMCommunicate OK [09:46:34]SAM_PROTO_GetShiftState done [09:46:34]FM_GetShiftState done [09:46:34]opened in 1730247109 [09:46:34]opened+sec_in_day 1730333509 [09:46:34]quantity*price = 50041 [09:46:34]sum+1 = 50042 [09:46:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 59 30.10.2024 09:46 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72822 ФПД: 176073462368020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094634&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72822&fm=176073462368020&tin=02508201610067®Number=0000000000091644&sum=50000 [09:46:35]StoreToDocumentArchive [09:46:35]shift 556 fd 72822 [09:46:35]save to /storage/0556/doc_00072822 [09:46:35]save last doc name /storage/0556/doc_00072822 to /storage/kkm_last_doc_name [09:46:35]save OK [09:46:35]Clear old archive folders... [09:46:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:35]tlvbuf is 011C4A00 [09:46:35]SAM_PROTO_ClearQueue [09:46:35]wFMCommunicate request_size=4 [09:46:35]MH_SAM_APDU [09:46:35]CAPDU: 80 09 00 00 [09:46:35]Write to MH i2c: E2 08 00 FB 05 80 09 00 00 00 00 00 00 72 [09:46:35]Write i2c OK [09:46:35]MH_I2C_Read... [09:46:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:35]Read from MH i2c: E2 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 03 00 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 03 00 FB 05 00 90 00 74 [09:46:35]RAPDU: 90 00 [09:46:35]wFMCommunicate OK [09:46:35]SAM_PROTO_ClearQueue done [09:46:35]KKMCreateOFDPacket [09:46:35]OFDProtocolAddRootSTLVToBuf [09:46:35]FM_MakeSignedData [09:46:35]FM_MakeSignedData [09:46:35]SAM_PROTO_SignData [09:46:35]wFMCommunicate request_size=4 [09:46:35]MH_SAM_APDU [09:46:35]CAPDU: 80 0D 01 02 [09:46:35]Write to MH i2c: E2 08 00 FC 05 80 0D 01 02 00 00 00 00 7A [09:46:35]Write i2c OK [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 [09:46:35]MH_I2C_Read... [09:46:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:35]Read from MH i2c: E2 03 00 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 03 00 FC 05 00 90 00 75 [09:46:35]RAPDU: 90 00 [09:46:35]wFMCommunicate OK [09:46:35]wFMCommunicate request_size=255 [09:46:35]MH_SAM_APDU [09:46:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7A 00 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1C 01 00 35 04 06 00 A0 [09:46:35]Write to MH i2c: E2 02 01 FD 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7A 00 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1C 01 00 35 04 06 00 A0 00 00 A8 [09:46:35]Write i2c OK [09:46:35]MH_I2C_Read... [09:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:35]Read from MH i2c: E2 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 03 00 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 03 00 FD 05 00 90 00 76 [09:46:35]RAPDU: 90 00 [09:46:35]wFMCommunicate OK [09:46:35]wFMCommunicate request_size=10 [09:46:35]MH_SAM_APDU [09:46:35]CAPDU: 80 0D 02 02 05 23 4C 2D C7 14 [09:46:35]Write to MH i2c: E2 0D 00 FE 05 80 0D 02 02 05 00 23 4C 2D C7 14 00 00 FE [09:46:35]Write i2c OK [09:46:35]MH_I2C_Read... [09:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:35]Read from MH i2c: E2 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 03 00 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [09:46:35]RAPDU: 90 00 [09:46:35]wFMCommunicate OK [09:46:35]wFMCommunicate request_size=4 [09:46:35]MH_SAM_APDU [09:46:35]CAPDU: 80 0D 03 02 [09:46:35]Write to MH i2c: E2 08 00 FF 05 80 0D 03 02 00 00 00 00 7F [09:46:35]Write i2c OK [09:46:35]MH_I2C_Read... [09:46:35]OFD Sender: No OFD packet to send [09:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:35]Read from MH i2c: E2 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 0B 00 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 0B 00 FF 05 00 DD 1D FC 11 61 3F DF 3D 90 00 43 [09:46:35]RAPDU: DD 1D FC 11 61 3F DF 3D 90 00 [09:46:35]wFMCommunicate OK [09:46:35]SAM_PROTO_SignData done [09:46:35]FM_MakeSignedData done [09:46:35]CreateOFDProtocolMessage [09:46:35]wFMCommunicate request_size=4 [09:46:35]MH_SAM_APDU [09:46:35]CAPDU: 80 11 00 00 [09:46:35]Write to MH i2c: E2 08 00 00 06 80 11 00 00 00 00 00 00 80 [09:46:35]Write i2c OK [09:46:35]MH_I2C_Read... [09:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:36]Read from MH i2c: E2 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 17 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: E2 17 00 00 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D4 [09:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:46:36]wFMCommunicate OK [09:46:36]CreateOFDProtocolMessage done [09:46:36]OFDSenderStorePacket 72822 [09:46:36]StoreOFDPacket docnum=72822 [09:46:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 13 92 07 01 E1 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7A 00 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1C 01 00 35 04 06 00 A0 23 4C 2D C7 14 DD 1D FC 11 61 3F DF 3D [09:46:36]CheckFolder [09:46:36]dirname=/storage/ofd_packets [09:46:36]CheckFolder done [09:46:36]ProducePacketName [09:46:36]name=ofd_packets/00072822 [09:46:36]NVStorageSaveData ofd_packets/00072822 [09:46:36]File name is /storage/ofd_packets/00072822 [09:46:36]Write 301 bytes [09:46:36]NVStorageSaveData done [09:46:36]OFDSenderStorePacket done [09:46:36]KKMCreateOFDPacket done [09:46:36]NVStorageSaveData kkm_last_timestamp [09:46:36]File name is /storage/kkm_last_timestamp [09:46:36]Write 4 bytes [09:46:36]NVStorageSaveData done [09:46:36]ExternCall_PrintAddStr [09:46:36]wPrintStart [09:46:36]Write to MH i2c: 01 00 00 01 06 07 [09:46:36]Write i2c OK [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: 01 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: 01 07 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: 01 07 00 01 06 00 00 00 00 00 FF 0F 1C [09:46:36]RasterBufferAndPrint [09:46:36]line Счет N : (1)952382 [09:46:36]line ИНН: 02508201610067 [09:46:36]line Контрольно-Кассовый Чек [09:46:36]line ПРОДАЖА [09:46:36]line ТРК (МРК, ГНК) : 63 [09:46:36]line Товар: 2710124130 [09:46:36]line Аи-92-К-5 [09:46:36]line 7.480 * 66.90 [09:46:36]line = 500.41 [09:46:36]line НДС 12% НСП 1% [09:46:36]line > о реализуемом товаре [09:46:36]line ОКРУГЛЕНИЕ: -0.41 [09:46:36]line ИТОГО: 500.00 [09:46:36]line Внесено: 500.00 [09:46:36]line СДАЧА: 0.00 [09:46:36]line НСП 1% : 4.43 [09:46:36]line НДС 12% : 53.14 [09:46:36]line Наличными: 500.00 [09:46:36]line Безнал.: 0.00 [09:46:36]line Место: АЗС № 113 "Партнер Нефть" [09:46:36]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:46:36]line СНО: Общий режим [09:46:36]line Чек 59 30.10.2024 09:46 [09:46:36]line Смена: 556 ФФД: 1.0 [09:46:36]line ЗНМ: 0300000087 [09:46:36]line РНМ: 0000000000091644 [09:46:36]line Версия ККМ: 001 [09:46:36]line ФМ: 0000000000874662 [09:46:36]line ФД: 72822 [09:46:36]line ФПД: 176073462368020 [09:46:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094634&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72822&fm=176073462368020&tin=02508201610067®Number=0000000000091644&sum=50000 [09:46:36]OFD Sender: Processing packet 72822 [packets to send 278, broken 277] [09:46:36]ProducePacketName [09:46:36]name=ofd_packets/00072822 [09:46:36]OFD Sender: To server: pG, [09:46:36]CommunicateWithHost lk.salyk.kg:30040 [09:46:36]ConnectInit lk.salyk.kg [09:46:36]written 0, free lines is 4095 [09:46:36]Write to MH i2c: 01 00 00 2C 06 32 [09:46:36]Write i2c OK [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: 01 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: 01 07 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: 01 07 00 2C 06 00 00 00 00 00 C6 0C 0B [09:46:36]RasterBufferAndPrint [09:46:36]line [09:46:36]line [09:46:36]line [09:46:36]line [09:46:36]line [09:46:36]written 0, free lines is 3276 [09:46:36]MH_Cut [09:46:36]Write to MH i2c: D1 01 00 33 06 01 0B [09:46:36]Write i2c OK [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: D1 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: D1 01 00 [09:46:36]MH_I2C_Read... [09:46:36]Read from MH i2c: D1 01 00 33 06 00 0A [09:46:36]Write to MH i2c: 01 00 00 34 06 3A [09:46:36]Write i2c OK [09:46:36]MH_I2C_Read... [09:46:37]*** Cut start [09:46:37]*** Partial cut [09:46:37]*** CUTSNS_PIN = 1 [09:46:37]*** CUTSNS_PIN = 0 [09:46:37]*** Brake cut motor [09:46:38]Read from MH i2c: 01 [09:46:38]MH_I2C_Read... [09:46:38]*** Stop cut motor [09:46:38]Read from MH i2c: 01 07 00 [09:46:38]MH_I2C_Read... [09:46:38]*** Cut end [09:46:38]Read from MH i2c: 01 07 00 34 06 00 00 00 00 00 FF 0F 4F [09:46:38]process_action close_receipt done [09:46:38]requested_data is exist [09:46:38]produce_requested_data [09:46:38]requested_item fm.sn is exist - process it [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 11 00 00 [09:46:38]Write to MH i2c: E2 08 00 35 06 80 11 00 00 00 00 00 00 B5 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 17 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 17 00 35 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 09 [09:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:46:38]wFMCommunicate OK [09:46:38]requested_item fd.num is exist - process it [09:46:38]SAM_PROTO_GetFieldsCounters [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 13 00 00 [09:46:38]Write to MH i2c: E2 08 00 36 06 80 13 00 00 00 00 00 00 B8 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 62 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 62 00 36 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 76 1C 01 00 0E 04 04 00 2C 02 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 4B [09:46:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 76 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:38]wFMCommunicate OK [09:46:38]SAM_PROTO_GetFieldsCounters done [09:46:38]requested_item shift.num is exist - process it [09:46:38]requested_item shift.opened is exist - process it [09:46:38]req_shift_opened [09:46:38]FM_GetShiftState [09:46:38]SAM_PROTO_GetShiftState [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 13 01 00 [09:46:38]Write to MH i2c: E2 08 00 37 06 80 13 01 00 00 00 00 00 BA [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0E 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0E 00 37 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 8C [09:46:38]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:46:38]wFMCommunicate OK [09:46:38]SAM_PROTO_GetShiftState done [09:46:38]FM_GetShiftState done [09:46:38]req_shift_opened done [09:46:38]requested_item shift.open_date is exist - process it [09:46:38]req_shift_open_date [09:46:38]req_shift_open_date done [09:46:38]produce_requested_data done [09:46:38]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72822,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [09:46:38]process_action_free close_receipt [09:46:38]json_value_free [09:46:38]json_value_free done [09:46:38]process_json_proto returns [09:46:38]Send response to host [09:46:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72822,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [09:46:38]free response buf [09:46:38]execute_script done [09:46:38]execute_script returns [09:46:38]free content buf [09:46:38]Sock 7.Close socket [09:46:38]Sock 7.Thread stoped [09:46:39]Connected sock=11 [09:46:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 13 92 07 01 E1 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 7A 00 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1C 01 00 35 04 06 00 A0 23 4C 2D C7 14 DD 1D FC 11 61 3F DF 3D [09:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D6 16 47 00 ED 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 38 37 34 36 36 32 10 04 04 00 76 1C 01 00 F4 03 04 00 37 AB 21 67 B6 04 01 00 00 39 49 D4 8A 32 83 0F 3E [09:46:40]CommunicateWithHost err = 0 [09:46:40]CheckOFDResponse [09:46:40]1017 (14) - 77093643461234 [09:46:40]1041 (16) - 0000000000874662 [09:46:40]1040 (4) - 72822 [09:46:40]1012 (4) - 30.10.2024 03:42 [09:46:40]1206 (1) - 0 [09:46:40]OFD Sender: Remove packet 72822 [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00072822 [09:46:40]NVStorageDeleteData [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:46:56]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:41]recv_with_timeout no data received [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:52]accept exits with 9 [09:49:52]New connection [09:49:52]New thread 3066645860 created [09:49:52]Thread 3066789220 joined [09:49:52]Waiting for new connection... [09:49:52] Sock 9.Parse request [09:49:52]Sock 9.Check first char [09:49:52]Sock 9.First char is OK [09:49:52]request: POST /json_proto HTTP/1.0 [09:49:52]Method: POST [09:49:52]URL: /json_proto [09:49:52]Method is POST - this is cgi request [09:49:52]url: /json_proto [09:49:52]query_string will be loaded in cgi processing [09:49:52]execute_cgi json_proto POST (null) [09:49:52]execute_cgi path=json_proto method=POST [09:49:52]POST find Content-Length [09:49:52]Host: 172.17.43.195:8080 [09:49:52]Content-Length: 659 [09:49:52]Content-Type: application/json [09:49:52] [09:49:52]POST finish read [09:49:52]Found Content-Length = 659 [09:49:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:52]execute_script... [09:49:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:52]POST & json_proto [09:49:52]process_json_proto [09:49:52]json parsed OK: [09:49:52]protocol is kg_v1.0 [09:49:52]action value=close_receipt [09:49:52]process_action close_receipt [09:49:52]cmd_close_receipt [09:49:52]MH_GetDate [09:49:52]Write to MH i2c: F0 00 00 38 06 2D [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: F0 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: F0 09 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: F0 09 00 38 06 00 40 01 22 67 74 2C AD 66 B3 [09:49:52]GetLastDocTimeStamp 1730281594 [09:49:52]current date 1730281792 [09:49:52]FM_GetShiftState [09:49:52]SAM_PROTO_GetShiftState [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 13 01 00 [09:49:52]Write to MH i2c: E2 08 00 39 06 80 13 01 00 00 00 00 00 BC [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0E 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0E 00 39 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 8E [09:49:52]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_GetShiftState done [09:49:52]FM_GetShiftState done [09:49:52]opened in 1730247109 [09:49:52]opened+sec_in_day 1730333509 [09:49:52]quantity*price = 70041 [09:49:52]sum+1 = 70043 [09:49:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 60 30.10.2024 09:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72823 ФПД: 99203217188649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094952&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72823&fm=99203217188649&tin=02508201610067®Number=0000000000091644&sum=70000 [09:49:53]StoreToDocumentArchive [09:49:53]shift 556 fd 72823 [09:49:53]save to /storage/0556/doc_00072823 [09:49:53]save last doc name /storage/0556/doc_00072823 to /storage/kkm_last_doc_name [09:49:53]save OK [09:49:53]Clear old archive folders... [09:49:53]ProcessDocumentItem done err = 0, tmpTLVsize=244 [09:49:53]tlvbuf is 011DBCE0 [09:49:53]SAM_PROTO_ClearQueue [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 09 00 00 [09:49:53]Write to MH i2c: E2 08 00 46 06 80 09 00 00 00 00 00 00 BE [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 46 06 00 90 00 C0 [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]SAM_PROTO_ClearQueue done [09:49:53]KKMCreateOFDPacket [09:49:53]OFDProtocolAddRootSTLVToBuf [09:49:53]FM_MakeSignedData [09:49:53]FM_MakeSignedData [09:49:53]SAM_PROTO_SignData [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 01 02 [09:49:53]Write to MH i2c: E2 08 00 47 06 80 0D 01 02 00 00 00 00 C6 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 47 06 00 90 00 C1 [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]wFMCommunicate request_size=253 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 40 01 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1C 01 00 35 04 06 00 5A 39 8C 85 67 29 [09:49:53]Write to MH i2c: E2 00 01 48 06 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 40 01 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1C 01 00 35 04 06 00 5A 39 8C 85 67 29 00 00 78 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 48 06 00 90 00 C2 [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 03 02 [09:49:53]Write to MH i2c: E2 08 00 49 06 80 0D 03 02 00 00 00 00 CA [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0B 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0B 00 49 06 00 FE 30 BB 9D 22 0C 02 3C 90 00 BD [09:49:53]RAPDU: FE 30 BB 9D 22 0C 02 3C 90 00 [09:49:53]wFMCommunicate OK [09:49:53]SAM_PROTO_SignData done [09:49:53]FM_MakeSignedData done [09:49:53]CreateOFDProtocolMessage [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 11 00 00 [09:49:53]Write to MH i2c: E2 08 00 4A 06 80 11 00 00 00 00 00 00 CA [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 4A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1E [09:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:49:53]wFMCommunicate OK [09:49:53]CreateOFDProtocolMessage done [09:49:53]OFDSenderStorePacket 72823 [09:49:53]StoreOFDPacket docnum=72823 [09:49:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 67 9A 00 01 26 F8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 40 01 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1C 01 00 35 04 06 00 5A 39 8C 85 67 29 FE 30 BB 9D 22 0C 02 3C [09:49:53]CheckFolder [09:49:53]dirname=/storage/ofd_packets [09:49:53]CheckFolder done [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00072823 [09:49:53]NVStorageSaveData ofd_packets/00072823 [09:49:53]File name is /storage/ofd_packets/00072823 [09:49:53]Write 294 bytes [09:49:53]NVStorageSaveData done [09:49:53]OFDSenderStorePacket done [09:49:53]KKMCreateOFDPacket done [09:49:53]NVStorageSaveData kkm_last_timestamp [09:49:53]File name is /storage/kkm_last_timestamp [09:49:53]Write 4 bytes [09:49:53]NVStorageSaveData done [09:49:53]ExternCall_PrintAddStr [09:49:53]wPrintStart [09:49:53]Write to MH i2c: 01 00 00 4B 06 51 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 4B 06 00 00 00 00 00 FF 0F 66 [09:49:53]RasterBufferAndPrint [09:49:53]line Счет N : (1)952383 [09:49:53]line ИНН: 02508201610067 [09:49:53]line Контрольно-Кассовый Чек [09:49:53]line ПРОДАЖА [09:49:53]line ТРК (МРК, ГНК) : 51 [09:49:53]line Товар: 50.50.0 [09:49:53]line Super 92 [09:49:53]line 10.240 * 68.40 [09:49:53]line = 700.42 [09:49:53]line НДС 12% НСП 1% [09:49:53]line > о реализуемом товаре [09:49:53]line ОКРУГЛЕНИЕ: -0.42 [09:49:53]line ИТОГО: 700.00 [09:49:53]line Внесено: 700.00 [09:49:53]line СДАЧА: 0.00 [09:49:53]line НСП 1% : 6.20 [09:49:53]line НДС 12% : 74.38 [09:49:53]line Наличными: 700.00 [09:49:53]line Безнал.: 0.00 [09:49:53]line Место: АЗС № 113 "Партнер Нефть" [09:49:53]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:49:53]line СНО: Общий режим [09:49:53]line Чек 60 30.10.2024 09:49 [09:49:53]line Смена: 556 ФФД: 1.0 [09:49:53]line ЗНМ: 0300000087 [09:49:53]line РНМ: 0000000000091644 [09:49:53]line Версия ККМ: 001 [09:49:53]line ФМ: 0000000000874662 [09:49:53]line ФД: 72823 [09:49:53]line ФПД: 99203217188649 [09:49:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094952&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72823&fm=99203217188649&tin=02508201610067®Number=0000000000091644&sum=70000 [09:49:54]OFD Sender: Processing packet 72823 [packets to send 278, broken 277] [09:49:54]ProducePacketName [09:49:54]name=ofd_packets/00072823 [09:49:54]OFD Sender: To server: pG, [09:49:54]CommunicateWithHost lk.salyk.kg:30040 [09:49:54]ConnectInit lk.salyk.kg [09:49:54]written 0, free lines is 4095 [09:49:54]Write to MH i2c: 01 00 00 76 06 7C [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 76 06 00 00 00 00 00 D3 0C 62 [09:49:54]RasterBufferAndPrint [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]written 0, free lines is 3287 [09:49:54]MH_Cut [09:49:54]Write to MH i2c: D1 01 00 7D 06 01 55 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 01 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 01 00 7D 06 00 54 [09:49:54]Write to MH i2c: 01 00 00 7E 06 84 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:55]*** Cut start [09:49:55]*** Partial cut [09:49:55]*** CUTSNS_PIN = 1 [09:49:55]*** CUTSNS_PIN = 0 [09:49:55]*** Brake cut motor [09:49:55]Read from MH i2c: 01 [09:49:55]MH_I2C_Read... [09:49:55]*** Stop cut motor [09:49:55]*** Cut end [09:49:55]Read from MH i2c: 01 07 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 FF 0F 99 [09:49:55]process_action close_receipt done [09:49:55]requested_data is exist [09:49:55]produce_requested_data [09:49:55]requested_item fm.sn is exist - process it [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 11 00 00 [09:49:55]Write to MH i2c: E2 08 00 7F 06 80 11 00 00 00 00 00 00 FF [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 17 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 17 00 7F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 53 [09:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:49:56]wFMCommunicate OK [09:49:56]requested_item fd.num is exist - process it [09:49:56]SAM_PROTO_GetFieldsCounters [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 13 00 00 [09:49:56]Write to MH i2c: E2 08 00 80 06 80 13 00 00 00 00 00 00 02 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 62 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 62 00 80 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 77 1C 01 00 0E 04 04 00 2C 02 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 99 [09:49:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 77 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:56]wFMCommunicate OK [09:49:56]SAM_PROTO_GetFieldsCounters done [09:49:56]requested_item shift.num is exist - process it [09:49:56]requested_item shift.opened is exist - process it [09:49:56]req_shift_opened [09:49:56]FM_GetShiftState [09:49:56]SAM_PROTO_GetShiftState [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 13 01 00 [09:49:56]Write to MH i2c: E2 08 00 81 06 80 13 01 00 00 00 00 00 04 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 0E 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 0E 00 81 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 D6 [09:49:56]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:49:56]wFMCommunicate OK [09:49:56]SAM_PROTO_GetShiftState done [09:49:56]FM_GetShiftState done [09:49:56]req_shift_opened done [09:49:56]requested_item shift.open_date is exist - process it [09:49:56]req_shift_open_date [09:49:56]req_shift_open_date done [09:49:56]produce_requested_data done [09:49:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72823,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [09:49:56]process_action_free close_receipt [09:49:56]json_value_free [09:49:56]json_value_free done [09:49:56]process_json_proto returns [09:49:56]Send response to host [09:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72823,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [09:49:56]free response buf [09:49:56]execute_script done [09:49:56]execute_script returns [09:49:56]free content buf [09:49:56]Sock 9.Close socket [09:49:56]Sock 9.Thread stoped [09:49:59]recv_with_timeout no data received [09:49:59]ConnectInit Can't take IP for lk.salyk.kg [09:49:59]CommunicateWithHost connect error [09:49:59]CommunicateWithHost err = -1 [09:49:59]OFD Sender: Server communicate error [09:50:04]OFD Sender: Processing packet 72823 [packets to send 278, broken 277] [09:50:04]ProducePacketName [09:50:04]name=ofd_packets/00072823 [09:50:04]OFD Sender: To server: pG, [09:50:04]CommunicateWithHost lk.salyk.kg:30040 [09:50:04]ConnectInit lk.salyk.kg [09:50:10]recv_with_timeout no data received [09:50:16]Connected sock=10 [09:50:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 67 9A 00 01 26 F8 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 40 01 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1C 01 00 35 04 06 00 5A 39 8C 85 67 29 FE 30 BB 9D 22 0C 02 3C [09:50:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 92 AE 47 00 6E 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1C 01 00 F4 03 04 00 11 AC 21 67 B6 04 01 00 00 2D B8 83 F6 01 3D C5 9E [09:50:18]CommunicateWithHost err = 0 [09:50:18]CheckOFDResponse [09:50:18]1017 (14) - 77093643461234 [09:50:18]1041 (16) - 0000000000874662 [09:50:18]1040 (4) - 72823 [09:50:18]1012 (4) - 30.10.2024 03:46 [09:50:18]1206 (1) - 0 [09:50:18]OFD Sender: Remove packet 72823 [09:50:18]ProducePacketName [09:50:18]name=ofd_packets/00072823 [09:50:18]NVStorageDeleteData [09:50:19]OFD Sender: No OFD packet to send [09:50:22]recv_with_timeout no data received [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:30]recv_with_timeout no data received [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]recv_with_timeout no data received [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:00]recv_with_timeout no data received [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:35]recv_with_timeout no data received [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:58]recv_with_timeout no data received [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:20]accept exits with 7 [09:58:20]New connection [09:58:20]New thread 3066789220 created [09:58:20]Thread 3066645860 joined [09:58:20]Waiting for new connection... [09:58:20] Sock 7.Parse request [09:58:20]Sock 7.Check first char [09:58:20]Sock 7.First char is OK [09:58:20]request: POST /json_proto HTTP/1.0 [09:58:20]Method: POST [09:58:20]URL: /json_proto [09:58:20]Method is POST - this is cgi request [09:58:20]url: /json_proto [09:58:20]query_string will be loaded in cgi processing [09:58:20]execute_cgi json_proto POST (null) [09:58:20]execute_cgi path=json_proto method=POST [09:58:20]POST find Content-Length [09:58:20]Host: 172.17.43.195:8080 [09:58:20]Content-Length: 682 [09:58:20]Content-Type: application/json [09:58:20] [09:58:20]POST finish read [09:58:20]Found Content-Length = 682 [09:58:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 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" ] } } [09:58:20]execute_script... [09:58:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 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" ] } } [09:58:20]POST & json_proto [09:58:20]process_json_proto [09:58:20]json parsed OK: [09:58:20]protocol is kg_v1.0 [09:58:20]action value=close_receipt [09:58:20]process_action close_receipt [09:58:20]cmd_close_receipt [09:58:20]MH_GetDate [09:58:20]Write to MH i2c: F0 00 00 82 06 77 [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: F0 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: F0 09 00 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: F0 09 00 82 06 00 3D 03 22 67 74 2C AD 66 FC [09:58:20]GetLastDocTimeStamp 1730281792 [09:58:20]current date 1730282301 [09:58:20]FM_GetShiftState [09:58:20]SAM_PROTO_GetShiftState [09:58:20]wFMCommunicate request_size=4 [09:58:20]MH_SAM_APDU [09:58:20]CAPDU: 80 13 01 00 [09:58:20]Write to MH i2c: E2 08 00 83 06 80 13 01 00 00 00 00 00 06 [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:21]Read from MH i2c: E2 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 0E 00 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 0E 00 83 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 D8 [09:58:21]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:58:21]wFMCommunicate OK [09:58:21]SAM_PROTO_GetShiftState done [09:58:21]FM_GetShiftState done [09:58:21]opened in 1730247109 [09:58:21]opened+sec_in_day 1730333509 [09:58:21]quantity*price = 150032 [09:58:21]sum+1 = 150033 [09:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 61 30.10.2024 09:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72824 ФПД: 191846519597278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095821&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72824&fm=191846519597278&tin=02508201610067®Number=0000000000091644&sum=150000 [09:58:22]StoreToDocumentArchive [09:58:22]shift 556 fd 72824 [09:58:22]save to /storage/0556/doc_00072824 [09:58:22]save last doc name /storage/0556/doc_00072824 to /storage/kkm_last_doc_name [09:58:22]save OK [09:58:22]Clear old archive folders... [09:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:22]tlvbuf is 011434B0 [09:58:22]SAM_PROTO_ClearQueue [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 09 00 00 [09:58:22]Write to MH i2c: E2 08 00 90 06 80 09 00 00 00 00 00 00 08 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [09:58:22]RAPDU: 90 00 [09:58:22]wFMCommunicate OK [09:58:22]SAM_PROTO_ClearQueue done [09:58:22]KKMCreateOFDPacket [09:58:22]OFDProtocolAddRootSTLVToBuf [09:58:22]FM_MakeSignedData [09:58:22]FM_MakeSignedData [09:58:22]SAM_PROTO_SignData [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 0D 01 02 [09:58:22]Write to MH i2c: E2 08 00 91 06 80 0D 01 02 00 00 00 00 10 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [09:58:22]RAPDU: 90 00 [09:58:22]wFMCommunicate OK [09:58:22]wFMCommunicate request_size=255 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 3D 03 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 78 1C 01 00 35 04 06 00 AE [09:58:22]Write to MH i2c: E2 02 01 92 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 3D 03 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 78 1C 01 00 35 04 06 00 AE 00 00 77 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 92 06 00 90 00 0C [09:58:22]RAPDU: 90 00 [09:58:22]wFMCommunicate OK [09:58:22]wFMCommunicate request_size=10 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 0D 02 02 05 7B BF A6 E8 DE [09:58:22]Write to MH i2c: E2 0D 00 93 06 80 0D 02 02 05 00 7B BF A6 E8 DE 00 00 C3 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 93 06 00 90 00 0D [09:58:22]RAPDU: 90 00 [09:58:22]wFMCommunicate OK [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 0D 03 02 [09:58:22]Write to MH i2c: E2 08 00 94 06 80 0D 03 02 00 00 00 00 15 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 0B 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 0B 00 94 06 00 2F AD AA 75 1A 3B 8C 4C 90 00 3E [09:58:22]RAPDU: 2F AD AA 75 1A 3B 8C 4C 90 00 [09:58:22]wFMCommunicate OK [09:58:22]SAM_PROTO_SignData done [09:58:22]FM_MakeSignedData done [09:58:22]CreateOFDProtocolMessage [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 11 00 00 [09:58:22]Write to MH i2c: E2 08 00 95 06 80 11 00 00 00 00 00 00 15 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 17 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 17 00 95 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 69 [09:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:58:22]wFMCommunicate OK [09:58:22]CreateOFDProtocolMessage done [09:58:22]OFDSenderStorePacket 72824 [09:58:22]StoreOFDPacket docnum=72824 [09:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D7 9F 07 01 59 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 3D 03 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 78 1C 01 00 35 04 06 00 AE 7B BF A6 E8 DE 2F AD AA 75 1A 3B 8C 4C [09:58:22]CheckFolder [09:58:22]dirname=/storage/ofd_packets [09:58:22]CheckFolder done [09:58:22]ProducePacketName [09:58:22]name=ofd_packets/00072824 [09:58:22]NVStorageSaveData ofd_packets/00072824 [09:58:22]File name is /storage/ofd_packets/00072824 [09:58:22]Write 301 bytes [09:58:22]NVStorageSaveData done [09:58:22]OFDSenderStorePacket done [09:58:22]KKMCreateOFDPacket done [09:58:22]NVStorageSaveData kkm_last_timestamp [09:58:22]File name is /storage/kkm_last_timestamp [09:58:22]Write 4 bytes [09:58:22]NVStorageSaveData done [09:58:22]ExternCall_PrintAddStr [09:58:22]wPrintStart [09:58:22]Write to MH i2c: 01 00 00 96 06 9C [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: 01 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: 01 07 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: 01 07 00 96 06 00 00 00 00 00 FF 0F B1 [09:58:22]RasterBufferAndPrint [09:58:22]line Счет N : (1)952385 [09:58:22]line ИНН: 02508201610067 [09:58:22]line Контрольно-Кассовый Чек [09:58:22]line ПРОДАЖА [09:58:22]line ТРК (МРК, ГНК) : 62 [09:58:22]line Товар: 2710124500 [09:58:22]line Аи-95-К-3 [09:58:22]line 20.220 * 74.20 [09:58:22]line = 1500.32 [09:58:22]line НДС 12% НСП 1% [09:58:22]line > о реализуемом товаре [09:58:22]line ОКРУГЛЕНИЕ: -0.32 [09:58:22]line ИТОГО: 1500.00 [09:58:22]line Внесено: 1500.00 [09:58:22]line СДАЧА: 0.00 [09:58:22]line НСП 1% : 13.28 [09:58:22]line НДС 12% : 159.33 [09:58:22]line Наличными: 1500.00 [09:58:22]line Безнал.: 0.00 [09:58:22]line Место: АЗС № 113 "Партнер Нефть" [09:58:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:58:22]line СНО: Общий режим [09:58:22]line Чек 61 30.10.2024 09:58 [09:58:22]line Смена: 556 ФФД: 1.0 [09:58:22]line ЗНМ: 0300000087 [09:58:22]line РНМ: 0000000000091644 [09:58:22]line Версия ККМ: 001 [09:58:22]line ФМ: 0000000000874662 [09:58:22]line ФД: 72824 [09:58:22]line ФПД: 191846519597278 [09:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T095821&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72824&fm=191846519597278&tin=02508201610067®Number=0000000000091644&sum=150000 [09:58:22]OFD Sender: Processing packet 72824 [packets to send 278, broken 277] [09:58:22]ProducePacketName [09:58:22]name=ofd_packets/00072824 [09:58:22]OFD Sender: To server: pG, [09:58:22]CommunicateWithHost lk.salyk.kg:30040 [09:58:22]ConnectInit lk.salyk.kg [09:58:22]written 0, free lines is 4095 [09:58:23]Write to MH i2c: 01 00 00 C1 06 C7 [09:58:23]Write i2c OK [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: 01 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: 01 07 00 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 CB 0C A5 [09:58:23]RasterBufferAndPrint [09:58:23]line [09:58:23]line [09:58:23]line [09:58:23]line [09:58:23]line [09:58:23]written 0, free lines is 3281 [09:58:23]MH_Cut [09:58:23]Write to MH i2c: D1 01 00 C8 06 01 A0 [09:58:23]Write i2c OK [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: D1 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: D1 01 00 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: D1 01 00 C8 06 00 9F [09:58:23]Write to MH i2c: 01 00 00 C9 06 CF [09:58:23]Write i2c OK [09:58:23]MH_I2C_Read... [09:58:23]Connected sock=10 [09:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D7 9F 07 01 59 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 3D 03 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 78 1C 01 00 35 04 06 00 AE 7B BF A6 E8 DE 2F AD AA 75 1A 3B 8C 4C [09:58:24]*** Cut start [09:58:24]*** Partial cut [09:58:24]*** CUTSNS_PIN = 1 [09:58:24]*** CUTSNS_PIN = 0 [09:58:24]*** Brake cut motor [09:58:24]Read from MH i2c: 01 [09:58:24]MH_I2C_Read... [09:58:24]*** Stop cut motor [09:58:24]*** Cut end [09:58:24]Read from MH i2c: 01 07 00 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 FF 0F E4 [09:58:24]process_action close_receipt done [09:58:24]requested_data is exist [09:58:24]produce_requested_data [09:58:24]requested_item fm.sn is exist - process it [09:58:24]wFMCommunicate request_size=4 [09:58:24]MH_SAM_APDU [09:58:24]CAPDU: 80 11 00 00 [09:58:24]Write to MH i2c: E2 08 00 CA 06 80 11 00 00 00 00 00 00 4A [09:58:24]Write i2c OK [09:58:24]MH_I2C_Read... [09:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:24]Read from MH i2c: E2 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: E2 17 00 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: E2 17 00 CA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9E [09:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:58:24]wFMCommunicate OK [09:58:24]requested_item fd.num is exist - process it [09:58:24]SAM_PROTO_GetFieldsCounters [09:58:24]wFMCommunicate request_size=4 [09:58:24]MH_SAM_APDU [09:58:24]CAPDU: 80 13 00 00 [09:58:24]Write to MH i2c: E2 08 00 CB 06 80 13 00 00 00 00 00 00 4D [09:58:24]Write i2c OK [09:58:24]MH_I2C_Read... [09:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 69 6F 47 00 12 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 78 1C 01 00 F4 03 04 00 F7 AD 21 67 B6 04 01 00 00 49 80 39 68 7F 55 46 50 [09:58:24]CommunicateWithHost err = 0 [09:58:24]CheckOFDResponse [09:58:24]1017 (14) - 77093643461234 [09:58:24]1041 (16) - 0000000000874662 [09:58:24]1040 (4) - 72824 [09:58:24]1012 (4) - 30.10.2024 03:54 [09:58:24]1206 (1) - 0 [09:58:24]OFD Sender: Remove packet 72824 [09:58:24]ProducePacketName [09:58:24]name=ofd_packets/00072824 [09:58:24]NVStorageDeleteData [09:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:25]Read from MH i2c: E2 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 62 00 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 62 00 CB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 78 1C 01 00 0E 04 04 00 2C 02 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 E8 [09:58:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 78 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:25]wFMCommunicate OK [09:58:25]SAM_PROTO_GetFieldsCounters done [09:58:25]requested_item shift.num is exist - process it [09:58:25]requested_item shift.opened is exist - process it [09:58:25]req_shift_opened [09:58:25]FM_GetShiftState [09:58:25]SAM_PROTO_GetShiftState [09:58:25]wFMCommunicate request_size=4 [09:58:25]MH_SAM_APDU [09:58:25]CAPDU: 80 13 01 00 [09:58:25]Write to MH i2c: E2 08 00 CC 06 80 13 01 00 00 00 00 00 4F [09:58:25]Write i2c OK [09:58:25]MH_I2C_Read... [09:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:25]Read from MH i2c: E2 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 0E 00 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 0E 00 CC 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 21 [09:58:25]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [09:58:25]wFMCommunicate OK [09:58:25]SAM_PROTO_GetShiftState done [09:58:25]FM_GetShiftState done [09:58:25]req_shift_opened done [09:58:25]requested_item shift.open_date is exist - process it [09:58:25]req_shift_open_date [09:58:25]req_shift_open_date done [09:58:25]produce_requested_data done [09:58:25]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72824,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [09:58:25]process_action_free close_receipt [09:58:25]json_value_free [09:58:25]json_value_free done [09:58:25]process_json_proto returns [09:58:25]Send response to host [09:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72824,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [09:58:25]free response buf [09:58:25]execute_script done [09:58:25]execute_script returns [09:58:25]free content buf [09:58:25]Sock 7.Close socket [09:58:25]Sock 7.Thread stoped [09:58:25]OFD Sender: No OFD packet to send [09:58:29]recv_with_timeout no data received [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]recv_with_timeout no data received [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:50]recv_with_timeout no data received [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:16]recv_with_timeout no data received [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:24]recv_with_timeout no data received [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:41]recv_with_timeout no data received [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [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:05]recv_with_timeout no data received [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:44]recv_with_timeout no data received [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [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: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:20]recv_with_timeout no data received [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: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:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:54]recv_with_timeout no data received [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:04]recv_with_timeout no data received [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]recv_with_timeout no data received [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:27]recv_with_timeout no data received [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]recv_with_timeout no data received [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:10:58]accept exits with 9 [10:10:58]New connection [10:10:58]New thread 3066645860 created [10:10:58]Thread 3066789220 joined [10:10:58]Waiting for new connection... [10:10:58] Sock 9.Parse request [10:10:58]Sock 9.Check first char [10:10:58]Sock 9.First char is OK [10:10:58]request: POST /json_proto HTTP/1.0 [10:10:58]Method: POST [10:10:58]URL: /json_proto [10:10:58]Method is POST - this is cgi request [10:10:58]url: /json_proto [10:10:58]query_string will be loaded in cgi processing [10:10:58]execute_cgi json_proto POST (null) [10:10:58]execute_cgi path=json_proto method=POST [10:10:58]POST find Content-Length [10:10:58]Host: 172.17.43.195:8080 [10:10:58]Content-Length: 677 [10:10:58]Content-Type: application/json [10:10:58] [10:10:58]POST finish read [10:10:58]Found Content-Length = 677 [10:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:58]execute_script... [10: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)952387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:58]POST & json_proto [10:10:58]process_json_proto [10:10:58]json parsed OK: [10:10:58]protocol is kg_v1.0 [10:10:58]action value=close_receipt [10:10:58]process_action close_receipt [10:10:58]cmd_close_receipt [10:10:58]MH_GetDate [10:10:58]Write to MH i2c: F0 00 00 CD 06 C2 [10:10:58]Write i2c OK [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: F0 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: F0 09 00 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: F0 09 00 CD 06 00 32 06 22 67 74 2C AD 66 3F [10:10:58]GetLastDocTimeStamp 1730282301 [10:10:58]current date 1730283058 [10:10:58]FM_GetShiftState [10:10:58]SAM_PROTO_GetShiftState [10:10:58]wFMCommunicate request_size=4 [10:10:58]MH_SAM_APDU [10:10:58]CAPDU: 80 13 01 00 [10:10:58]Write to MH i2c: E2 08 00 CE 06 80 13 01 00 00 00 00 00 51 [10:10:58]Write i2c OK [10:10:58]MH_I2C_Read... [10:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:58]Read from MH i2c: E2 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 0E 00 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 0E 00 CE 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 23 [10:10:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [10:10:58]wFMCommunicate OK [10:10:58]SAM_PROTO_GetShiftState done [10:10:58]FM_GetShiftState done [10:10:58]opened in 1730247109 [10:10:58]opened+sec_in_day 1730333509 [10:10:58]quantity*price = 20003 [10:10:58]sum+1 = 20004 [10:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 62 30.10.2024 10:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72825 ФПД: 30559621647842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101058&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72825&fm=30559621647842&tin=02508201610067®Number=0000000000091644&sum=20000 [10:10:59]StoreToDocumentArchive [10:10:59]shift 556 fd 72825 [10:10:59]save to /storage/0556/doc_00072825 [10:10:59]save last doc name /storage/0556/doc_00072825 to /storage/kkm_last_doc_name [10:10:59]save OK [10:10:59]Clear old archive folders... [10:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:59]tlvbuf is 0115E4C0 [10:10:59]SAM_PROTO_ClearQueue [10:10:59]wFMCommunicate request_size=4 [10:10:59]MH_SAM_APDU [10:10:59]CAPDU: 80 09 00 00 [10:10:59]Write to MH i2c: E2 08 00 DB 06 80 09 00 00 00 00 00 00 53 [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:59]Read from MH i2c: E2 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 03 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [10:10:59]RAPDU: 90 00 [10:10:59]wFMCommunicate OK [10:10:59]SAM_PROTO_ClearQueue done [10:10:59]KKMCreateOFDPacket [10:10:59]OFDProtocolAddRootSTLVToBuf [10:10:59]FM_MakeSignedData [10:10:59]FM_MakeSignedData [10:10:59]SAM_PROTO_SignData [10:10:59]wFMCommunicate request_size=4 [10:10:59]MH_SAM_APDU [10:10:59]CAPDU: 80 0D 01 02 [10:10:59]Write to MH i2c: E2 08 00 DC 06 80 0D 01 02 00 00 00 00 5B [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:59]Read from MH i2c: E2 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 03 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 03 00 DC 06 00 90 00 56 [10:10:59]RAPDU: 90 00 [10:10:59]wFMCommunicate OK [10:10:59]wFMCommunicate request_size=255 [10:10:59]MH_SAM_APDU [10: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 32 06 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1C 01 00 35 04 06 00 1B [10:10:59]Write to MH i2c: E2 02 01 DD 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 32 06 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1C 01 00 35 04 06 00 1B 00 00 8A [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:59]Read from MH i2c: E2 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 03 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [10:10:59]RAPDU: 90 00 [10:10:59]wFMCommunicate OK [10:10:59]wFMCommunicate request_size=10 [10:10:59]MH_SAM_APDU [10:10:59]CAPDU: 80 0D 02 02 05 CB 37 64 8D E2 [10:10:59]Write to MH i2c: E2 0D 00 DE 06 80 0D 02 02 05 00 CB 37 64 8D E2 00 00 3D [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:59]Read from MH i2c: E2 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 03 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [10:10:59]RAPDU: 90 00 [10:10:59]wFMCommunicate OK [10:10:59]wFMCommunicate request_size=4 [10:10:59]MH_SAM_APDU [10:10:59]CAPDU: 80 0D 03 02 [10:10:59]Write to MH i2c: E2 08 00 DF 06 80 0D 03 02 00 00 00 00 60 [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:59]Read from MH i2c: E2 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 0B 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 0B 00 DF 06 00 FC 5E 56 2A DE 56 5E 80 90 00 4D [10:10:59]RAPDU: FC 5E 56 2A DE 56 5E 80 90 00 [10:10:59]wFMCommunicate OK [10:10:59]SAM_PROTO_SignData done [10:10:59]FM_MakeSignedData done [10:10:59]CreateOFDProtocolMessage [10:10:59]wFMCommunicate request_size=4 [10:10:59]MH_SAM_APDU [10:10:59]CAPDU: 80 11 00 00 [10:10:59]Write to MH i2c: E2 08 00 E0 06 80 11 00 00 00 00 00 00 60 [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:59]Read from MH i2c: E2 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 17 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 17 00 E0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B4 [10:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:10:59]wFMCommunicate OK [10:10:59]CreateOFDProtocolMessage done [10:10:59]OFDSenderStorePacket 72825 [10:10:59]StoreOFDPacket docnum=72825 [10:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1A 7C 07 01 48 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 32 06 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1C 01 00 35 04 06 00 1B CB 37 64 8D E2 FC 5E 56 2A DE 56 5E 80 [10:10:59]CheckFolder [10:10:59]dirname=/storage/ofd_packets [10:10:59]CheckFolder done [10:10:59]ProducePacketName [10:10:59]name=ofd_packets/00072825 [10:10:59]NVStorageSaveData ofd_packets/00072825 [10:10:59]File name is /storage/ofd_packets/00072825 [10:10:59]Write 301 bytes [10:10:59]NVStorageSaveData done [10:10:59]OFDSenderStorePacket done [10:10:59]KKMCreateOFDPacket done [10:10:59]NVStorageSaveData kkm_last_timestamp [10:10:59]File name is /storage/kkm_last_timestamp [10:10:59]Write 4 bytes [10:10:59]NVStorageSaveData done [10:10:59]ExternCall_PrintAddStr [10:10:59]wPrintStart [10:10:59]Write to MH i2c: 01 00 00 E1 06 E7 [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 07 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 FF 0F FC [10:10:59]RasterBufferAndPrint [10:10:59]line Счет N : (1)952387 [10:10:59]line ИНН: 02508201610067 [10:10:59]line Контрольно-Кассовый Чек [10:10:59]line ПРОДАЖА [10:10:59]line ТРК (МРК, ГНК) : 63 [10:10:59]line Товар: 2710124130 [10:10:59]line Аи-92-К-5 [10:10:59]line 2.990 * 66.90 [10:10:59]line = 200.03 [10:10:59]line НДС 12% НСП 1% [10:10:59]line > о реализуемом товаре [10:10:59]line ОКРУГЛЕНИЕ: -0.03 [10:10:59]line ИТОГО: 200.00 [10:10:59]line Внесено: 200.00 [10:10:59]line СДАЧА: 0.00 [10:10:59]line НСП 1% : 1.77 [10:10:59]line НДС 12% : 21.24 [10:10:59]line Наличными: 200.00 [10:10:59]line Безнал.: 0.00 [10:10:59]line Место: АЗС № 113 "Партнер Нефть" [10:10:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:10:59]line СНО: Общий режим [10:10:59]line Чек 62 30.10.2024 10:10 [10:10:59]line Смена: 556 ФФД: 1.0 [10:10:59]line ЗНМ: 0300000087 [10:10:59]line РНМ: 0000000000091644 [10:10:59]line Версия ККМ: 001 [10:10:59]line ФМ: 0000000000874662 [10:10:59]line ФД: 72825 [10:10:59]line ФПД: 30559621647842 [10:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101058&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72825&fm=30559621647842&tin=02508201610067®Number=0000000000091644&sum=20000 [10:11:00]OFD Sender: Processing packet 72825 [packets to send 278, broken 277] [10:11:00]ProducePacketName [10:11:00]name=ofd_packets/00072825 [10:11:00]OFD Sender: To server: pG, [10:11:00]CommunicateWithHost lk.salyk.kg:30040 [10:11:00]ConnectInit lk.salyk.kg [10:11:00]written 0, free lines is 4095 [10:11:00]Write to MH i2c: 01 00 00 0C 07 13 [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: 01 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: 01 07 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: 01 07 00 0C 07 00 00 00 00 00 CD 0C F3 [10:11:00]RasterBufferAndPrint [10:11:00]line [10:11:00]line [10:11:00]line [10:11:00]line [10:11:00]line [10:11:00]written 0, free lines is 3280 [10:11:00]MH_Cut [10:11:00]Write to MH i2c: D1 01 00 13 07 01 EC [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: D1 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: D1 01 00 [10:11:00]MH_I2C_Read... [10:11:00]Read from MH i2c: D1 01 00 13 07 00 EB [10:11:00]Write to MH i2c: 01 00 00 14 07 1B [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:01]*** Cut start [10:11:01]*** Partial cut [10:11:01]*** CUTSNS_PIN = 1 [10:11:01]*** CUTSNS_PIN = 0 [10:11:01]*** Brake cut motor [10:11:02]Read from MH i2c: 01 [10:11:02]MH_I2C_Read... [10:11:02]*** Stop cut motor [10:11:02]*** Cut end [10:11:02]Read from MH i2c: 01 07 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 FF 0F 30 [10:11:02]process_action close_receipt done [10:11:02]requested_data is exist [10:11:02]produce_requested_data [10:11:02]requested_item fm.sn is exist - process it [10:11:02]wFMCommunicate request_size=4 [10:11:02]MH_SAM_APDU [10:11:02]CAPDU: 80 11 00 00 [10:11:02]Write to MH i2c: E2 08 00 15 07 80 11 00 00 00 00 00 00 96 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:02]Read from MH i2c: E2 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 17 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 17 00 15 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EA [10:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:11:02]wFMCommunicate OK [10:11:02]requested_item fd.num is exist - process it [10:11:02]SAM_PROTO_GetFieldsCounters [10:11:02]wFMCommunicate request_size=4 [10:11:02]MH_SAM_APDU [10:11:02]CAPDU: 80 13 00 00 [10:11:02]Write to MH i2c: E2 08 00 16 07 80 13 00 00 00 00 00 00 99 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:02]Read from MH i2c: E2 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 62 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 62 00 16 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 79 1C 01 00 0E 04 04 00 2C 02 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 38 [10:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 79 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:02]wFMCommunicate OK [10:11:02]SAM_PROTO_GetFieldsCounters done [10:11:02]requested_item shift.num is exist - process it [10:11:02]requested_item shift.opened is exist - process it [10:11:02]req_shift_opened [10:11:02]FM_GetShiftState [10:11:02]SAM_PROTO_GetShiftState [10:11:02]wFMCommunicate request_size=4 [10:11:02]MH_SAM_APDU [10:11:02]CAPDU: 80 13 01 00 [10:11:02]Write to MH i2c: E2 08 00 17 07 80 13 01 00 00 00 00 00 9B [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:02]Read from MH i2c: E2 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 0E 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: E2 0E 00 17 07 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 6D [10:11:02]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [10:11:02]wFMCommunicate OK [10:11:02]SAM_PROTO_GetShiftState done [10:11:02]FM_GetShiftState done [10:11:02]req_shift_opened done [10:11:02]requested_item shift.open_date is exist - process it [10:11:02]req_shift_open_date [10:11:02]req_shift_open_date done [10:11:02]produce_requested_data done [10:11:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72825,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [10:11:02]process_action_free close_receipt [10:11:02]json_value_free [10:11:02]json_value_free done [10:11:02]process_json_proto returns [10:11:02]Send response to host [10:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72825,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [10:11:02]free response buf [10:11:02]execute_script done [10:11:02]execute_script returns [10:11:02]free content buf [10:11:02]Sock 9.Close socket [10:11:02]Sock 9.Thread stoped [10:11:05]ConnectInit Can't take IP for lk.salyk.kg [10:11:05]CommunicateWithHost connect error [10:11:05]CommunicateWithHost err = -1 [10:11:05]OFD Sender: Server communicate error [10:11:10]OFD Sender: Processing packet 72825 [packets to send 278, broken 277] [10:11:10]ProducePacketName [10:11:10]name=ofd_packets/00072825 [10:11:10]OFD Sender: To server: pG, [10:11:10]CommunicateWithHost lk.salyk.kg:30040 [10:11:10]ConnectInit lk.salyk.kg [10:11:13]Connected sock=10 [10:11:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1A 7C 07 01 48 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 32 06 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1C 01 00 35 04 06 00 1B CB 37 64 8D E2 FC 5E 56 2A DE 56 5E 80 [10:11:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 53 B7 47 00 30 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1C 01 00 F4 03 04 00 F8 B0 21 67 B6 04 01 00 00 3C 04 10 29 DF 65 F2 EE [10:11:13]CommunicateWithHost err = 0 [10:11:13]CheckOFDResponse [10:11:13]1017 (14) - 77093643461234 [10:11:13]1041 (16) - 0000000000874662 [10:11:13]1040 (4) - 72825 [10:11:13]1012 (4) - 30.10.2024 04:07 [10:11:13]1206 (1) - 0 [10:11:13]OFD Sender: Remove packet 72825 [10:11:13]ProducePacketName [10:11:13]name=ofd_packets/00072825 [10:11:13]NVStorageDeleteData [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]recv_with_timeout no data received [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:36]recv_with_timeout no data received [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:10]recv_with_timeout no data received [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:54]recv_with_timeout no data received [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:08]recv_with_timeout no data received [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]recv_with_timeout no data received [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:29]recv_with_timeout no data received [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:55]recv_with_timeout no data received [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:14]recv_with_timeout no data received [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]recv_with_timeout no data received [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:19]recv_with_timeout no data received [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:56]recv_with_timeout no data received [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:35]recv_with_timeout no data received [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:46]recv_with_timeout no data received [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:33]ConnectInit Can't connect to host [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:43]recv_with_timeout no data received [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:07]recv_with_timeout no data received [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:06]recv_with_timeout no data received [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:17]recv_with_timeout no data received [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:27]recv_with_timeout no data received [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:38]recv_with_timeout no data received [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:08]recv_with_timeout no data received [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:19]recv_with_timeout no data received [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:48]recv_with_timeout no data received [10:27:50]OFD Sender: No OFD packet to send [10:27:50]accept exits with 7 [10:27:50]New connection [10:27:50]New thread 3066789220 created [10:27:50]Thread 3066645860 joined [10:27:50]Waiting for new connection... [10:27:50] Sock 7.Parse request [10:27:50]Sock 7.Check first char [10:27:50]Sock 7.First char is OK [10:27:50]request: POST /json_proto HTTP/1.0 [10:27:50]Method: POST [10:27:50]URL: /json_proto [10:27:50]Method is POST - this is cgi request [10:27:50]url: /json_proto [10:27:50]query_string will be loaded in cgi processing [10:27:50]execute_cgi json_proto POST (null) [10:27:50]execute_cgi path=json_proto method=POST [10:27:50]POST find Content-Length [10:27:50]Host: 172.17.43.195:8080 [10:27:50]Content-Length: 792 [10:27:50]Content-Type: application/json [10:27:50] [10:27:50]POST finish read [10:27:50]Found Content-Length = 792 [10:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:50]execute_script... [10:27:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:50]POST & json_proto [10:27:50]process_json_proto [10:27:50]json parsed OK: [10:27:50]protocol is kg_v1.0 [10:27:50]action value=close_receipt [10:27:50]process_action close_receipt [10:27:50]cmd_close_receipt [10:27:50]MH_GetDate [10:27:50]Write to MH i2c: F0 00 00 18 07 0E [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: F0 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: F0 09 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: F0 09 00 18 07 00 27 0A 22 67 74 2C AD 66 84 [10:27:50]GetLastDocTimeStamp 1730283058 [10:27:50]current date 1730284071 [10:27:50]FM_GetShiftState [10:27:50]SAM_PROTO_GetShiftState [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 13 01 00 [10:27:50]Write to MH i2c: E2 08 00 19 07 80 13 01 00 00 00 00 00 9D [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 0E 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 0E 00 19 07 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 6F [10:27:50]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [10:27:50]wFMCommunicate OK [10:27:50]SAM_PROTO_GetShiftState done [10:27:50]FM_GetShiftState done [10:27:50]opened in 1730247109 [10:27:50]opened+sec_in_day 1730333509 [10:27:50]quantity*price = 0 [10:27:50]sum+1 = 1 [10:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 63 30.10.2024 10:27 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72826 ФПД: 185387765925385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102751&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72826&fm=185387765925385&tin=02508201610067®Number=0000000000091644&sum=0 [10:27:52]StoreToDocumentArchive [10:27:52]shift 556 fd 72826 [10:27:52]save to /storage/0556/doc_00072826 [10:27:52]save last doc name /storage/0556/doc_00072826 to /storage/kkm_last_doc_name [10:27:52]save OK [10:27:52]Clear old archive folders... [10:27:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:52]tlvbuf is 01123E80 [10:27:52]SAM_PROTO_ClearQueue [10:27:52]wFMCommunicate request_size=4 [10:27:52]MH_SAM_APDU [10:27:52]CAPDU: 80 09 00 00 [10:27:52]Write to MH i2c: E2 08 00 26 07 80 09 00 00 00 00 00 00 9F [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [10:27:52]RAPDU: 90 00 [10:27:52]wFMCommunicate OK [10:27:52]SAM_PROTO_ClearQueue done [10:27:52]KKMCreateOFDPacket [10:27:52]OFDProtocolAddRootSTLVToBuf [10:27:52]FM_MakeSignedData [10:27:52]FM_MakeSignedData [10:27:52]SAM_PROTO_SignData [10:27:52]wFMCommunicate request_size=4 [10:27:52]MH_SAM_APDU [10:27:52]CAPDU: 80 0D 01 02 [10:27:52]Write to MH i2c: E2 08 00 27 07 80 0D 01 02 00 00 00 00 A7 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [10:27:52]RAPDU: 90 00 [10:27:52]wFMCommunicate OK [10:27:52]wFMCommunicate request_size=255 [10:27:52]MH_SAM_APDU [10:27:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 27 0A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7A 1C 01 00 35 04 06 00 A8 [10:27:52]Write to MH i2c: E2 02 01 28 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 27 0A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7A 1C 01 00 35 04 06 00 A8 00 00 57 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [10:27:52]RAPDU: 90 00 [10:27:52]wFMCommunicate OK [10:27:52]wFMCommunicate request_size=10 [10:27:52]MH_SAM_APDU [10:27:52]CAPDU: 80 0D 02 02 05 9B F3 EF 06 09 [10:27:52]Write to MH i2c: E2 0D 00 29 07 80 0D 02 02 05 00 9B F3 EF 06 09 00 00 40 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [10:27:52]RAPDU: 90 00 [10:27:52]wFMCommunicate OK [10:27:52]wFMCommunicate request_size=4 [10:27:52]MH_SAM_APDU [10:27:52]CAPDU: 80 0D 03 02 [10:27:52]Write to MH i2c: E2 08 00 2A 07 80 0D 03 02 00 00 00 00 AC [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 0B 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 0B 00 2A 07 00 42 5B 42 AA B1 C6 17 9E 90 00 62 [10:27:52]RAPDU: 42 5B 42 AA B1 C6 17 9E 90 00 [10:27:52]wFMCommunicate OK [10:27:52]SAM_PROTO_SignData done [10:27:52]FM_MakeSignedData done [10:27:52]CreateOFDProtocolMessage [10:27:52]wFMCommunicate request_size=4 [10:27:52]MH_SAM_APDU [10:27:52]CAPDU: 80 11 00 00 [10:27:52]Write to MH i2c: E2 08 00 2B 07 80 11 00 00 00 00 00 00 AC [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 17 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 17 00 2B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 00 [10:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:27:52]wFMCommunicate OK [10:27:52]CreateOFDProtocolMessage done [10:27:52]OFDSenderStorePacket 72826 [10:27:52]StoreOFDPacket docnum=72826 [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 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [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 540000000057257A (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: 7659292+1722625140=1730284432 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [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 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [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 41 00 40 00 FF FF 5F [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 91 0B 22 67 74 2C AD 66 D7 [10:33:53]Current date/time: 30.10.2024 10:33 [10:33:53]FM_Init [10:33:53]wFMConnect [10:33:53]MH_SAM_On [10:33:53]Write to MH i2c: E0 00 00 08 00 E7 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]*** iso7816_init finished! [10:33:53]*** atr: [10:33:53]*** 0F 3B D5 18 FF 81 91 FE [10:33:53]*** 1F C3 80 73 C8 21 10 0A [10:33:53]*** 00 00 00 00 00 00 00 00 [10:33:53]*** 00 00 00 00 00 00 00 00 [10:33:53]*** 00 00 00 00 00 00 00 00 [10:33:53]*** 00 00 00 00 00 00 00 00 [10:33:53]*** 00 00 00 00 00 00 00 00 [10:33:53]*** 00 00 00 00 00 00 00 00 [10:33:53]Read from MH i2c: E0 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E0 10 00 [10:33:53]MH_I2C_Read... [10:33: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 [10:33:53]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:33:53]wFMCommunicate request_size=10 [10:33:53]MH_SAM_APDU [10:33:53]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:33:53]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:33:53]Read from MH i2c: E2 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 03 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:33:53]RAPDU: 90 00 [10:33:53]wFMCommunicate OK [10:33:53]wFMCommunicate request_size=4 [10:33:53]MH_SAM_APDU [10:33:53]CAPDU: 80 11 00 00 [10:33:53]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:53]Read from MH i2c: E2 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 17 00 [10:33:53]MH_I2C_Read... [10:33: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 38 37 34 36 36 32 90 00 D8 [10:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:33:53]wFMCommunicate OK [10:33:53]Detected FM SN is 0000000000874662 [10:33:53]Stored FM SN is 0000000000874662 [10:33:53]wFMCommunicate request_size=9 [10:33:53]MH_SAM_APDU [10:33:53]CAPDU: 80 16 00 00 04 08 EB 00 00 [10:33:53]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:33:53]Read from MH i2c: E2 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 03 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:33:53]RAPDU: 90 00 [10:33:53]wFMCommunicate OK [10:33:53]FM PIN OK [10:33:53]wFMCommunicate request_size=8 [10:33:53]MH_SAM_APDU [10:33:53]CAPDU: 80 14 04 00 03 02 00 01 [10:33:53]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:33:53]Read from MH i2c: E2 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 03 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:33:53]RAPDU: 90 00 [10:33:53]wFMCommunicate OK [10:33:53]wFMCommunicate request_size=13 [10:33:53]MH_SAM_APDU [10:33:53]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:33: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 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:33:53]Read from MH i2c: E2 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 03 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:33:53]RAPDU: 90 00 [10:33:53]wFMCommunicate OK [10:33:53]wFMCommunicate request_size=4 [10:33:53]MH_SAM_APDU [10:33:53]CAPDU: 80 11 00 00 [10:33:53]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:53]Read from MH i2c: E2 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: E2 17 00 [10:33:53]MH_I2C_Read... [10:33: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 38 37 34 36 36 32 90 00 DC [10:33:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:33:53]wFMCommunicate OK [10:33:53]DocumentArchiveInit [10:33:53]Start Httpd... [10:33:53]Httpd thread 3067358564 created [10:33:53]Write to MH i2c: 01 00 00 0F 00 0F [10:33:53]Write i2c OK [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 07 00 [10:33:53]MH_I2C_Read... [10:33:53]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:33:53]MH Int Process started [10:33:53]Allocated Socket 8 [10:33:53]Bind OK [10:33:53]Listen OK [10:33:53]httpd running on port 8080 [10:33:53]Waiting for new connection... [10:33:53]OFD Sender: Processing packet 72826 [packets to send 278, broken 277] [10:33:53]ProducePacketName [10:33:53]name=ofd_packets/00072826 [10:33:53]OFD Sender: To server: pG, [10:33:53]CommunicateWithHost lk.salyk.kg:30040 [10:33:53]ConnectInit lk.salyk.kg [10:33:54]Connected sock=6 [10:33:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 41 36 07 01 10 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 27 0A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7A 1C 01 00 35 04 06 00 A8 9B F3 EF 06 09 42 5B 42 AA B1 C6 17 9E [10:33:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F7 38 47 00 B6 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 38 37 34 36 36 32 10 04 04 00 7A 1C 01 00 F4 03 04 00 4C B6 21 67 B6 04 01 00 00 B3 03 E2 2E A9 36 CD FB [10:33:57]CommunicateWithHost err = 0 [10:33:57]CheckOFDResponse [10:33:57]1017 (14) - 77093643461234 [10:33:57]1041 (16) - 0000000000874662 [10:33:57]1040 (4) - 72826 [10:33:57]1012 (4) - 30.10.2024 04:30 [10:33:57]1206 (1) - 0 [10:33:57]OFD Sender: Remove packet 72826 [10:33:57]ProducePacketName [10:33:57]name=ofd_packets/00072826 [10:33:57]NVStorageDeleteData [10:33:58]OFD Sender: No OFD packet to send [10:34:00]accept exits with 9 [10:34:00]New connection [10:34:00]New thread 3067071844 created [10:34:00]Waiting for new connection... [10:34:00] Sock 9.Parse request [10:34:00]Sock 9.Check first char [10:34:00]Sock 9.First char is OK [10:34:00]request: POST /json_proto HTTP/1.0 [10:34:00]Method: POST [10:34:00]URL: /json_proto [10:34:00]Method is POST - this is cgi request [10:34:00]url: /json_proto [10:34:00]query_string will be loaded in cgi processing [10:34:00]execute_cgi json_proto POST (null) [10:34:00]execute_cgi path=json_proto method=POST [10:34:00]POST find Content-Length [10:34:00]Host: 172.17.43.195:8080 [10:34:00]Content-Length: 215 [10:34:00]Content-Type: application/json [10:34:00] [10:34:00]POST finish read [10:34:00]Found Content-Length = 215 [10:34:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:00]execute_script... [10:34:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:00]POST & json_proto [10:34:00]process_json_proto [10:34:00]json parsed OK: [10:34:00]protocol is kg_v1.0 [10:34:00]action value=get_value [10:34:00]process_action get_value [10:34:00]cmd_get_value [10:34:00]process_action get_value done [10:34:00]requested_data is exist [10:34:00]produce_requested_data [10:34:00]requested_item kkm.sn is exist - process it [10:34:00]requested_item kkm.ver is exist - process it [10:34:00]requested_item fm.sn is exist - process it [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 11 00 00 [10:34:00]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [10:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:34:00]wFMCommunicate OK [10:34:00]requested_item fd.num is exist - process it [10:34:00]SAM_PROTO_GetFieldsCounters [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 13 00 00 [10:34:00]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:00]Read from MH i2c: E2 [10:34:00]MH_I2C_Read... [10:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:00]Read from MH i2c: E2 62 00 [10:34:00]MH_I2C_Read... [10:34:00]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7A 1C 01 00 0E 04 04 00 2C 02 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 30 [10:34:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7A 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:00]wFMCommunicate OK [10:34:00]SAM_PROTO_GetFieldsCounters done [10:34:00]requested_item shift.num is exist - process it [10:34:00]requested_item shift.opened is exist - process it [10:34:00]req_shift_opened [10:34:00]FM_GetShiftState [10:34:00]SAM_PROTO_GetShiftState [10:34:00]wFMCommunicate request_size=4 [10:34:00]MH_SAM_APDU [10:34:00]CAPDU: 80 13 01 00 [10:34:00]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:34:00]Write i2c OK [10:34:00]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 0E 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 61 [10:34:01]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [10:34:01]wFMCommunicate OK [10:34:01]SAM_PROTO_GetShiftState done [10:34:01]FM_GetShiftState done [10:34:01]req_shift_opened done [10:34:01]requested_item shift.open_date is exist - process it [10:34:01]req_shift_open_date [10:34:01]req_shift_open_date done [10:34:01]produce_requested_data done [10:34:01]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72826,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [10:34:01]process_action_free get_value [10:34:01]json_value_free [10:34:01]json_value_free done [10:34:01]process_json_proto returns [10:34:01]Send response to host [10:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72826,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [10:34:01]free response buf [10:34:01]execute_script done [10:34:01]execute_script returns [10:34:01]free content buf [10:34:01]Sock 9.Close socket [10:34:01]Sock 9.Thread stoped [10:34:01]accept exits with 7 [10:34:01]New connection [10:34:01]New thread 3066928484 created [10:34:01]Thread 3067071844 joined [10:34:01]Waiting for new connection... [10:34:01] Sock 7.Parse request [10:34:01]Sock 7.Check first char [10:34:01]Sock 7.First char is OK [10:34:01]request: POST /json_proto HTTP/1.0 [10:34:01]Method: POST [10:34:01]URL: /json_proto [10:34:01]Method is POST - this is cgi request [10:34:01]url: /json_proto [10:34:01]query_string will be loaded in cgi processing [10:34:01]execute_cgi json_proto POST (null) [10:34:01]execute_cgi path=json_proto method=POST [10:34:01]POST find Content-Length [10:34:01]Host: 172.17.43.195:8080 [10:34:01]Content-Length: 331 [10:34:01]Content-Type: application/json [10:34:01] [10:34:01]POST finish read [10:34:01]Found Content-Length = 331 [10:34:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:34:01]execute_script... [10:34:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:34:01]POST & json_proto [10:34:01]process_json_proto [10:34:01]json parsed OK: [10:34:01]protocol is kg_v1.0 [10:34:01]action value=get_value [10:34:01]process_action get_value [10:34:01]cmd_get_value [10:34:01]process_action get_value done [10:34:01]requested_data is exist [10:34:01]produce_requested_data [10:34:01]requested_item fm.sale.total is exist - process it [10:34:01]SAM_PROTO_GetFMData [10:34:01]wFMCommunicate request_size=4 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 13 03 00 [10:34:01]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:34:01]Read from MH i2c: E2 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 FD 00 [10:34:01]MH_I2C_Read... [10:34:01]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 22 18 01 00 69 04 A3 00 6F 04 04 00 33 17 01 00 B1 04 05 00 3D B4 B6 A3 01 70 04 05 00 68 A8 77 58 01 72 04 04 00 D5 0B 3F 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B2 14 95 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 24 05 B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 72 04 00 00 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 D9 86 87 EF 03 09 00 90 00 16 [10:34:01]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 22 18 01 00 69 04 A3 00 6F 04 04 00 33 17 01 00 B1 04 05 00 3D B4 B6 A3 01 70 04 05 00 68 A8 77 58 01 72 04 04 00 D5 0B 3F 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B2 14 95 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 24 05 B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 72 04 00 00 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 D9 86 87 EF 03 09 00 90 00 [10:34:01]wFMCommunicate OK [10:34:01]wFMCommunicate request_size=4 [10:34:01]MH_SAM_APDU [10:34:01]CAPDU: 80 17 00 00 [10:34:01]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:34:01]Write i2c OK [10:34:01]MH_I2C_Read... [10:34:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:02]Read from MH i2c: E2 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 FD 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CA [10:34:02]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:34:02]wFMCommunicate OK [10:34:02]wFMCommunicate request_size=4 [10:34:02]MH_SAM_APDU [10:34:02]CAPDU: 80 17 00 00 [10:34:02]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:02]Read from MH i2c: E2 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 FD 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [10:34:02]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:34:02]wFMCommunicate OK [10:34:02]wFMCommunicate request_size=4 [10:34:02]MH_SAM_APDU [10:34:02]CAPDU: 80 17 00 00 [10:34:02]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:02]Read from MH i2c: E2 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 FD 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [10:34:02]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:34:02]wFMCommunicate OK [10:34:02]wFMCommunicate request_size=4 [10:34:02]MH_SAM_APDU [10:34:02]CAPDU: 80 17 00 00 [10:34:02]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [10:34:02]Read from MH i2c: E2 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 E1 00 [10:34:02]MH_I2C_Read... [10:34:02]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:34:02]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:34:02]wFMCommunicate OK [10:34:02]SAM_PROTO_GetFMData done [10:34:02]requested_item fm.sale_refund.total is exist - process it [10:34:02]requested_item fm.buy.total is exist - process it [10:34:02]requested_item shift.sale.total is exist - process it [10:34:02]SAM_PROTO_GetShiftData [10:34:02]wFMCommunicate request_size=4 [10:34:02]MH_SAM_APDU [10:34:02]CAPDU: 80 13 02 00 [10:34:02]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:34:02]Write i2c OK [10:34:02]MH_I2C_Read... [10:34:03]recv_with_timeout no data received [10:34:03]OFD Sender: No OFD packet to send [10:34:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:34:03]Read from MH i2c: E2 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: E2 FD 00 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 3F 00 00 00 69 04 9B 00 6F 04 04 00 3F 00 00 00 B1 04 03 00 AE 6C 3C 70 04 03 00 B8 CC 2F 72 04 03 00 F6 9F 0C 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 0A 6B 06 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 EB 88 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6D [10:34:03]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 3F 00 00 00 69 04 9B 00 6F 04 04 00 3F 00 00 00 B1 04 03 00 AE 6C 3C 70 04 03 00 B8 CC 2F 72 04 03 00 F6 9F 0C 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 0A 6B 06 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 EB 88 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:34:03]wFMCommunicate OK [10:34:03]wFMCommunicate request_size=4 [10:34:03]MH_SAM_APDU [10:34:03]CAPDU: 80 17 00 00 [10:34:03]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:34:03]Write i2c OK [10:34:03]MH_I2C_Read... [10:34:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:03]Read from MH i2c: E2 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: E2 FD 00 [10:34:03]MH_I2C_Read... [10:34:03]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 [10:34:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [10:34:03]wFMCommunicate OK [10:34:03]wFMCommunicate request_size=4 [10:34:03]MH_SAM_APDU [10:34:03]CAPDU: 80 17 00 00 [10:34:03]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:34:03]Write i2c OK [10:34:03]MH_I2C_Read... [10:34:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:03]Read from MH i2c: E2 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: E2 FD 00 [10:34:03]MH_I2C_Read... [10:34:03]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 [10:34:04]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:34:04]wFMCommunicate OK [10:34:04]wFMCommunicate request_size=4 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 17 00 00 [10:34:04]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 FD 00 [10:34:04]MH_I2C_Read... [10:34:04]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 [10:34:04]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:34:04]wFMCommunicate OK [10:34:04]wFMCommunicate request_size=4 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 17 00 00 [10:34:04]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 CB 00 [10:34:04]MH_I2C_Read... [10:34:04]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 [10:34:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:34:04]wFMCommunicate OK [10:34:04]SAM_PROTO_GetShiftData done [10:34:04]requested_item shift.sale.total_cash is exist - process it [10:34:04]requested_item shift.sale_refund.total is exist - process it [10:34:04]requested_item shift.sale_refund.total_cash is exist - process it [10:34:04]requested_item shift.buy.total is exist - process it [10:34:04]requested_item shift.buy.total_cash is exist - process it [10:34:04]produce_requested_data done [10:34:04]produce_requested_data return {"fm.sale.total":70416271.97,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":39599.82,"shift.sale.total_cash":31326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:34:04]process_action_free get_value [10:34:04]json_value_free [10:34:04]json_value_free done [10:34:04]process_json_proto returns [10:34:04]Send response to host [10:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70416271.97,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":39599.82,"shift.sale.total_cash":31326.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:34:04]free response buf [10:34:04]execute_script done [10:34:04]execute_script returns [10:34:04]free content buf [10:34:04]Sock 7.Close socket [10:34:04]Sock 7.Thread stoped [10:34:04]accept exits with 9 [10:34:04]New connection [10:34:04]New thread 3067071844 created [10:34:04]Thread 3066928484 joined [10:34:04]Waiting for new connection... [10:34:04] Sock 9.Parse request [10:34:04]Sock 9.Check first char [10:34:04]Sock 9.First char is OK [10:34:04]request: POST /json_proto HTTP/1.0 [10:34:04]Method: POST [10:34:04]URL: /json_proto [10:34:04]Method is POST - this is cgi request [10:34:04]url: /json_proto [10:34:04]query_string will be loaded in cgi processing [10:34:04]execute_cgi json_proto POST (null) [10:34:04]execute_cgi path=json_proto method=POST [10:34:04]POST find Content-Length [10:34:04]Host: 172.17.43.195:8080 [10:34:04]Content-Length: 792 [10:34:04]Content-Type: application/json [10:34:04] [10:34:04]POST finish read [10:34:04]Found Content-Length = 792 [10:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:04]execute_script... [10:34: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)952390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:04]POST & json_proto [10:34:04]process_json_proto [10:34:04]json parsed OK: [10:34:04]protocol is kg_v1.0 [10:34:04]action value=close_receipt [10:34:04]process_action close_receipt [10:34:04]cmd_close_receipt [10:34:04]MH_GetDate [10:34:04]Write to MH i2c: F0 00 00 1D 00 0C [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: F0 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: F0 09 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: F0 09 00 1D 00 00 9D 0B 22 67 74 2C AD 66 F9 [10:34:04]GetLastDocTimeStamp 1730284071 [10:34:04]current date 1730284445 [10:34:04]FM_GetShiftState [10:34:04]SAM_PROTO_GetShiftState [10:34:04]wFMCommunicate request_size=4 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 13 01 00 [10:34:04]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:05]Read from MH i2c: E2 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: E2 0E 00 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 6D [10:34:05]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [10:34:05]wFMCommunicate OK [10:34:05]SAM_PROTO_GetShiftState done [10:34:05]FM_GetShiftState done [10:34:05]opened in 1730247109 [10:34:05]opened+sec_in_day 1730333509 [10:34:05]quantity*price = 0 [10:34:05]sum+1 = 1 [10:34:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 64 30.10.2024 10:34 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72827 ФПД: 255544644936477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T103405&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72827&fm=255544644936477&tin=02508201610067®Number=0000000000091644&sum=0 [10:34:06]StoreToDocumentArchive [10:34:06]shift 556 fd 72827 [10:34:06]save to /storage/0556/doc_00072827 [10:34:06]save last doc name /storage/0556/doc_00072827 to /storage/kkm_last_doc_name [10:34:06]save OK [10:34:06]Clear old archive folders... [10:34:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:06]tlvbuf is 00884570 [10:34:06]SAM_PROTO_ClearQueue [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 09 00 00 [10:34:06]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]SAM_PROTO_ClearQueue done [10:34:06]KKMCreateOFDPacket [10:34:06]OFDProtocolAddRootSTLVToBuf [10:34:06]FM_MakeSignedData [10:34:06]FM_MakeSignedData [10:34:06]SAM_PROTO_SignData [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 0D 01 02 [10:34:06]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]wFMCommunicate request_size=255 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 9D 0B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1C 01 00 35 04 06 00 E8 [10:34:06]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 9D 0B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1C 01 00 35 04 06 00 E8 00 00 D7 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]wFMCommunicate request_size=10 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 0D 02 02 05 6A 9F C9 23 1D [10:34:06]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 6A 9F C9 23 1D 00 00 C4 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [10:34:06]RAPDU: 90 00 [10:34:06]wFMCommunicate OK [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 0D 03 02 [10:34:06]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 0B 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 0B 00 2F 00 00 1D DA A2 BE 28 B3 9D 0C 90 00 86 [10:34:06]RAPDU: 1D DA A2 BE 28 B3 9D 0C 90 00 [10:34:06]wFMCommunicate OK [10:34:06]SAM_PROTO_SignData done [10:34:06]FM_MakeSignedData done [10:34:06]CreateOFDProtocolMessage [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 11 00 00 [10:34:06]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 17 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [10:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:34:07]wFMCommunicate OK [10:34:07]CreateOFDProtocolMessage done [10:34:07]OFDSenderStorePacket 72827 [10:34:07]StoreOFDPacket docnum=72827 [10:34:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CC 0F 07 01 DF D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 9D 0B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1C 01 00 35 04 06 00 E8 6A 9F C9 23 1D 1D DA A2 BE 28 B3 9D 0C [10:34:07]CheckFolder [10:34:07]dirname=/storage/ofd_packets [10:34:07]CheckFolder done [10:34:07]ProducePacketName [10:34:07]name=ofd_packets/00072827 [10:34:07]NVStorageSaveData ofd_packets/00072827 [10:34:07]File name is /storage/ofd_packets/00072827 [10:34:07]Write 301 bytes [10:34:07]NVStorageSaveData done [10:34:07]OFDSenderStorePacket done [10:34:07]KKMCreateOFDPacket done [10:34:07]NVStorageSaveData kkm_last_timestamp [10:34:07]File name is /storage/kkm_last_timestamp [10:34:07]Write 4 bytes [10:34:07]NVStorageSaveData done [10:34:07]ExternCall_PrintAddStr [10:34:07]wPrintStart [10:34:07]Write to MH i2c: 01 00 00 31 00 31 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [10:34:07]RasterBufferAndPrint [10:34:07]line Счет N : (1)952390 [10:34:07]line ИНН: 02508201610067 [10:34:07]line Контрольно-Кассовый Чек [10:34:07]line ПРОДАЖА [10:34:07]line ТРК (МРК, ГНК) : 63 [10:34:07]line Товар: 2710124130 [10:34:07]line Аи-92-К-5 [10:34:07]line 25.000 * 0.00 [10:34:07]line = 0.00 [10:34:07]line НДС 12% НСП 1% [10:34:07]line > о реализуемом товаре [10:34:07]line ИТОГО: 0.00 [10:34:07]line НСП 1% : 0.00 [10:34:07]line НДС 12% : 0.00 [10:34:07]line Наличными: 0.00 [10:34:07]line Безнал.: 0.00 [10:34:07]line Место: АЗС № 113 "Партнер Нефть" [10:34:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:34:07]line СНО: Общий режим [10:34:07]line Чек 64 30.10.2024 10:34 [10:34:07]line Смена: 556 ФФД: 1.0 [10:34:07]line ЗНМ: 0300000087 [10:34:07]line РНМ: 0000000000091644 [10:34:07]line Версия ККМ: 001 [10:34:07]line Талоны: Топливная Карта [10:34:07]line 03047 [10:34:07]line ФМ: 0000000000874662 [10:34:07]line ФД: 72827 [10:34:07]line ФПД: 255544644936477 [10:34:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T103405&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72827&fm=255544644936477&tin=02508201610067®Number=0000000000091644&sum=0 [10:34:07]written 0, free lines is 4095 [10:34:07]OFD Sender: Processing packet 72827 [packets to send 278, broken 277] [10:34:07]ProducePacketName [10:34:07]name=ofd_packets/00072827 [10:34:07]OFD Sender: To server: pG, [10:34:07]CommunicateWithHost lk.salyk.kg:30040 [10:34:07]ConnectInit lk.salyk.kg [10:34:07]Write to MH i2c: 01 00 00 5B 00 5B [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E4 0C 52 [10:34:07]RasterBufferAndPrint [10:34:07]line [10:34:07]line [10:34:07]line [10:34:07]line [10:34:07]line [10:34:07]written 0, free lines is 3324 [10:34:07]MH_Cut [10:34:07]Write to MH i2c: D1 01 00 62 00 01 34 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: D1 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: D1 01 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: D1 01 00 62 00 00 33 [10:34:07]Write to MH i2c: 01 00 00 63 00 63 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:08]*** Cut start [10:34:08]*** Partial cut [10:34:08]*** CUTSNS_PIN = 1 [10:34:08]*** CUTSNS_PIN = 0 [10:34:08]Connected sock=10 [10:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CC 0F 07 01 DF D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 9D 0B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 *** Brake cut motor [10:34:08]30 30 38 37 34 36 36 32 10 04 04 00 7B 1C 01 00 35 04 06 00 E8 6A 9F C9 23 1D 1D DA A2 BE 28 B3 9D 0C [10:34:08]Read from MH i2c: 01 [10:34:08]MH_I2C_Read... [10:34:08]*** Stop cut motor [10:34:08]*** Cut end [10:34:08]Read from MH i2c: 01 07 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [10:34:08]process_action close_receipt done [10:34:08]requested_data is exist [10:34:08]produce_requested_data [10:34:08]requested_item fm.sn is exist - process it [10:34:08]wFMCommunicate request_size=4 [10:34:08]MH_SAM_APDU [10:34:08]CAPDU: 80 11 00 00 [10:34:08]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [10:34:08]Write i2c OK [10:34:08]MH_I2C_Read... [10:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:08]Read from MH i2c: E2 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 17 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [10:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:34:08]wFMCommunicate OK [10:34:08]requested_item fd.num is exist - process it [10:34:08]SAM_PROTO_GetFieldsCounters [10:34:08]wFMCommunicate request_size=4 [10:34:08]MH_SAM_APDU [10:34:08]CAPDU: 80 13 00 00 [10:34:08]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [10:34:09]Write i2c OK [10:34:09]MH_I2C_Read... [10:34:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:09]Read from MH i2c: E2 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 62 00 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7B 1C 01 00 0E 04 04 00 2C 02 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 88 [10:34:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7B 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:09]wFMCommunicate OK [10:34:09]SAM_PROTO_GetFieldsCounters done [10:34:09]requested_item shift.num is exist - process it [10:34:09]requested_item shift.opened is exist - process it [10:34:09]req_shift_opened [10:34:09]FM_GetShiftState [10:34:09]SAM_PROTO_GetShiftState [10:34:09]wFMCommunicate request_size=4 [10:34:09]MH_SAM_APDU [10:34:09]CAPDU: 80 13 01 00 [10:34:09]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [10:34:09]Write i2c OK [10:34:09]MH_I2C_Read... [10:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:09]Read from MH i2c: E2 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 0E 00 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B5 [10:34:09]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [10:34:09]wFMCommunicate OK [10:34:09]SAM_PROTO_GetShiftState done [10:34:09]FM_GetShiftState done [10:34:09]req_shift_opened done [10:34:09]requested_item shift.open_date is exist - process it [10:34:09]req_shift_open_date [10:34:09]req_shift_open_date done [10:34:09]produce_requested_data done [10:34:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72827,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [10:34:09]process_action_free close_receipt [10:34:09]json_value_free [10:34:09]json_value_free done [10:34:09]process_json_proto returns [10:34:09]Send response to host [10:34:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72827,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [10:34:09]free response buf [10:34:09]execute_script done [10:34:09]execute_script returns [10:34:09]free content buf [10:34:09]Sock 9.Close socket [10:34:09]Sock 9.Thread stoped [10:34:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0A 93 47 00 A9 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1C 01 00 F4 03 04 00 57 B6 21 67 B6 04 01 00 00 F8 FE 2C BD AB EA 0F C9 [10:34:11]CommunicateWithHost err = 0 [10:34:11]CheckOFDResponse [10:34:11]1017 (14) - 77093643461234 [10:34:11]1041 (16) - 0000000000874662 [10:34:11]1040 (4) - 72827 [10:34:11]1012 (4) - 30.10.2024 04:30 [10:34:11]1206 (1) - 0 [10:34:11]OFD Sender: Remove packet 72827 [10:34:11]ProducePacketName [10:34:11]name=ofd_packets/00072827 [10:34:11]NVStorageDeleteData [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:33]recv_with_timeout no data received [10:34:36]OFD Sender: No OFD packet to send [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:54]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:10]recv_with_timeout no data received [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]recv_with_timeout no data received [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: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:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]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:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:18]recv_with_timeout no data received [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:38]recv_with_timeout no data received [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:03]recv_with_timeout no data received [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:01]recv_with_timeout no data received [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:19]recv_with_timeout no data received [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:30]recv_with_timeout no data received [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:20]recv_with_timeout no data received [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:36]recv_with_timeout no data received [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:49]recv_with_timeout no data received [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:04]recv_with_timeout no data received [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:35]recv_with_timeout no data received [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:48]recv_with_timeout no data received [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:48]recv_with_timeout no data received [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:16]recv_with_timeout no data received [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:01]recv_with_timeout no data received [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:12]recv_with_timeout no data received [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:48]recv_with_timeout no data received [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:50]recv_with_timeout no data received [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:39]recv_with_timeout no data received [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:21]recv_with_timeout no data received [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:08]recv_with_timeout no data received [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:52]recv_with_timeout no data received [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:09]recv_with_timeout no data received [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:18]recv_with_timeout no data received [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:37]recv_with_timeout no data received [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]recv_with_timeout no data received [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:09]recv_with_timeout no data received [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:41]recv_with_timeout no data received [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:56]recv_with_timeout no data received [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:25]recv_with_timeout no data received [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [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:37]recv_with_timeout no data received [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:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:09:59]recv_with_timeout no data received [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:09]recv_with_timeout no data received [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:34]accept exits with 7 [11:10:34]New connection [11:10:34]New thread 3066928484 created [11:10:34]Thread 3067071844 joined [11:10:34]Waiting for new connection... [11:10:34] Sock 7.Parse request [11:10:34]Sock 7.Check first char [11:10:34]Sock 7.First char is OK [11:10:34]request: POST /json_proto HTTP/1.0 [11:10:34]Method: POST [11:10:34]URL: /json_proto [11:10:34]Method is POST - this is cgi request [11:10:34]url: /json_proto [11:10:34]query_string will be loaded in cgi processing [11:10:34]execute_cgi json_proto POST (null) [11:10:34]execute_cgi path=json_proto method=POST [11:10:34]POST find Content-Length [11:10:34]Host: 172.17.43.195:8080 [11:10:34]Content-Length: 663 [11:10:34]Content-Type: application/json [11:10:34] [11:10:34]POST finish read [11:10:34]Found Content-Length = 663 [11:10:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:34]execute_script... [11:10:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:34]POST & json_proto [11:10:34]process_json_proto [11:10:34]json parsed OK: [11:10:34]protocol is kg_v1.0 [11:10:34]action value=close_receipt [11:10:34]process_action close_receipt [11:10:34]cmd_close_receipt [11:10:34]MH_GetDate [11:10:34]Write to MH i2c: F0 00 00 67 00 56 [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: F0 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: F0 09 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: F0 09 00 67 00 00 2A 14 22 67 74 2C AD 66 D9 [11:10:34]GetLastDocTimeStamp 1730284445 [11:10:34]current date 1730286634 [11:10:34]FM_GetShiftState [11:10:34]SAM_PROTO_GetShiftState [11:10:34]wFMCommunicate request_size=4 [11:10:34]MH_SAM_APDU [11:10:34]CAPDU: 80 13 01 00 [11:10:34]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:34]Read from MH i2c: E2 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 0E 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B7 [11:10:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [11:10:34]wFMCommunicate OK [11:10:34]SAM_PROTO_GetShiftState done [11:10:34]FM_GetShiftState done [11:10:34]opened in 1730247109 [11:10:34]opened+sec_in_day 1730333509 [11:10:34]quantity*price = 200001 [11:10:34]sum+1 = 200003 [11:10:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 65 30.10.2024 11:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72828 ФПД: 176625648832647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111034&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72828&fm=176625648832647&tin=02508201610067®Number=0000000000091644&sum=200000 [11:10:35]StoreToDocumentArchive [11:10:35]shift 556 fd 72828 [11:10:35]save to /storage/0556/doc_00072828 [11:10:35]save last doc name /storage/0556/doc_00072828 to /storage/kkm_last_doc_name [11:10:35]save OK [11:10:35]Clear old archive folders... [11:10:35]ProcessDocumentItem done err = 0, tmpTLVsize=244 [11:10:35]tlvbuf is 0081B8C0 [11:10:35]SAM_PROTO_ClearQueue [11:10:35]wFMCommunicate request_size=4 [11:10:35]MH_SAM_APDU [11:10:35]CAPDU: 80 09 00 00 [11:10:35]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:35]Read from MH i2c: E2 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 03 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [11:10:35]RAPDU: 90 00 [11:10:35]wFMCommunicate OK [11:10:35]SAM_PROTO_ClearQueue done [11:10:35]KKMCreateOFDPacket [11:10:35]OFDProtocolAddRootSTLVToBuf [11:10:35]FM_MakeSignedData [11:10:35]FM_MakeSignedData [11:10:35]SAM_PROTO_SignData [11:10:35]wFMCommunicate request_size=4 [11:10:35]MH_SAM_APDU [11:10:35]CAPDU: 80 0D 01 02 [11:10:35]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:35]Read from MH i2c: E2 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 03 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:10:35]RAPDU: 90 00 [11:10:35]wFMCommunicate OK [11:10:35]wFMCommunicate request_size=253 [11:10:35]MH_SAM_APDU [11:10:35]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2A 14 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1C 01 00 35 04 06 00 A0 A3 DD 0E 90 87 [11:10:35]Write to MH i2c: E2 00 01 77 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2A 14 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1C 01 00 35 04 06 00 A0 A3 DD 0E 90 87 00 00 1D [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:35]Read from MH i2c: E2 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 03 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:10:35]RAPDU: 90 00 [11:10:35]wFMCommunicate OK [11:10:35]wFMCommunicate request_size=4 [11:10:35]MH_SAM_APDU [11:10:35]CAPDU: 80 0D 03 02 [11:10:35]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:35]Read from MH i2c: E2 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 0B 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 0B 00 78 00 00 CF 26 CC B7 05 31 EC 43 90 00 D1 [11:10:35]RAPDU: CF 26 CC B7 05 31 EC 43 90 00 [11:10:35]wFMCommunicate OK [11:10:35]SAM_PROTO_SignData done [11:10:35]FM_MakeSignedData done [11:10:35]CreateOFDProtocolMessage [11:10:35]wFMCommunicate request_size=4 [11:10:35]MH_SAM_APDU [11:10:35]CAPDU: 80 11 00 00 [11:10:35]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:35]Read from MH i2c: E2 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 17 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 47 [11:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:10:35]wFMCommunicate OK [11:10:35]CreateOFDProtocolMessage done [11:10:35]OFDSenderStorePacket 72828 [11:10:35]StoreOFDPacket docnum=72828 [11:10:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 58 17 00 01 4B 53 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2A 14 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1C 01 00 35 04 06 00 A0 A3 DD 0E 90 87 CF 26 CC B7 05 31 EC 43 [11:10:35]CheckFolder [11:10:35]dirname=/storage/ofd_packets [11:10:35]CheckFolder done [11:10:35]ProducePacketName [11:10:35]name=ofd_packets/00072828 [11:10:35]NVStorageSaveData ofd_packets/00072828 [11:10:35]File name is /storage/ofd_packets/00072828 [11:10:35]Write 294 bytes [11:10:35]NVStorageSaveData done [11:10:35]OFDSenderStorePacket done [11:10:35]KKMCreateOFDPacket done [11:10:35]NVStorageSaveData kkm_last_timestamp [11:10:35]File name is /storage/kkm_last_timestamp [11:10:35]Write 4 bytes [11:10:35]NVStorageSaveData done [11:10:36]ExternCall_PrintAddStr [11:10:36]wPrintStart [11:10:36]Write to MH i2c: 01 00 00 7A 00 7A [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 07 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [11:10:36]RasterBufferAndPrint [11:10:36]line Счет N : (1)952392 [11:10:36]line ИНН: 02508201610067 [11:10:36]line Контрольно-Кассовый Чек [11:10:36]line ПРОДАЖА [11:10:36]line ТРК (МРК, ГНК) : 51 [11:10:36]line Товар: 50.50.0 [11:10:36]line Super 92 [11:10:36]line 29.240 * 68.40 [11:10:36]line = 2000.02 [11:10:36]line НДС 12% НСП 1% [11:10:36]line > о реализуемом товаре [11:10:36]line ОКРУГЛЕНИЕ: -0.02 [11:10:36]line ИТОГО: 2000.00 [11:10:36]line Внесено: 2000.00 [11:10:36]line СДАЧА: 0.00 [11:10:36]line НСП 1% : 17.70 [11:10:36]line НДС 12% : 212.39 [11:10:36]line Наличными: 2000.00 [11:10:36]line Безнал.: 0.00 [11:10:36]line Место: АЗС № 113 "Партнер Нефть" [11:10:36]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:10:36]line СНО: Общий режим [11:10:36]line Чек 65 30.10.2024 11:10 [11:10:36]line Смена: 556 ФФД: 1.0 [11:10:36]line ЗНМ: 0300000087 [11:10:36]line РНМ: 0000000000091644 [11:10:36]line Версия ККМ: 001 [11:10:36]line ФМ: 0000000000874662 [11:10:36]line ФД: 72828 [11:10:36]line ФПД: 176625648832647 [11:10:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111034&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72828&fm=176625648832647&tin=02508201610067®Number=0000000000091644&sum=200000 [11:10:36]OFD Sender: Processing packet 72828 [packets to send 278, broken 277] [11:10:36]ProducePacketName [11:10:36]name=ofd_packets/00072828 [11:10:36]OFD Sender: To server: pG, [11:10:36]CommunicateWithHost lk.salyk.kg:30040 [11:10:36]ConnectInit lk.salyk.kg [11:10:36]written 0, free lines is 4095 [11:10:36]Write to MH i2c: 01 00 00 A5 00 A5 [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 07 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 DA 0C 92 [11:10:36]RasterBufferAndPrint [11:10:36]line [11:10:36]line [11:10:36]line [11:10:36]line [11:10:36]line [11:10:36]written 0, free lines is 3297 [11:10:36]MH_Cut [11:10:36]Write to MH i2c: D1 01 00 AC 00 01 7E [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: D1 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: D1 01 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: D1 01 00 AC 00 00 7D [11:10:36]Write to MH i2c: 01 00 00 AD 00 AD [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:37]*** Cut start [11:10:37]*** Partial cut [11:10:37]*** CUTSNS_PIN = 1 [11:10:37]*** CUTSNS_PIN = 0 [11:10:37]*** Brake cut motor [11:10:38]Read from MH i2c: 01 [11:10:38]MH_I2C_Read... [11:10:38]*** Stop cut motor [11:10:38]*** Cut end [11:10:38]Read from MH i2c: 01 07 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [11:10:38]process_action close_receipt done [11:10:38]requested_data is exist [11:10:38]produce_requested_data [11:10:38]requested_item fm.sn is exist - process it [11:10:38]wFMCommunicate request_size=4 [11:10:38]MH_SAM_APDU [11:10:38]CAPDU: 80 11 00 00 [11:10:38]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:38]Read from MH i2c: E2 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 17 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [11:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:10:38]wFMCommunicate OK [11:10:38]requested_item fd.num is exist - process it [11:10:38]SAM_PROTO_GetFieldsCounters [11:10:38]wFMCommunicate request_size=4 [11:10:38]MH_SAM_APDU [11:10:38]CAPDU: 80 13 00 00 [11:10:38]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:38]Read from MH i2c: E2 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 62 00 [11:10:38]MH_I2C_Read... [11:10:38]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7C 1C 01 00 0E 04 04 00 2C 02 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 D6 [11:10:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7C 1C 01 00 0E 04 04 00 2C 02 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 [11:10:38]wFMCommunicate OK [11:10:38]SAM_PROTO_GetFieldsCounters done [11:10:38]requested_item shift.num is exist - process it [11:10:38]requested_item shift.opened is exist - process it [11:10:38]req_shift_opened [11:10:38]FM_GetShiftState [11:10:38]SAM_PROTO_GetShiftState [11:10:38]wFMCommunicate request_size=4 [11:10:38]MH_SAM_APDU [11:10:38]CAPDU: 80 13 01 00 [11:10:38]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:38]Read from MH i2c: E2 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 0E 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 FF [11:10:38]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [11:10:38]wFMCommunicate OK [11:10:38]SAM_PROTO_GetShiftState done [11:10:38]FM_GetShiftState done [11:10:38]req_shift_opened done [11:10:38]requested_item shift.open_date is exist - process it [11:10:38]req_shift_open_date [11:10:38]req_shift_open_date done [11:10:38]produce_requested_data done [11:10:38]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72828,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [11:10:38]process_action_free close_receipt [11:10:38]json_value_free [11:10:38]json_value_free done [11:10:38]process_json_proto returns [11:10:38]Send response to host [11:10:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72828,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [11:10:38]free response buf [11:10:38]execute_script done [11:10:38]execute_script returns [11:10:38]free content buf [11:10:38]Sock 7.Close socket [11:10:38]Sock 7.Thread stoped [11:10:40]recv_with_timeout no data received [11:10:41]ConnectInit Can't take IP for lk.salyk.kg [11:10:41]CommunicateWithHost connect error [11:10:41]CommunicateWithHost err = -1 [11:10:41]OFD Sender: Server communicate error [11:10:46]OFD Sender: Processing packet 72828 [packets to send 278, broken 277] [11:10:46]ProducePacketName [11:10:46]name=ofd_packets/00072828 [11:10:46]OFD Sender: To server: pG, [11:10:46]CommunicateWithHost lk.salyk.kg:30040 [11:10:46]ConnectInit lk.salyk.kg [11:10:51]recv_with_timeout no data received [11:10:51]ConnectInit Can't take IP for lk.salyk.kg [11:10:51]CommunicateWithHost connect error [11:10:51]CommunicateWithHost err = -1 [11:10:51]OFD Sender: Server communicate error [11:10:56]OFD Sender: Processing packet 72828 [packets to send 278, broken 277] [11:10:56]ProducePacketName [11:10:56]name=ofd_packets/00072828 [11:10:56]OFD Sender: To server: pG, [11:10:56]CommunicateWithHost lk.salyk.kg:30040 [11:10:56]ConnectInit lk.salyk.kg [11:11:01]ConnectInit Can't take IP for lk.salyk.kg [11:11:01]CommunicateWithHost connect error [11:11:01]CommunicateWithHost err = -1 [11:11:01]OFD Sender: Server communicate error [11:11:06]OFD Sender: Processing packet 72828 [packets to send 278, broken 277] [11:11:06]ProducePacketName [11:11:06]name=ofd_packets/00072828 [11:11:06]OFD Sender: To server: pG, [11:11:06]CommunicateWithHost lk.salyk.kg:30040 [11:11:06]ConnectInit lk.salyk.kg [11:11:07]recv_with_timeout no data received [11:11:11]Connected sock=10 [11:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 58 17 00 01 4B 53 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2A 14 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1C 01 00 35 04 06 00 A0 A3 DD 0E 90 87 CF 26 CC B7 05 31 EC 43 [11:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 02 6B 47 00 1C 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1C 01 00 F4 03 04 00 06 BF 21 67 B6 04 01 00 00 80 C5 2C C3 D7 97 FE E1 [11:11:11]CommunicateWithHost err = 0 [11:11:11]CheckOFDResponse [11:11:11]1017 (14) - 77093643461234 [11:11:11]1041 (16) - 0000000000874662 [11:11:11]1040 (4) - 72828 [11:11:11]1012 (4) - 30.10.2024 05:07 [11:11:11]1206 (1) - 0 [11:11:11]OFD Sender: Remove packet 72828 [11:11:11]ProducePacketName [11:11:11]name=ofd_packets/00072828 [11:11:11]NVStorageDeleteData [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:11]recv_with_timeout no data received [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:29]recv_with_timeout no data received [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:08]recv_with_timeout no data received [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:54]recv_with_timeout no data received [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:26]recv_with_timeout no data received [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:54]accept exits with 9 [11:16:54]New connection [11:16:54]New thread 3067071844 created [11:16:54]Thread 3066928484 joined [11:16:54]Waiting for new connection... [11:16:54] Sock 9.Parse request [11:16:54]Sock 9.Check first char [11:16:54]Sock 9.First char is OK [11:16:54]request: POST /json_proto HTTP/1.0 [11:16:54]Method: POST [11:16:54]URL: /json_proto [11:16:54]Method is POST - this is cgi request [11:16:54]url: /json_proto [11:16:54]query_string will be loaded in cgi processing [11:16:54]execute_cgi json_proto POST (null) [11:16:54]execute_cgi path=json_proto method=POST [11:16:54]POST find Content-Length [11:16:54]Host: 172.17.43.195:8080 [11:16:54]Content-Length: 682 [11:16:54]Content-Type: application/json [11:16:54] [11:16:54]POST finish read [11:16:54]Found Content-Length = 682 [11:16:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:54]execute_script... [11:16:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:54]POST & json_proto [11:16:54]process_json_proto [11:16:54]json parsed OK: [11:16:54]protocol is kg_v1.0 [11:16:54]action value=close_receipt [11:16:54]process_action close_receipt [11:16:54]cmd_close_receipt [11:16:54]MH_GetDate [11:16:54]Write to MH i2c: F0 00 00 B1 00 A0 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: F0 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: F0 09 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: F0 09 00 B1 00 00 A6 15 22 67 74 2C AD 66 A0 [11:16:54]GetLastDocTimeStamp 1730286634 [11:16:54]current date 1730287014 [11:16:54]FM_GetShiftState [11:16:54]SAM_PROTO_GetShiftState [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 13 01 00 [11:16:54]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 0E 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 01 [11:16:54]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [11:16:54]wFMCommunicate OK [11:16:54]SAM_PROTO_GetShiftState done [11:16:54]FM_GetShiftState done [11:16:54]opened in 1730247109 [11:16:54]opened+sec_in_day 1730333509 [11:16:54]quantity*price = 50063 [11:16:54]sum+1 = 50064 [11:16:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 66 30.10.2024 11:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72829 ФПД: 112025724388118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111654&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72829&fm=112025724388118&tin=02508201610067®Number=0000000000091644&sum=50000 [11:16:55]StoreToDocumentArchive [11:16:55]shift 556 fd 72829 [11:16:55]save to /storage/0556/doc_00072829 [11:16:55]save last doc name /storage/0556/doc_00072829 to /storage/kkm_last_doc_name [11:16:55]save OK [11:16:55]Clear old archive folders... [11:16:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:16:55]tlvbuf is 00895C60 [11:16:55]SAM_PROTO_ClearQueue [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 09 00 00 [11:16:55]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [11:16:55]RAPDU: 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_ClearQueue done [11:16:55]KKMCreateOFDPacket [11:16:55]OFDProtocolAddRootSTLVToBuf [11:16:55]FM_MakeSignedData [11:16:55]FM_MakeSignedData [11:16:55]SAM_PROTO_SignData [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 0D 01 02 [11:16:55]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [11:16:55]RAPDU: 90 00 [11:16:55]wFMCommunicate OK [11:16:55]wFMCommunicate request_size=255 [11:16:55]MH_SAM_APDU [11:16:55]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 42 00 00 00 F4 03 04 00 A6 15 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1C 01 00 35 04 06 00 [11:16:55]Write to MH i2c: E2 02 01 C1 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 42 00 00 00 F4 03 04 00 A6 15 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1C 01 00 35 04 06 00 00 00 7C [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [11:16:55]RAPDU: 90 00 [11:16:55]wFMCommunicate OK [11:16:55]wFMCommunicate request_size=11 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 0D 02 02 06 65 E3 05 82 03 16 [11:16:55]Write to MH i2c: E2 0E 00 C2 00 80 0D 02 02 06 00 65 E3 05 82 03 16 00 00 30 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [11:16:55]RAPDU: 90 00 [11:16:55]wFMCommunicate OK [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 0D 03 02 [11:16:55]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0B 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0B 00 C3 00 00 9B 98 E6 53 94 F3 93 41 90 00 06 [11:16:55]RAPDU: 9B 98 E6 53 94 F3 93 41 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_SignData done [11:16:55]FM_MakeSignedData done [11:16:55]CreateOFDProtocolMessage [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 11 00 00 [11:16:55]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 17 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [11:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:16:55]wFMCommunicate OK [11:16:55]CreateOFDProtocolMessage done [11:16:55]OFDSenderStorePacket 72829 [11:16:55]StoreOFDPacket docnum=72829 [11:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 D9 A0 08 01 5E 05 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 42 00 00 00 F4 03 04 00 A6 15 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1C 01 00 35 04 06 00 65 E3 05 82 03 16 9B 98 E6 53 94 F3 93 41 [11:16:55]CheckFolder [11:16:55]dirname=/storage/ofd_packets [11:16:55]CheckFolder done [11:16:55]ProducePacketName [11:16:55]name=ofd_packets/00072829 [11:16:55]NVStorageSaveData ofd_packets/00072829 [11:16:55]File name is /storage/ofd_packets/00072829 [11:16:55]Write 302 bytes [11:16:55]NVStorageSaveData done [11:16:55]OFDSenderStorePacket done [11:16:55]KKMCreateOFDPacket done [11:16:55]NVStorageSaveData kkm_last_timestamp [11:16:55]File name is /storage/kkm_last_timestamp [11:16:55]Write 4 bytes [11:16:55]NVStorageSaveData done [11:16:55]ExternCall_PrintAddStr [11:16:55]wPrintStart [11:16:55]Write to MH i2c: 01 00 00 C5 00 C5 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 07 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [11:16:55]RasterBufferAndPrint [11:16:55]line Счет N : (1)952393 [11:16:55]line ИНН: 02508201610067 [11:16:55]line Контрольно-Кассовый Чек [11:16:55]line ПРОДАЖА [11:16:55]line ТРК (МРК, ГНК) : 22 [11:16:55]line Товар: 2710194210 [11:16:55]line ДТ(л)-К-5 [11:16:55]line 6.570 * 76.20 [11:16:55]line = 500.63 [11:16:55]line НДС 12% НСП 1% [11:16:55]line > о реализуемом товаре [11:16:55]line ОКРУГЛЕНИЕ: -0.63 [11:16:55]line ИТОГО: 500.00 [11:16:55]line Внесено: 500.00 [11:16:55]line СДАЧА: 0.00 [11:16:55]line НСП 1% : 4.43 [11:16:55]line НДС 12% : 53.16 [11:16:55]line Наличными: 500.00 [11:16:55]line Безнал.: 0.00 [11:16:55]line Место: АЗС № 113 "Партнер Нефть" [11:16:55]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:16:55]line СНО: Общий режим [11:16:55]line Чек 66 30.10.2024 11:16 [11:16:55]line Смена: 556 ФФД: 1.0 [11:16:55]line ЗНМ: 0300000087 [11:16:55]line РНМ: 0000000000091644 [11:16:55]line Версия ККМ: 001 [11:16:55]line ФМ: 0000000000874662 [11:16:55]line ФД: 72829 [11:16:55]line ФПД: 112025724388118 [11:16:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111654&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72829&fm=112025724388118&tin=02508201610067®Number=0000000000091644&sum=50000 [11:16:56]OFD Sender: Processing packet 72829 [packets to send 278, broken 277] [11:16:56]ProducePacketName [11:16:56]name=ofd_packets/00072829 [11:16:56]OFD Sender: To server: pG, [11:16:56]CommunicateWithHost lk.salyk.kg:30040 [11:16:56]ConnectInit lk.salyk.kg [11:16:56]written 0, free lines is 4095 [11:16:56]Write to MH i2c: 01 00 00 F0 00 F0 [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: 01 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: 01 07 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 C8 0C CB [11:16:56]RasterBufferAndPrint [11:16:56]line [11:16:56]line [11:16:56]line [11:16:56]line [11:16:56]line [11:16:56]written 0, free lines is 3278 [11:16:56]MH_Cut [11:16:56]Write to MH i2c: D1 01 00 F7 00 01 C9 [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: D1 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: D1 01 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: D1 01 00 F7 00 00 C8 [11:16:56]Write to MH i2c: 01 00 00 F8 00 F8 [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:57]*** Cut start [11:16:57]*** Partial cut [11:16:57]*** CUTSNS_PIN = 1 [11:16:57]*** CUTSNS_PIN = 0 [11:16:57]*** Brake cut motor [11:16:57]Read from MH i2c: 01 [11:16:57]MH_I2C_Read... [11:16:57]*** Stop cut motor [11:16:57]*** Cut end [11:16:57]Read from MH i2c: 01 07 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [11:16:57]process_action close_receipt done [11:16:57]requested_data is exist [11:16:57]produce_requested_data [11:16:57]requested_item fm.sn is exist - process it [11:16:57]wFMCommunicate request_size=4 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 11 00 00 [11:16:57]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:57]Read from MH i2c: E2 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 17 00 [11:16:57]MH_I2C_Read... [11:16:57]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [11:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:16:57]wFMCommunicate OK [11:16:57]requested_item fd.num is exist - process it [11:16:57]SAM_PROTO_GetFieldsCounters [11:16:57]wFMCommunicate request_size=4 [11:16:57]MH_SAM_APDU [11:16:57]CAPDU: 80 13 00 00 [11:16:57]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [11:16:57]Write i2c OK [11:16:57]MH_I2C_Read... [11:16:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:58]Read from MH i2c: E2 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 62 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7D 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [11:16:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7D 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:58]wFMCommunicate OK [11:16:58]SAM_PROTO_GetFieldsCounters done [11:16:58]requested_item shift.num is exist - process it [11:16:58]requested_item shift.opened is exist - process it [11:16:58]req_shift_opened [11:16:58]FM_GetShiftState [11:16:58]SAM_PROTO_GetShiftState [11:16:58]wFMCommunicate request_size=4 [11:16:58]MH_SAM_APDU [11:16:58]CAPDU: 80 13 01 00 [11:16:58]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:58]Read from MH i2c: E2 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 0E 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4A [11:16:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [11:16:58]wFMCommunicate OK [11:16:58]SAM_PROTO_GetShiftState done [11:16:58]FM_GetShiftState done [11:16:58]req_shift_opened done [11:16:58]requested_item shift.open_date is exist - process it [11:16:58]req_shift_open_date [11:16:58]req_shift_open_date done [11:16:58]produce_requested_data done [11:16:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72829,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [11:16:58]process_action_free close_receipt [11:16:58]json_value_free [11:16:58]json_value_free done [11:16:58]process_json_proto returns [11:16:58]Send response to host [11:16:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72829,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [11:16:58]free response buf [11:16:58]execute_script done [11:16:58]execute_script returns [11:16:58]free content buf [11:16:58]Sock 9.Close socket [11:16:58]Sock 9.Thread stoped [11:16:59]Connected sock=11 [11:16:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 D9 A0 08 01 5E 05 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 42 00 00 00 F4 03 04 00 A6 15 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1C 01 00 35 04 06 00 65 E3 05 82 03 16 9B 98 E6 53 94 F3 93 41 [11:16:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F1 98 47 00 D0 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1C 01 00 F4 03 04 00 62 C0 21 67 B6 04 01 00 00 A9 7C D5 66 D6 1B 4E 8B [11:16:59]CommunicateWithHost err = 0 [11:16:59]CheckOFDResponse [11:16:59]1017 (14) - 77093643461234 [11:16:59]1041 (16) - 0000000000874662 [11:16:59]1040 (4) - 72829 [11:16:59]1012 (4) - 30.10.2024 05:13 [11:16:59]1206 (1) - 0 [11:16:59]OFD Sender: Remove packet 72829 [11:16:59]ProducePacketName [11:16:59]name=ofd_packets/00072829 [11:16:59]NVStorageDeleteData [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:19]recv_with_timeout no data received [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]recv_with_timeout no data received [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:06]accept exits with 7 [11:18:06]New connection [11:18:06]New thread 3066928484 created [11:18:06]Thread 3067071844 joined [11:18:06]Waiting for new connection... [11:18:06] Sock 7.Parse request [11:18:06]Sock 7.Check first char [11:18:06]Sock 7.First char is OK [11:18:06]request: POST /json_proto HTTP/1.0 [11:18:06]Method: POST [11:18:06]URL: /json_proto [11:18:06]Method is POST - this is cgi request [11:18:06]url: /json_proto [11:18:06]query_string will be loaded in cgi processing [11:18:06]execute_cgi json_proto POST (null) [11:18:06]execute_cgi path=json_proto method=POST [11:18:06]POST find Content-Length [11:18:06]Host: 172.17.43.195:8080 [11:18:06]Content-Length: 792 [11:18:06]Content-Type: application/json [11:18:06] [11:18:06]POST finish read [11:18:06]Found Content-Length = 792 [11:18:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:06]execute_script... [11:18:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:06]POST & json_proto [11:18:06]process_json_proto [11:18:06]json parsed OK: [11:18:06]protocol is kg_v1.0 [11:18:06]action value=close_receipt [11:18:06]process_action close_receipt [11:18:06]cmd_close_receipt [11:18:06]MH_GetDate [11:18:06]Write to MH i2c: F0 00 00 FC 00 EB [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: F0 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: F0 09 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: F0 09 00 FC 00 00 EE 15 22 67 74 2C AD 66 33 [11:18:06]GetLastDocTimeStamp 1730287014 [11:18:06]current date 1730287086 [11:18:06]FM_GetShiftState [11:18:06]SAM_PROTO_GetShiftState [11:18:06]wFMCommunicate request_size=4 [11:18:06]MH_SAM_APDU [11:18:06]CAPDU: 80 13 01 00 [11:18:06]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:06]Read from MH i2c: E2 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 0E 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4C [11:18:06]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [11:18:06]wFMCommunicate OK [11:18:06]SAM_PROTO_GetShiftState done [11:18:06]FM_GetShiftState done [11:18:06]opened in 1730247109 [11:18:06]opened+sec_in_day 1730333509 [11:18:06]quantity*price = 0 [11:18:06]sum+1 = 1 [11:18:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 67 30.10.2024 11:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72830 ФПД: 112308812247929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111806&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72830&fm=112308812247929&tin=02508201610067®Number=0000000000091644&sum=0 [11:18:07]StoreToDocumentArchive [11:18:07]shift 556 fd 72830 [11:18:07]save to /storage/0556/doc_00072830 [11:18:07]save last doc name /storage/0556/doc_00072830 to /storage/kkm_last_doc_name [11:18:07]save OK [11:18:07]Clear old archive folders... [11:18:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:07]tlvbuf is B6F75350 [11:18:07]SAM_PROTO_ClearQueue [11:18:07]wFMCommunicate request_size=4 [11:18:07]MH_SAM_APDU [11:18:07]CAPDU: 80 09 00 00 [11:18:07]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:07]Read from MH i2c: E2 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 03 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [11:18:07]RAPDU: 90 00 [11:18:07]wFMCommunicate OK [11:18:07]SAM_PROTO_ClearQueue done [11:18:07]KKMCreateOFDPacket [11:18:07]OFDProtocolAddRootSTLVToBuf [11:18:07]FM_MakeSignedData [11:18:07]FM_MakeSignedData [11:18:07]SAM_PROTO_SignData [11:18:07]wFMCommunicate request_size=4 [11:18:07]MH_SAM_APDU [11:18:07]CAPDU: 80 0D 01 02 [11:18:07]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:07]Read from MH i2c: E2 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 03 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [11:18:07]RAPDU: 90 00 [11:18:07]wFMCommunicate OK [11:18:07]wFMCommunicate request_size=255 [11:18:07]MH_SAM_APDU [11:18:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EE 15 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1C 01 00 35 04 06 00 66 [11:18:07]Write to MH i2c: E2 02 01 0C 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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EE 15 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1C 01 00 35 04 06 00 66 00 00 CD [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:07]Read from MH i2c: E2 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 03 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [11:18:07]RAPDU: 90 00 [11:18:07]wFMCommunicate OK [11:18:07]wFMCommunicate request_size=10 [11:18:07]MH_SAM_APDU [11:18:07]CAPDU: 80 0D 02 02 05 24 EE DB F3 79 [11:18:07]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 24 EE DB F3 79 00 00 EB [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:07]Read from MH i2c: E2 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 03 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [11:18:07]RAPDU: 90 00 [11:18:07]wFMCommunicate OK [11:18:07]wFMCommunicate request_size=4 [11:18:07]MH_SAM_APDU [11:18:07]CAPDU: 80 0D 03 02 [11:18:07]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:07]Read from MH i2c: E2 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 0B 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 0B 00 0E 01 00 28 47 05 27 DC 3A AA D5 90 00 BB [11:18:07]RAPDU: 28 47 05 27 DC 3A AA D5 90 00 [11:18:07]wFMCommunicate OK [11:18:07]SAM_PROTO_SignData done [11:18:07]FM_MakeSignedData done [11:18:07]CreateOFDProtocolMessage [11:18:07]wFMCommunicate request_size=4 [11:18:07]MH_SAM_APDU [11:18:07]CAPDU: 80 11 00 00 [11:18:07]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:07]Read from MH i2c: E2 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 17 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [11:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:18:07]wFMCommunicate OK [11:18:07]CreateOFDProtocolMessage done [11:18:07]OFDSenderStorePacket 72830 [11:18:07]StoreOFDPacket docnum=72830 [11:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA 22 07 01 58 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EE 15 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1C 01 00 35 04 06 00 66 24 EE DB F3 79 28 47 05 27 DC 3A AA D5 [11:18:07]CheckFolder [11:18:07]dirname=/storage/ofd_packets [11:18:07]CheckFolder done [11:18:07]ProducePacketName [11:18:07]name=ofd_packets/00072830 [11:18:07]NVStorageSaveData ofd_packets/00072830 [11:18:07]File name is /storage/ofd_packets/00072830 [11:18:07]Write 301 bytes [11:18:07]NVStorageSaveData done [11:18:07]OFDSenderStorePacket done [11:18:07]KKMCreateOFDPacket done [11:18:07]NVStorageSaveData kkm_last_timestamp [11:18:07]File name is /storage/kkm_last_timestamp [11:18:07]Write 4 bytes [11:18:07]NVStorageSaveData done [11:18:07]ExternCall_PrintAddStr [11:18:07]wPrintStart [11:18:07]Write to MH i2c: 01 00 00 10 01 11 [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: 01 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: 01 07 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [11:18:07]RasterBufferAndPrint [11:18:07]line Счет N : (1)952395 [11:18:07]line ИНН: 02508201610067 [11:18:07]line Контрольно-Кассовый Чек [11:18:07]line ПРОДАЖА [11:18:07]line ТРК (МРК, ГНК) : 63 [11:18:07]line Товар: 2710124130 [11:18:07]line Аи-92-К-5 [11:18:07]line 29.900 * 0.00 [11:18:07]line = 0.00 [11:18:07]line НДС 12% НСП 1% [11:18:07]line > о реализуемом товаре [11:18:07]line ИТОГО: 0.00 [11:18:07]line НСП 1% : 0.00 [11:18:07]line НДС 12% : 0.00 [11:18:07]line Наличными: 0.00 [11:18:07]line Безнал.: 0.00 [11:18:07]line Место: АЗС № 113 "Партнер Нефть" [11:18:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:18:07]line СНО: Общий режим [11:18:07]line Чек 67 30.10.2024 11:18 [11:18:07]line Смена: 556 ФФД: 1.0 [11:18:07]line ЗНМ: 0300000087 [11:18:07]line РНМ: 0000000000091644 [11:18:07]line Версия ККМ: 001 [11:18:07]line Талоны: Топливная Карта [11:18:07]line 03047 [11:18:07]line ФМ: 0000000000874662 [11:18:07]line ФД: 72830 [11:18:07]line ФПД: 112308812247929 [11:18:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111806&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72830&fm=112308812247929&tin=02508201610067®Number=0000000000091644&sum=0 [11:18:08]OFD Sender: Processing packet 72830 [packets to send 278, broken 277] [11:18:08]ProducePacketName [11:18:08]name=ofd_packets/00072830 [11:18:08]OFD Sender: To server: pG, [11:18:08]CommunicateWithHost lk.salyk.kg:30040 [11:18:08]ConnectInit lk.salyk.kg [11:18:08]written 0, free lines is 4095 [11:18:08]Write to MH i2c: 01 00 00 3A 01 3B [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: 01 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: 01 07 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 E4 0C 32 [11:18:08]RasterBufferAndPrint [11:18:08]line [11:18:08]line [11:18:08]line [11:18:08]line [11:18:08]line [11:18:08]written 0, free lines is 3306 [11:18:08]MH_Cut [11:18:08]Write to MH i2c: D1 01 00 41 01 01 14 [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: D1 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: D1 01 00 [11:18:08]MH_I2C_Read... [11:18:08]Read from MH i2c: D1 01 00 41 01 00 13 [11:18:08]Write to MH i2c: 01 00 00 42 01 43 [11:18:08]Write i2c OK [11:18:08]MH_I2C_Read... [11:18:09]*** Cut start [11:18:09]*** Partial cut [11:18:09]*** CUTSNS_PIN = 1 [11:18:09]*** CUTSNS_PIN = 0 [11:18:09]*** Brake cut motor [11:18:09]Read from MH i2c: 01 [11:18:09]MH_I2C_Read... [11:18:09]*** Stop cut motor [11:18:09]*** Cut end [11:18:09]Read from MH i2c: 01 07 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [11:18:09]process_action close_receipt done [11:18:09]requested_data is exist [11:18:09]produce_requested_data [11:18:09]requested_item fm.sn is exist - process it [11:18:09]wFMCommunicate request_size=4 [11:18:09]MH_SAM_APDU [11:18:09]CAPDU: 80 11 00 00 [11:18:09]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [11:18:09]Write i2c OK [11:18:09]MH_I2C_Read... [11:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:09]Read from MH i2c: E2 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 17 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [11:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:18:09]wFMCommunicate OK [11:18:09]requested_item fd.num is exist - process it [11:18:09]SAM_PROTO_GetFieldsCounters [11:18:09]wFMCommunicate request_size=4 [11:18:09]MH_SAM_APDU [11:18:09]CAPDU: 80 13 00 00 [11:18:09]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [11:18:09]Write i2c OK [11:18:09]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 62 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7E 1C 01 00 0E 04 04 00 2C 02 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 74 [11:18:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7E 1C 01 00 0E 04 04 00 2C 02 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 [11:18:10]wFMCommunicate OK [11:18:10]SAM_PROTO_GetFieldsCounters done [11:18:10]requested_item shift.num is exist - process it [11:18:10]requested_item shift.opened is exist - process it [11:18:10]req_shift_opened [11:18:10]FM_GetShiftState [11:18:10]SAM_PROTO_GetShiftState [11:18:10]wFMCommunicate request_size=4 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 13 01 00 [11:18:10]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 0E 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 95 [11:18:10]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [11:18:10]wFMCommunicate OK [11:18:10]SAM_PROTO_GetShiftState done [11:18:10]FM_GetShiftState done [11:18:10]req_shift_opened done [11:18:10]requested_item shift.open_date is exist - process it [11:18:10]req_shift_open_date [11:18:10]req_shift_open_date done [11:18:10]produce_requested_data done [11:18:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72830,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [11:18:10]process_action_free close_receipt [11:18:10]json_value_free [11:18:10]json_value_free done [11:18:10]process_json_proto returns [11:18:10]Send response to host [11:18:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72830,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [11:18:10]free response buf [11:18:10]execute_script done [11:18:10]execute_script returns [11:18:10]free content buf [11:18:10]Sock 7.Close socket [11:18:10]Sock 7.Thread stoped [11:18:13]recv_with_timeout no data received [11:18:14]Connected sock=11 [11:18:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA 22 07 01 58 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EE 15 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1C 01 00 35 04 06 00 66 24 EE DB F3 79 28 47 05 27 DC 3A AA D5 [11:18:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D6 A8 47 00 1D 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1C 01 00 F4 03 04 00 AD C0 21 67 B6 04 01 00 00 D7 E6 73 A0 CF 97 B2 64 [11:18:14]CommunicateWithHost err = 0 [11:18:14]CheckOFDResponse [11:18:14]1017 (14) - 77093643461234 [11:18:14]1041 (16) - 0000000000874662 [11:18:14]1040 (4) - 72830 [11:18:14]1012 (4) - 30.10.2024 05:14 [11:18:14]1206 (1) - 0 [11:18:14]OFD Sender: Remove packet 72830 [11:18:14]ProducePacketName [11:18:14]name=ofd_packets/00072830 [11:18:14]NVStorageDeleteData [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:23]accept exits with 9 [11:18:23]New connection [11:18:23]New thread 3067071844 created [11:18:23]Thread 3066928484 joined [11:18:23]Waiting for new connection... [11:18:23] Sock 9.Parse request [11:18:23]Sock 9.Check first char [11:18:23]Sock 9.First char is OK [11:18:23]request: POST /json_proto HTTP/1.0 [11:18:23]Method: POST [11:18:23]URL: /json_proto [11:18:23]Method is POST - this is cgi request [11:18:23]url: /json_proto [11:18:23]query_string will be loaded in cgi processing [11:18:23]execute_cgi json_proto POST (null) [11:18:23]execute_cgi path=json_proto method=POST [11:18:23]POST find Content-Length [11:18:23]Host: 172.17.43.195:8080 [11:18:23]Content-Length: 682 [11:18:23]Content-Type: application/json [11:18:23] [11:18:23]POST finish read [11:18:23]Found Content-Length = 682 [11:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 48.360, "sum" : 3588.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3588.00, "payments": [ { "type": 0, "sum" : 3588.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:23]execute_script... [11:18:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 48.360, "sum" : 3588.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3588.00, "payments": [ { "type": 0, "sum" : 3588.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:23]POST & json_proto [11:18:23]process_json_proto [11:18:23]json parsed OK: [11:18:23]protocol is kg_v1.0 [11:18:23]action value=close_receipt [11:18:23]process_action close_receipt [11:18:23]cmd_close_receipt [11:18:23]MH_GetDate [11:18:23]Write to MH i2c: F0 00 00 46 01 36 [11:18:23]Write i2c OK [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: F0 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: F0 09 00 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: F0 09 00 46 01 00 00 16 22 67 74 2C AD 66 91 [11:18:23]GetLastDocTimeStamp 1730287086 [11:18:23]current date 1730287104 [11:18:23]FM_GetShiftState [11:18:23]SAM_PROTO_GetShiftState [11:18:23]wFMCommunicate request_size=4 [11:18:23]MH_SAM_APDU [11:18:23]CAPDU: 80 13 01 00 [11:18:23]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [11:18:23]Write i2c OK [11:18:23]MH_I2C_Read... [11:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:23]Read from MH i2c: E2 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: E2 0E 00 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 97 [11:18:23]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [11:18:23]wFMCommunicate OK [11:18:23]SAM_PROTO_GetShiftState done [11:18:23]FM_GetShiftState done [11:18:23]opened in 1730247109 [11:18:23]opened+sec_in_day 1730333509 [11:18:23]quantity*price = 358831 [11:18:23]sum+1 = 358832 [11:18:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 3588.00 Внесено: 4000.00 СДАЧА: 412.00 НСП 1% : 31.75 НДС 12% : 381.06 Наличными: 3588.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 68 30.10.2024 11:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72831 ФПД: 251871274718233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111824&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72831&fm=251871274718233&tin=02508201610067®Number=0000000000091644&sum=358800 [11:18:24]StoreToDocumentArchive [11:18:24]shift 556 fd 72831 [11:18:24]save to /storage/0556/doc_00072831 [11:18:24]save last doc name /storage/0556/doc_00072831 to /storage/kkm_last_doc_name [11:18:24]save OK [11:18:24]Clear old archive folders... [11:18:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:24]tlvbuf is 008985D0 [11:18:24]SAM_PROTO_ClearQueue [11:18:24]wFMCommunicate request_size=4 [11:18:24]MH_SAM_APDU [11:18:24]CAPDU: 80 09 00 00 [11:18:24]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [11:18:24]Write i2c OK [11:18:24]MH_I2C_Read... [11:18:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:24]Read from MH i2c: E2 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: E2 03 00 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [11:18:24]RAPDU: 90 00 [11:18:24]wFMCommunicate OK [11:18:24]SAM_PROTO_ClearQueue done [11:18:24]KKMCreateOFDPacket [11:18:24]OFDProtocolAddRootSTLVToBuf [11:18:24]FM_MakeSignedData [11:18:24]FM_MakeSignedData [11:18:24]SAM_PROTO_SignData [11:18:24]wFMCommunicate request_size=4 [11:18:24]MH_SAM_APDU [11:18:24]CAPDU: 80 0D 01 02 [11:18:24]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [11:18:24]Write i2c OK [11:18:24]MH_I2C_Read... [11:18:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:24]Read from MH i2c: E2 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: E2 03 00 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [11:18:24]RAPDU: 90 00 [11:18:24]wFMCommunicate OK [11:18:24]wFMCommunicate request_size=255 [11:18:24]MH_SAM_APDU [11:18:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E8 BC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AF 79 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 79 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 94 00 00 00 00 07 04 06 00 90 79 05 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 00 16 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1C 01 00 35 04 06 00 E5 [11:18:24]Write to MH i2c: E2 02 01 56 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 33 FF 03 08 00 03 E8 BC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AF 79 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 79 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 94 00 00 00 00 07 04 06 00 90 79 05 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 00 16 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1C 01 00 35 04 06 00 E5 00 00 53 [11:18:24]Write i2c OK [11:18:24]MH_I2C_Read... [11:18:25]OFD Sender: No OFD packet to send [11:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:25]Read from MH i2c: E2 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: E2 03 00 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [11:18:25]RAPDU: 90 00 [11:18:25]wFMCommunicate OK [11:18:25]wFMCommunicate request_size=10 [11:18:25]MH_SAM_APDU [11:18:25]CAPDU: 80 0D 02 02 05 13 59 DB D4 19 [11:18:25]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 13 59 DB D4 19 00 00 10 [11:18:25]Write i2c OK [11:18:25]MH_I2C_Read... [11:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:25]Read from MH i2c: E2 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: E2 03 00 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [11:18:25]RAPDU: 90 00 [11:18:25]wFMCommunicate OK [11:18:25]wFMCommunicate request_size=4 [11:18:25]MH_SAM_APDU [11:18:25]CAPDU: 80 0D 03 02 [11:18:25]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [11:18:25]Write i2c OK [11:18:25]MH_I2C_Read... [11:18:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:25]Read from MH i2c: E2 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: E2 0B 00 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: E2 0B 00 58 01 00 CA D1 E9 BB F5 EB CF AB 90 00 6E [11:18:25]RAPDU: CA D1 E9 BB F5 EB CF AB 90 00 [11:18:25]wFMCommunicate OK [11:18:25]SAM_PROTO_SignData done [11:18:25]FM_MakeSignedData done [11:18:25]CreateOFDProtocolMessage [11:18:25]wFMCommunicate request_size=4 [11:18:25]MH_SAM_APDU [11:18:25]CAPDU: 80 11 00 00 [11:18:25]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [11:18:25]Write i2c OK [11:18:25]MH_I2C_Read... [11:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:25]Read from MH i2c: E2 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: E2 17 00 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [11:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:18:25]wFMCommunicate OK [11:18:25]CreateOFDProtocolMessage done [11:18:25]OFDSenderStorePacket 72831 [11:18:25]StoreOFDPacket docnum=72831 [11:18:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DB 8E 07 01 79 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E8 BC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AF 79 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 79 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 94 00 00 00 00 07 04 06 00 90 79 05 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 00 16 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1C 01 00 35 04 06 00 E5 13 59 DB D4 19 CA D1 E9 BB F5 EB CF AB [11:18:25]CheckFolder [11:18:25]dirname=/storage/ofd_packets [11:18:25]CheckFolder done [11:18:25]ProducePacketName [11:18:25]name=ofd_packets/00072831 [11:18:25]NVStorageSaveData ofd_packets/00072831 [11:18:25]File name is /storage/ofd_packets/00072831 [11:18:25]Write 301 bytes [11:18:25]NVStorageSaveData done [11:18:25]OFDSenderStorePacket done [11:18:25]KKMCreateOFDPacket done [11:18:25]NVStorageSaveData kkm_last_timestamp [11:18:25]File name is /storage/kkm_last_timestamp [11:18:25]Write 4 bytes [11:18:25]NVStorageSaveData done [11:18:25]ExternCall_PrintAddStr [11:18:25]wPrintStart [11:18:25]Write to MH i2c: 01 00 00 5A 01 5B [11:18:25]Write i2c OK [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: 01 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: 01 07 00 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [11:18:25]RasterBufferAndPrint [11:18:25]line Счет N : (1)952394 [11:18:25]line ИНН: 02508201610067 [11:18:25]line Контрольно-Кассовый Чек [11:18:25]line ПРОДАЖА [11:18:25]line ТРК (МРК, ГНК) : 52 [11:18:25]line Товар: 2710124500 [11:18:25]line Аи-95-К-3 [11:18:25]line 48.360 * 74.20 [11:18:25]line = 3588.31 [11:18:25]line НДС 12% НСП 1% [11:18:25]line > о реализуемом товаре [11:18:25]line ОКРУГЛЕНИЕ: -0.31 [11:18:25]line ИТОГО: 3588.00 [11:18:25]line Внесено: 4000.00 [11:18:25]line СДАЧА: 412.00 [11:18:25]line НСП 1% : 31.75 [11:18:25]line НДС 12% : 381.06 [11:18:25]line Наличными: 3588.00 [11:18:25]line Безнал.: 0.00 [11:18:25]line Место: АЗС № 113 "Партнер Нефть" [11:18:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:18:25]line СНО: Общий режим [11:18:25]line Чек 68 30.10.2024 11:18 [11:18:25]line Смена: 556 ФФД: 1.0 [11:18:25]line ЗНМ: 0300000087 [11:18:25]line РНМ: 0000000000091644 [11:18:25]line Версия ККМ: 001 [11:18:25]line ФМ: 0000000000874662 [11:18:25]line ФД: 72831 [11:18:25]line ФПД: 251871274718233 [11:18:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T111824&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72831&fm=251871274718233&tin=02508201610067®Number=0000000000091644&sum=358800 [11:18:25]OFD Sender: Processing packet 72831 [packets to send 278, broken 277] [11:18:25]ProducePacketName [11:18:25]name=ofd_packets/00072831 [11:18:25]OFD Sender: To server: pG, [11:18:25]CommunicateWithHost lk.salyk.kg:30040 [11:18:25]ConnectInit lk.salyk.kg [11:18:25]written 0, free lines is 4095 [11:18:25]Write to MH i2c: 01 00 00 85 01 86 [11:18:25]Write i2c OK [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: 01 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: 01 07 00 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 D5 0C 6E [11:18:25]RasterBufferAndPrint [11:18:25]line [11:18:25]line [11:18:25]line [11:18:25]line [11:18:25]line [11:18:25]written 0, free lines is 3296 [11:18:25]MH_Cut [11:18:25]Write to MH i2c: D1 01 00 8C 01 01 5F [11:18:25]Write i2c OK [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: D1 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: D1 01 00 [11:18:25]MH_I2C_Read... [11:18:25]Read from MH i2c: D1 01 00 8C 01 00 5E [11:18:25]Write to MH i2c: 01 00 00 8D 01 8E [11:18:25]Write i2c OK [11:18:25]MH_I2C_Read... [11:18:26]*** Cut start [11:18:26]*** Partial cut [11:18:26]*** CUTSNS_PIN = 1 [11:18:26]*** CUTSNS_PIN = 0 [11:18:26]Connected sock=10 [11:18:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DB 8E 07 01 79 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E8 BC 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 AF 79 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 79 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 94 00 00 00 00 07 04 06 00 90 79 05 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 00 16 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1C 01 00 35 04 06 00 E5 13 59 DB D4 19 CA D1 E9 BB F5 EB CF AB [11:18:26]*** Brake cut motor [11:18:27]Read from MH i2c: 01 [11:18:27]MH_I2C_Read... [11:18:27]*** Stop cut motor [11:18:27]*** Cut end [11:18:27]Read from MH i2c: 01 07 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [11:18:27]process_action close_receipt done [11:18:27]requested_data is exist [11:18:27]produce_requested_data [11:18:27]requested_item fm.sn is exist - process it [11:18:27]wFMCommunicate request_size=4 [11:18:27]MH_SAM_APDU [11:18:27]CAPDU: 80 11 00 00 [11:18:27]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:27]Read from MH i2c: E2 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 17 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5D [11:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:18:27]wFMCommunicate OK [11:18:27]requested_item fd.num is exist - process it [11:18:27]SAM_PROTO_GetFieldsCounters [11:18:27]wFMCommunicate request_size=4 [11:18:27]MH_SAM_APDU [11:18:27]CAPDU: 80 13 00 00 [11:18:27]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:27]Read from MH i2c: E2 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 62 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7F 1C 01 00 0E 04 04 00 2C 02 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 C3 [11:18:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7F 1C 01 00 0E 04 04 00 2C 02 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 [11:18:27]wFMCommunicate OK [11:18:27]SAM_PROTO_GetFieldsCounters done [11:18:27]requested_item shift.num is exist - process it [11:18:27]requested_item shift.opened is exist - process it [11:18:27]req_shift_opened [11:18:27]FM_GetShiftState [11:18:27]SAM_PROTO_GetShiftState [11:18:27]wFMCommunicate request_size=4 [11:18:27]MH_SAM_APDU [11:18:27]CAPDU: 80 13 01 00 [11:18:27]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [11:18:27]Write i2c OK [11:18:27]MH_I2C_Read... [11:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:27]Read from MH i2c: E2 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 0E 00 [11:18:27]MH_I2C_Read... [11:18:27]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E0 [11:18:27]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [11:18:27]wFMCommunicate OK [11:18:27]SAM_PROTO_GetShiftState done [11:18:27]FM_GetShiftState done [11:18:27]req_shift_opened done [11:18:27]requested_item shift.open_date is exist - process it [11:18:27]req_shift_open_date [11:18:27]req_shift_open_date done [11:18:27]produce_requested_data done [11:18:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72831,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [11:18:27]process_action_free close_receipt [11:18:27]json_value_free [11:18:27]json_value_free done [11:18:27]process_json_proto returns [11:18:27]Send response to host [11:18:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72831,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [11:18:27]free response buf [11:18:27]execute_script done [11:18:27]execute_script returns [11:18:27]free content buf [11:18:27]Sock 9.Close socket [11:18:27]Sock 9.Thread stoped [11:18:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F2 5E 47 00 49 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1C 01 00 F4 03 04 00 BA C0 21 67 B6 04 01 00 00 AF 72 45 65 24 0C CB AB [11:18:27]CommunicateWithHost err = 0 [11:18:27]CheckOFDResponse [11:18:27]1017 (14) - 77093643461234 [11:18:27]1041 (16) - 0000000000874662 [11:18:27]1040 (4) - 72831 [11:18:27]1012 (4) - 30.10.2024 05:14 [11:18:27]1206 (1) - 0 [11:18:27]OFD Sender: Remove packet 72831 [11:18:27]ProducePacketName [11:18:27]name=ofd_packets/00072831 [11:18:27]NVStorageDeleteData [11:18:27]OFD Sender: No OFD packet to send [11:18:32]recv_with_timeout no data received [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:25]recv_with_timeout no data received [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:45]recv_with_timeout no data received [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:51]recv_with_timeout no data received [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:16]recv_with_timeout no data received [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:23:59]recv_with_timeout no data received [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:57]recv_with_timeout no data received [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]recv_with_timeout no data received [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]recv_with_timeout no data received [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:37]recv_with_timeout no data received [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:14]recv_with_timeout no data received [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:58]recv_with_timeout no data received [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:23]recv_with_timeout no data received [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:08]recv_with_timeout no data received [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:15]recv_with_timeout no data received [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:06]recv_with_timeout no data received [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:05]recv_with_timeout no data received [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:58]recv_with_timeout no data received [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:06]recv_with_timeout no data received [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:32]recv_with_timeout no data received [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:07]recv_with_timeout no data received [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:28]recv_with_timeout no data received [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]recv_with_timeout no data received [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:36]recv_with_timeout no data received [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:42:57]recv_with_timeout no data received [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]recv_with_timeout no data received [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:29]recv_with_timeout no data received [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:01]recv_with_timeout no data received [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:07]recv_with_timeout no data received [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:27]recv_with_timeout no data received [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:37]recv_with_timeout no data received [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:01]recv_with_timeout no data received [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:18]recv_with_timeout no data received [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:44]recv_with_timeout no data received [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:01]recv_with_timeout no data received [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:39]recv_with_timeout no data received [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]accept exits with 7 [11:54:01]New connection [11:54:01]New thread 3066928484 created [11:54:01]Thread 3067071844 joined [11:54:01]Waiting for new connection... [11:54:01] Sock 7.Parse request [11:54:01]Sock 7.Check first char [11:54:01]Sock 7.First char is OK [11:54:01]request: POST /json_proto HTTP/1.0 [11:54:01]Method: POST [11:54:01]URL: /json_proto [11:54:01]Method is POST - this is cgi request [11:54:01]url: /json_proto [11:54:01]query_string will be loaded in cgi processing [11:54:01]execute_cgi json_proto POST (null) [11:54:01]execute_cgi path=json_proto method=POST [11:54:01]POST find Content-Length [11:54:01]Host: 172.17.43.195:8080 [11:54:01]Content-Length: 792 [11:54:01]Content-Type: application/json [11:54:01] [11:54:01]POST finish read [11:54:01]Found Content-Length = 792 [11:54:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952400", "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" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:01]execute_script... [11:54: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)952400", "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" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:01]POST & json_proto [11:54:01]process_json_proto [11:54:01]json parsed OK: [11:54:01]protocol is kg_v1.0 [11:54:01]action value=close_receipt [11:54:01]process_action close_receipt [11:54:01]cmd_close_receipt [11:54:01]MH_GetDate [11:54:01]Write to MH i2c: F0 00 00 91 01 81 [11:54:01]Write i2c OK [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: F0 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: F0 09 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: F0 09 00 91 01 00 59 1E 22 67 74 2C AD 66 3D [11:54:01]GetLastDocTimeStamp 1730287104 [11:54:01]current date 1730289241 [11:54:01]FM_GetShiftState [11:54:01]SAM_PROTO_GetShiftState [11:54:01]wFMCommunicate request_size=4 [11:54:01]MH_SAM_APDU [11:54:01]CAPDU: 80 13 01 00 [11:54:01]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [11:54:01]Write i2c OK [11:54:01]MH_I2C_Read... [11:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:01]Read from MH i2c: E2 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 0E 00 [11:54:01]MH_I2C_Read... [11:54:01]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E2 [11:54:01]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [11:54:01]wFMCommunicate OK [11:54:01]SAM_PROTO_GetShiftState done [11:54:01]FM_GetShiftState done [11:54:01]opened in 1730247109 [11:54:01]opened+sec_in_day 1730333509 [11:54:01]quantity*price = 0 [11:54:01]sum+1 = 1 [11:54:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 69 30.10.2024 11:54 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72832 ФПД: 47623257505441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T115401&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72832&fm=47623257505441&tin=02508201610067®Number=0000000000091644&sum=0 [11:54:02]StoreToDocumentArchive [11:54:02]shift 556 fd 72832 [11:54:02]save to /storage/0556/doc_00072832 [11:54:02]save last doc name /storage/0556/doc_00072832 to /storage/kkm_last_doc_name [11:54:02]save OK [11:54:02]Clear old archive folders... [11:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:02]tlvbuf is 008A1ED0 [11:54:02]SAM_PROTO_ClearQueue [11:54:02]wFMCommunicate request_size=4 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 09 00 00 [11:54:02]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [11:54:02]RAPDU: 90 00 [11:54:02]wFMCommunicate OK [11:54:02]SAM_PROTO_ClearQueue done [11:54:02]KKMCreateOFDPacket [11:54:02]OFDProtocolAddRootSTLVToBuf [11:54:02]FM_MakeSignedData [11:54:02]FM_MakeSignedData [11:54:02]SAM_PROTO_SignData [11:54:02]wFMCommunicate request_size=4 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 0D 01 02 [11:54:02]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [11:54:02]RAPDU: 90 00 [11:54:02]wFMCommunicate OK [11:54:02]wFMCommunicate request_size=255 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 59 1E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1C 01 00 35 04 06 00 2B [11:54:02]Write to MH i2c: E2 02 01 A1 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 59 1E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1C 01 00 35 04 06 00 2B 00 00 04 [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [11:54:02]RAPDU: 90 00 [11:54:02]wFMCommunicate OK [11:54:02]wFMCommunicate request_size=10 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 0D 02 02 05 50 27 58 BE A1 [11:54:02]Write to MH i2c: E2 0D 00 A2 01 80 0D 02 02 05 00 50 27 58 BE A1 00 00 55 [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [11:54:02]RAPDU: 90 00 [11:54:02]wFMCommunicate OK [11:54:02]wFMCommunicate request_size=4 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 0D 03 02 [11:54:02]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 0B 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 0B 00 A3 01 00 B0 87 59 A6 F1 05 51 BB 90 00 58 [11:54:02]RAPDU: B0 87 59 A6 F1 05 51 BB 90 00 [11:54:02]wFMCommunicate OK [11:54:02]SAM_PROTO_SignData done [11:54:02]FM_MakeSignedData done [11:54:02]CreateOFDProtocolMessage [11:54:02]wFMCommunicate request_size=4 [11:54:02]MH_SAM_APDU [11:54:02]CAPDU: 80 11 00 00 [11:54:02]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:02]Read from MH i2c: E2 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 17 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 73 [11:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:54:02]wFMCommunicate OK [11:54:02]CreateOFDProtocolMessage done [11:54:02]OFDSenderStorePacket 72832 [11:54:02]StoreOFDPacket docnum=72832 [11:54:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA 12 07 01 AD D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 59 1E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1C 01 00 35 04 06 00 2B 50 27 58 BE A1 B0 87 59 A6 F1 05 51 BB [11:54:02]CheckFolder [11:54:02]dirname=/storage/ofd_packets [11:54:02]CheckFolder done [11:54:02]ProducePacketName [11:54:02]name=ofd_packets/00072832 [11:54:02]NVStorageSaveData ofd_packets/00072832 [11:54:02]File name is /storage/ofd_packets/00072832 [11:54:02]Write 301 bytes [11:54:02]NVStorageSaveData done [11:54:02]OFDSenderStorePacket done [11:54:02]KKMCreateOFDPacket done [11:54:02]NVStorageSaveData kkm_last_timestamp [11:54:02]File name is /storage/kkm_last_timestamp [11:54:02]Write 4 bytes [11:54:02]NVStorageSaveData done [11:54:02]ExternCall_PrintAddStr [11:54:02]wPrintStart [11:54:02]Write to MH i2c: 01 00 00 A5 01 A6 [11:54:02]Write i2c OK [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: 01 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: 01 07 00 [11:54:02]MH_I2C_Read... [11:54:02]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [11:54:02]RasterBufferAndPrint [11:54:02]line Счет N : (1)952400 [11:54:02]line ИНН: 02508201610067 [11:54:02]line Контрольно-Кассовый Чек [11:54:02]line ПРОДАЖА [11:54:02]line ТРК (МРК, ГНК) : 42 [11:54:02]line Товар: 2710124130 [11:54:02]line Аи-92-К-5 [11:54:02]line 30.000 * 0.00 [11:54:02]line = 0.00 [11:54:02]line НДС 12% НСП 1% [11:54:02]line > о реализуемом товаре [11:54:02]line ИТОГО: 0.00 [11:54:02]line НСП 1% : 0.00 [11:54:02]line НДС 12% : 0.00 [11:54:02]line Наличными: 0.00 [11:54:02]line Безнал.: 0.00 [11:54:02]line Место: АЗС № 113 "Партнер Нефть" [11:54:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:54:02]line СНО: Общий режим [11:54:02]line Чек 69 30.10.2024 11:54 [11:54:02]line Смена: 556 ФФД: 1.0 [11:54:02]line ЗНМ: 0300000087 [11:54:02]line РНМ: 0000000000091644 [11:54:02]line Версия ККМ: 001 [11:54:02]line Талоны: Топливная Карта [11:54:02]line 03047 [11:54:02]line ФМ: 0000000000874662 [11:54:02]line ФД: 72832 [11:54:02]line ФПД: 47623257505441 [11:54:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T115401&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72832&fm=47623257505441&tin=02508201610067®Number=0000000000091644&sum=0 [11:54:02]written 0, free lines is 4095 [11:54:02]OFD Sender: Processing packet 72832 [packets to send 278, broken 277] [11:54:02]ProducePacketName [11:54:02]name=ofd_packets/00072832 [11:54:02]OFD Sender: To server: pG, [11:54:02]CommunicateWithHost lk.salyk.kg:30040 [11:54:02]ConnectInit lk.salyk.kg [11:54:03]Write to MH i2c: 01 00 00 CF 01 D0 [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: 01 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: 01 07 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 E1 0C C4 [11:54:03]RasterBufferAndPrint [11:54:03]line [11:54:03]line [11:54:03]line [11:54:03]line [11:54:03]line [11:54:03]written 0, free lines is 3303 [11:54:03]MH_Cut [11:54:03]Write to MH i2c: D1 01 00 D6 01 01 A9 [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: D1 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: D1 01 00 [11:54:03]MH_I2C_Read... [11:54:03]Read from MH i2c: D1 01 00 D6 01 00 A8 [11:54:03]Write to MH i2c: 01 00 00 D7 01 D8 [11:54:03]Write i2c OK [11:54:03]MH_I2C_Read... [11:54:03]Connected sock=10 [11:54:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA 12 07 01 AD D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 59 1E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1C 01 00 35 04 06 00 2B 50 27 58 BE A1 B0 87 59 A6 F1 05 51 BB [11:54:04]*** Cut start [11:54:04]*** Partial cut [11:54:04]*** CUTSNS_PIN = 1 [11:54:04]*** CUTSNS_PIN = 0 [11:54:04]*** Brake cut motor [11:54:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7D CC 47 00 B0 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1C 01 00 F4 03 04 00 13 C9 21 67 B6 04 01 00 00 37 B6 9C F0 0C 76 4B D4 [11:54:04]CommunicateWithHost err = 0 [11:54:04]CheckOFDResponse [11:54:04]1017 (14) - 77093643461234 [11:54:04]1041 (16) - 0000000000874662 [11:54:04]1040 (4) - 72832 [11:54:04]1012 (4) - 30.10.2024 05:50 [11:54:04]1206 (1) - 0 [11:54:04]OFD Sender: Remove packet 72832 [11:54:04]ProducePacketName [11:54:04]name=ofd_packets/00072832 [11:54:04]NVStorageDeleteData [11:54:04]Read from MH i2c: 01 [11:54:04]MH_I2C_Read... [11:54:04]*** Stop cut motor [11:54:04]*** Cut end [11:54:04]Read from MH i2c: 01 07 00 [11:54:04]MH_I2C_Read... [11:54:04]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [11:54:04]process_action close_receipt done [11:54:04]requested_data is exist [11:54:04]produce_requested_data [11:54:04]requested_item fm.sn is exist - process it [11:54:04]wFMCommunicate request_size=4 [11:54:04]MH_SAM_APDU [11:54:04]CAPDU: 80 11 00 00 [11:54:04]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [11:54:04]Write i2c OK [11:54:04]MH_I2C_Read... [11:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:04]Read from MH i2c: E2 [11:54:04]MH_I2C_Read... [11:54:04]Read from MH i2c: E2 17 00 [11:54:04]MH_I2C_Read... [11:54:04]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A7 [11:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:54:04]wFMCommunicate OK [11:54:04]requested_item fd.num is exist - process it [11:54:04]SAM_PROTO_GetFieldsCounters [11:54:04]wFMCommunicate request_size=4 [11:54:04]MH_SAM_APDU [11:54:04]CAPDU: 80 13 00 00 [11:54:04]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [11:54:04]Write i2c OK [11:54:04]MH_I2C_Read... [11:54:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:05]Read from MH i2c: E2 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: E2 62 00 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: E2 62 00 D9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 80 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [11:54:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 80 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:05]wFMCommunicate OK [11:54:05]SAM_PROTO_GetFieldsCounters done [11:54:05]requested_item shift.num is exist - process it [11:54:05]requested_item shift.opened is exist - process it [11:54:05]req_shift_opened [11:54:05]FM_GetShiftState [11:54:05]SAM_PROTO_GetShiftState [11:54:05]wFMCommunicate request_size=4 [11:54:05]MH_SAM_APDU [11:54:05]CAPDU: 80 13 01 00 [11:54:05]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [11:54:05]Write i2c OK [11:54:05]MH_I2C_Read... [11:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:05]Read from MH i2c: E2 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: E2 0E 00 [11:54:05]MH_I2C_Read... [11:54:05]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 2A [11:54:05]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [11:54:05]wFMCommunicate OK [11:54:05]SAM_PROTO_GetShiftState done [11:54:05]FM_GetShiftState done [11:54:05]req_shift_opened done [11:54:05]requested_item shift.open_date is exist - process it [11:54:05]req_shift_open_date [11:54:05]req_shift_open_date done [11:54:05]produce_requested_data done [11:54:05]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72832,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [11:54:05]process_action_free close_receipt [11:54:05]json_value_free [11:54:05]json_value_free done [11:54:05]process_json_proto returns [11:54:05]Send response to host [11:54:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72832,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [11:54:05]free response buf [11:54:05]execute_script done [11:54:05]execute_script returns [11:54:05]free content buf [11:54:05]Sock 7.Close socket [11:54:05]Sock 7.Thread stoped [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:11]recv_with_timeout no data received [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:41]recv_with_timeout no data received [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:51]recv_with_timeout no data received [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:21]recv_with_timeout no data received [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:31]recv_with_timeout no data received [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]recv_with_timeout no data received [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:22]recv_with_timeout no data received [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:46]accept exits with 9 [12:03:46]New connection [12:03:46]New thread 3067071844 created [12:03:46]Thread 3066928484 joined [12:03:46]Waiting for new connection... [12:03:46] Sock 9.Parse request [12:03:46]Sock 9.Check first char [12:03:46]Sock 9.First char is OK [12:03:46]request: POST /json_proto HTTP/1.0 [12:03:46]Method: POST [12:03:46]URL: /json_proto [12:03:46]Method is POST - this is cgi request [12:03:46]url: /json_proto [12:03:46]query_string will be loaded in cgi processing [12:03:46]execute_cgi json_proto POST (null) [12:03:46]execute_cgi path=json_proto method=POST [12:03:46]POST find Content-Length [12:03:46]Host: 172.17.43.195:8080 [12:03:46]Content-Length: 797 [12:03:46]Content-Type: application/json [12:03:46] [12:03:46]POST finish read [12:03:46]Found Content-Length = 797 [12:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952404", "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" : 0.00, "quantity" : 19.690, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:46]execute_script... [12:03: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)952404", "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" : 0.00, "quantity" : 19.690, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:46]POST & json_proto [12:03:46]process_json_proto [12:03:46]json parsed OK: [12:03:46]protocol is kg_v1.0 [12:03:46]action value=close_receipt [12:03:46]process_action close_receipt [12:03:46]cmd_close_receipt [12:03:46]MH_GetDate [12:03:46]Write to MH i2c: F0 00 00 DB 01 CB [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: F0 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: F0 09 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: F0 09 00 DB 01 00 A3 20 22 67 74 2C AD 66 D3 [12:03:46]GetLastDocTimeStamp 1730289241 [12:03:46]current date 1730289827 [12:03:46]FM_GetShiftState [12:03:46]SAM_PROTO_GetShiftState [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 13 01 00 [12:03:46]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 0E 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 2C [12:03:46]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:03:46]wFMCommunicate OK [12:03:46]SAM_PROTO_GetShiftState done [12:03:46]FM_GetShiftState done [12:03:46]opened in 1730247109 [12:03:46]opened+sec_in_day 1730333509 [12:03:46]quantity*price = 0 [12:03:46]sum+1 = 1 [12:03:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 70 30.10.2024 12:03 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72833 ФПД: 93551530155441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120347&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72833&fm=93551530155441&tin=02508201610067®Number=0000000000091644&sum=0 [12:03:47]StoreToDocumentArchive [12:03:47]shift 556 fd 72833 [12:03:47]save to /storage/0556/doc_00072833 [12:03:47]save last doc name /storage/0556/doc_00072833 to /storage/kkm_last_doc_name [12:03:47]save OK [12:03:47]Clear old archive folders... [12:03:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:03:47]tlvbuf is 008A3810 [12:03:47]SAM_PROTO_ClearQueue [12:03:47]wFMCommunicate request_size=4 [12:03:47]MH_SAM_APDU [12:03:47]CAPDU: 80 09 00 00 [12:03:47]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:47]Read from MH i2c: E2 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: E2 03 00 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [12:03:47]RAPDU: 90 00 [12:03:47]wFMCommunicate OK [12:03:47]SAM_PROTO_ClearQueue done [12:03:47]KKMCreateOFDPacket [12:03:47]OFDProtocolAddRootSTLVToBuf [12:03:47]FM_MakeSignedData [12:03:47]FM_MakeSignedData [12:03:47]SAM_PROTO_SignData [12:03:47]wFMCommunicate request_size=4 [12:03:47]MH_SAM_APDU [12:03:47]CAPDU: 80 0D 01 02 [12:03:47]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:47]Read from MH i2c: E2 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: E2 03 00 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [12:03:47]RAPDU: 90 00 [12:03:47]wFMCommunicate OK [12:03:47]wFMCommunicate request_size=255 [12:03:47]MH_SAM_APDU [12:03:47]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 EA 4C 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 46 00 00 00 F4 03 04 00 A3 20 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1C 01 00 35 04 06 00 [12:03:47]Write to MH i2c: E2 02 01 EB 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 EA 4C 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 46 00 00 00 F4 03 04 00 A3 20 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1C 01 00 35 04 06 00 00 00 3D [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 03 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [12:03:48]RAPDU: 90 00 [12:03:48]wFMCommunicate OK [12:03:48]wFMCommunicate request_size=11 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 0D 02 02 06 55 15 A9 B9 1D B1 [12:03:48]Write to MH i2c: E2 0E 00 EC 01 80 0D 02 02 06 00 55 15 A9 B9 1D B1 00 00 0D [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:48]Read from MH i2c: E2 03 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [12:03:48]RAPDU: 90 00 [12:03:48]wFMCommunicate OK [12:03:48]wFMCommunicate request_size=4 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 0D 03 02 [12:03:48]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 0B 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 0B 00 ED 01 00 10 95 EE F8 5C D6 B8 27 90 00 06 [12:03:48]RAPDU: 10 95 EE F8 5C D6 B8 27 90 00 [12:03:48]wFMCommunicate OK [12:03:48]SAM_PROTO_SignData done [12:03:48]FM_MakeSignedData done [12:03:48]CreateOFDProtocolMessage [12:03:48]wFMCommunicate request_size=4 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 11 00 00 [12:03:48]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 17 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BD [12:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:03:48]wFMCommunicate OK [12:03:48]CreateOFDProtocolMessage done [12:03:48]OFDSenderStorePacket 72833 [12:03:48]StoreOFDPacket docnum=72833 [12:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 CB 09 08 01 39 69 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 EA 4C 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 46 00 00 00 F4 03 04 00 A3 20 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1C 01 00 35 04 06 00 55 15 A9 B9 1D B1 10 95 EE F8 5C D6 B8 27 [12:03:48]CheckFolder [12:03:48]dirname=/storage/ofd_packets [12:03:48]CheckFolder done [12:03:48]ProducePacketName [12:03:48]name=ofd_packets/00072833 [12:03:48]NVStorageSaveData ofd_packets/00072833 [12:03:48]File name is /storage/ofd_packets/00072833 [12:03:48]Write 302 bytes [12:03:48]NVStorageSaveData done [12:03:48]OFDSenderStorePacket done [12:03:48]KKMCreateOFDPacket done [12:03:48]NVStorageSaveData kkm_last_timestamp [12:03:48]File name is /storage/kkm_last_timestamp [12:03:48]Write 4 bytes [12:03:48]NVStorageSaveData done [12:03:48]ExternCall_PrintAddStr [12:03:48]wPrintStart [12:03:48]Write to MH i2c: 01 00 00 EF 01 F0 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: 01 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: 01 07 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [12:03:48]RasterBufferAndPrint [12:03:48]line Счет N : (1)952404 [12:03:48]line ИНН: 02508201610067 [12:03:48]line Контрольно-Кассовый Чек [12:03:48]line ПРОДАЖА [12:03:48]line ТРК (МРК, ГНК) : 33 [12:03:48]line Товар: 2710194210 [12:03:48]line ДТ(л)-К-5 [12:03:48]line 19.690 * 0.00 [12:03:48]line = 0.00 [12:03:48]line НДС 12% НСП 1% [12:03:48]line > о реализуемом товаре [12:03:48]line ИТОГО: 0.00 [12:03:48]line НСП 1% : 0.00 [12:03:48]line НДС 12% : 0.00 [12:03:48]line Наличными: 0.00 [12:03:48]line Безнал.: 0.00 [12:03:48]line Место: АЗС № 113 "Партнер Нефть" [12:03:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:03:48]line СНО: Общий режим [12:03:48]line Чек 70 30.10.2024 12:03 [12:03:48]line Смена: 556 ФФД: 1.0 [12:03:48]line ЗНМ: 0300000087 [12:03:48]line РНМ: 0000000000091644 [12:03:48]line Версия ККМ: 001 [12:03:48]line Талоны: Топливная Карта [12:03:48]line 53623 [12:03:48]line ФМ: 0000000000874662 [12:03:48]line ФД: 72833 [12:03:48]line ФПД: 93551530155441 [12:03:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120347&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72833&fm=93551530155441&tin=02508201610067®Number=0000000000091644&sum=0 [12:03:48]written 0, free lines is 4095 [12:03:48]OFD Sender: Processing packet 72833 [packets to send 278, broken 277] [12:03:48]ProducePacketName [12:03:48]name=ofd_packets/00072833 [12:03:48]OFD Sender: To server: pG, [12:03:48]CommunicateWithHost lk.salyk.kg:30040 [12:03:48]ConnectInit lk.salyk.kg [12:03:48]Write to MH i2c: 01 00 00 19 02 1B [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: 01 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: 01 07 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 DE 0C 0C [12:03:48]RasterBufferAndPrint [12:03:48]line [12:03:48]line [12:03:48]line [12:03:48]line [12:03:48]line [12:03:48]written 0, free lines is 3300 [12:03:48]MH_Cut [12:03:48]Write to MH i2c: D1 01 00 20 02 01 F4 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: D1 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: D1 01 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: D1 01 00 20 02 00 F3 [12:03:48]Write to MH i2c: 01 00 00 21 02 23 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:49]Connected sock=7 [12:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 CB 09 08 01 39 69 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 EA 4C 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 46 00 00 00 F4 03 04 00 A3 20 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1C 01 00 35 04 06 00 55 15 A9 B9 1D B1 10 95 EE F8 5C D6 B8 27 [12:03:49]*** Cut start [12:03:49]*** Partial cut [12:03:49]*** CUTSNS_PIN = 1 [12:03:49]*** CUTSNS_PIN = 0 [12:03:49]*** Brake cut motor [12:03:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E4 B7 47 00 09 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1C 01 00 F4 03 04 00 5C CB 21 67 B6 04 01 00 00 CD 52 49 2E FE 35 07 D8 [12:03:50]CommunicateWithHost err = 0 [12:03:50]CheckOFDResponse [12:03:50]1017 (14) - 77093643461234 [12:03:50]1041 (16) - 0000000000874662 [12:03:50]1040 (4) - 72833 [12:03:50]1012 (4) - 30.10.2024 05:59 [12:03:50]1206 (1) - 0 [12:03:50]OFD Sender: Remove packet 72833 [12:03:50]ProducePacketName [12:03:50]name=ofd_packets/00072833 [12:03:50]NVStorageDeleteData [12:03:50]Read from MH i2c: 01 [12:03:50]MH_I2C_Read... [12:03:50]*** Stop cut motor [12:03:50]*** Cut end [12:03:50]Read from MH i2c: 01 07 00 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [12:03:50]process_action close_receipt done [12:03:50]requested_data is exist [12:03:50]produce_requested_data [12:03:50]requested_item fm.sn is exist - process it [12:03:50]wFMCommunicate request_size=4 [12:03:50]MH_SAM_APDU [12:03:50]CAPDU: 80 11 00 00 [12:03:50]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [12:03:50]Write i2c OK [12:03:50]MH_I2C_Read... [12:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:50]Read from MH i2c: E2 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 17 00 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F2 [12:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:03:50]wFMCommunicate OK [12:03:50]requested_item fd.num is exist - process it [12:03:50]SAM_PROTO_GetFieldsCounters [12:03:50]wFMCommunicate request_size=4 [12:03:50]MH_SAM_APDU [12:03:50]CAPDU: 80 13 00 00 [12:03:50]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [12:03:50]Write i2c OK [12:03:50]MH_I2C_Read... [12:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:50]Read from MH i2c: E2 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 62 00 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 62 00 23 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 81 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [12:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 81 1C 01 00 0E 04 04 00 2C 02 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 [12:03:50]wFMCommunicate OK [12:03:50]SAM_PROTO_GetFieldsCounters done [12:03:50]requested_item shift.num is exist - process it [12:03:50]requested_item shift.opened is exist - process it [12:03:50]req_shift_opened [12:03:50]FM_GetShiftState [12:03:50]SAM_PROTO_GetShiftState [12:03:50]wFMCommunicate request_size=4 [12:03:50]MH_SAM_APDU [12:03:50]CAPDU: 80 13 01 00 [12:03:50]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [12:03:50]Write i2c OK [12:03:50]MH_I2C_Read... [12:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:50]Read from MH i2c: E2 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 0E 00 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 75 [12:03:50]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:03:50]wFMCommunicate OK [12:03:50]SAM_PROTO_GetShiftState done [12:03:50]FM_GetShiftState done [12:03:50]req_shift_opened done [12:03:50]requested_item shift.open_date is exist - process it [12:03:50]req_shift_open_date [12:03:50]req_shift_open_date done [12:03:50]produce_requested_data done [12:03:50]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72833,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [12:03:50]process_action_free close_receipt [12:03:50]json_value_free [12:03:50]json_value_free done [12:03:50]process_json_proto returns [12:03:50]Send response to host [12:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72833,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [12:03:50]free response buf [12:03:50]execute_script done [12:03:50]OFD Sender: No OFD packet to send [12:03:50]execute_script returns [12:03:50]free content buf [12:03:50]Sock 9.Close socket [12:03:50]Sock 9.Thread stoped [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:09]recv_with_timeout no data received [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:54]accept exits with 10 [12:04:54]New connection [12:04:54]New thread 3066928484 created [12:04:54]Thread 3067071844 joined [12:04:54]Waiting for new connection... [12:04:54] Sock 10.Parse request [12:04:54]Sock 10.Check first char [12:04:54]Sock 10.First char is OK [12:04:54]request: POST /json_proto HTTP/1.0 [12:04:54]Method: POST [12:04:54]URL: /json_proto [12:04:54]Method is POST - this is cgi request [12:04:54]url: /json_proto [12:04:54]query_string will be loaded in cgi processing [12:04:54]execute_cgi json_proto POST (null) [12:04:54]execute_cgi path=json_proto method=POST [12:04:54]POST find Content-Length [12:04:54]Host: 172.17.43.195:8080 [12:04:54]Content-Length: 791 [12:04:54]Content-Type: application/json [12:04:54] [12:04:54]POST finish read [12:04:54]Found Content-Length = 791 [12:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:54]execute_script... [12:04:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:54]POST & json_proto [12:04:54]process_json_proto [12:04:54]json parsed OK: [12:04:54]protocol is kg_v1.0 [12:04:54]action value=close_receipt [12:04:54]process_action close_receipt [12:04:54]cmd_close_receipt [12:04:54]MH_GetDate [12:04:54]Write to MH i2c: F0 00 00 25 02 16 [12:04:54]Write i2c OK [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: F0 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: F0 09 00 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: F0 09 00 25 02 00 E6 20 22 67 74 2C AD 66 61 [12:04:54]GetLastDocTimeStamp 1730289827 [12:04:54]current date 1730289894 [12:04:54]FM_GetShiftState [12:04:54]SAM_PROTO_GetShiftState [12:04:54]wFMCommunicate request_size=4 [12:04:54]MH_SAM_APDU [12:04:54]CAPDU: 80 13 01 00 [12:04:54]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [12:04:54]Write i2c OK [12:04:54]MH_I2C_Read... [12:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:54]Read from MH i2c: E2 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: E2 0E 00 [12:04:54]MH_I2C_Read... [12:04:54]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 77 [12:04:54]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:04:54]wFMCommunicate OK [12:04:54]SAM_PROTO_GetShiftState done [12:04:54]FM_GetShiftState done [12:04:54]opened in 1730247109 [12:04:54]opened+sec_in_day 1730333509 [12:04:54]quantity*price = 0 [12:04:54]sum+1 = 1 [12:04:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 71 30.10.2024 12:04 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72834 ФПД: 116180419520319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120454&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72834&fm=116180419520319&tin=02508201610067®Number=0000000000091644&sum=0 [12:04:55]StoreToDocumentArchive [12:04:55]shift 556 fd 72834 [12:04:55]save to /storage/0556/doc_00072834 [12:04:55]save last doc name /storage/0556/doc_00072834 to /storage/kkm_last_doc_name [12:04:55]save OK [12:04:55]Clear old archive folders... [12:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:55]tlvbuf is 0089D240 [12:04:55]SAM_PROTO_ClearQueue [12:04:55]wFMCommunicate request_size=4 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 09 00 00 [12:04:55]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [12:04:55]RAPDU: 90 00 [12:04:55]wFMCommunicate OK [12:04:55]SAM_PROTO_ClearQueue done [12:04:55]KKMCreateOFDPacket [12:04:55]OFDProtocolAddRootSTLVToBuf [12:04:55]FM_MakeSignedData [12:04:55]FM_MakeSignedData [12:04:55]SAM_PROTO_SignData [12:04:55]wFMCommunicate request_size=4 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 0D 01 02 [12:04:55]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [12:04:55]RAPDU: 90 00 [12:04:55]wFMCommunicate OK [12:04:55]wFMCommunicate request_size=255 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E6 20 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1C 01 00 35 04 06 00 69 [12:04:55]Write to MH i2c: E2 02 01 35 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 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E6 20 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1C 01 00 35 04 06 00 69 00 00 1A [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [12:04:55]RAPDU: 90 00 [12:04:55]wFMCommunicate OK [12:04:55]wFMCommunicate request_size=10 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 0D 02 02 05 AA 5C A2 A7 3F [12:04:55]Write to MH i2c: E2 0D 00 36 02 80 0D 02 02 05 00 AA 5C A2 A7 3F 00 00 4A [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [12:04:55]RAPDU: 90 00 [12:04:55]wFMCommunicate OK [12:04:55]wFMCommunicate request_size=4 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 0D 03 02 [12:04:55]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 0B 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 0B 00 37 02 00 6F 90 24 24 BC 3C B4 23 90 00 CB [12:04:55]RAPDU: 6F 90 24 24 BC 3C B4 23 90 00 [12:04:55]wFMCommunicate OK [12:04:55]SAM_PROTO_SignData done [12:04:55]FM_MakeSignedData done [12:04:55]CreateOFDProtocolMessage [12:04:55]wFMCommunicate request_size=4 [12:04:55]MH_SAM_APDU [12:04:55]CAPDU: 80 11 00 00 [12:04:55]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]OFD Sender: No OFD packet to send [12:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:55]Read from MH i2c: E2 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 17 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 08 [12:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:04:55]wFMCommunicate OK [12:04:55]CreateOFDProtocolMessage done [12:04:55]OFDSenderStorePacket 72834 [12:04:55]StoreOFDPacket docnum=72834 [12:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D5 73 07 01 D2 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E6 20 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1C 01 00 35 04 06 00 69 AA 5C A2 A7 3F 6F 90 24 24 BC 3C B4 23 [12:04:55]CheckFolder [12:04:55]dirname=/storage/ofd_packets [12:04:55]CheckFolder done [12:04:55]ProducePacketName [12:04:55]name=ofd_packets/00072834 [12:04:55]NVStorageSaveData ofd_packets/00072834 [12:04:55]File name is /storage/ofd_packets/00072834 [12:04:55]Write 301 bytes [12:04:55]NVStorageSaveData done [12:04:55]OFDSenderStorePacket done [12:04:55]KKMCreateOFDPacket done [12:04:55]NVStorageSaveData kkm_last_timestamp [12:04:55]File name is /storage/kkm_last_timestamp [12:04:55]Write 4 bytes [12:04:55]NVStorageSaveData done [12:04:55]ExternCall_PrintAddStr [12:04:55]wPrintStart [12:04:55]Write to MH i2c: 01 00 00 39 02 3B [12:04:55]Write i2c OK [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: 01 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: 01 07 00 [12:04:55]MH_I2C_Read... [12:04:55]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [12:04:55]RasterBufferAndPrint [12:04:55]line Счет N : (1)952405 [12:04:55]line ИНН: 02508201610067 [12:04:55]line Контрольно-Кассовый Чек [12:04:55]line ПРОДАЖА [12:04:55]line ТРК (МРК, ГНК) : 63 [12:04:55]line Товар: 2710124130 [12:04:55]line Аи-92-К-5 [12:04:55]line 7.480 * 0.00 [12:04:55]line = 0.00 [12:04:55]line НДС 12% НСП 1% [12:04:55]line > о реализуемом товаре [12:04:55]line ИТОГО: 0.00 [12:04:55]line НСП 1% : 0.00 [12:04:55]line НДС 12% : 0.00 [12:04:55]line Наличными: 0.00 [12:04:55]line Безнал.: 0.00 [12:04:55]line Место: АЗС № 113 "Партнер Нефть" [12:04:55]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:04:55]line СНО: Общий режим [12:04:55]line Чек 71 30.10.2024 12:04 [12:04:55]line Смена: 556 ФФД: 1.0 [12:04:55]line ЗНМ: 0300000087 [12:04:55]line РНМ: 0000000000091644 [12:04:55]line Версия ККМ: 001 [12:04:55]line Талоны: Топливная Карта [12:04:55]line 03047 [12:04:55]line ФМ: 0000000000874662 [12:04:55]line ФД: 72834 [12:04:55]line ФПД: 116180419520319 [12:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120454&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72834&fm=116180419520319&tin=02508201610067®Number=0000000000091644&sum=0 [12:04:56]written 0, free lines is 4095 [12:04:56]OFD Sender: Processing packet 72834 [packets to send 278, broken 277] [12:04:56]ProducePacketName [12:04:56]name=ofd_packets/00072834 [12:04:56]OFD Sender: To server: pG, [12:04:56]CommunicateWithHost lk.salyk.kg:30040 [12:04:56]ConnectInit lk.salyk.kg [12:04:56]Write to MH i2c: 01 00 00 63 02 65 [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: 01 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: 01 07 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 E2 0C 5A [12:04:56]RasterBufferAndPrint [12:04:56]line [12:04:56]line [12:04:56]line [12:04:56]line [12:04:56]line [12:04:56]written 0, free lines is 3304 [12:04:56]MH_Cut [12:04:56]Write to MH i2c: D1 01 00 6A 02 01 3E [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: D1 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: D1 01 00 [12:04:56]MH_I2C_Read... [12:04:56]Read from MH i2c: D1 01 00 6A 02 00 3D [12:04:56]Write to MH i2c: 01 00 00 6B 02 6D [12:04:56]Write i2c OK [12:04:56]MH_I2C_Read... [12:04:56]Connected sock=9 [12:04:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D5 73 07 01 D2 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 E6 20 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1C 01 00 35 04 06 00 69 AA 5C A2 A7 3F 6F 90 24 24 BC 3C B4 23 [12:04:57]*** Cut start [12:04:57]*** Partial cut [12:04:57]*** CUTSNS_PIN = 1 [12:04:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 05 0F 47 00 A0 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1C 01 00 F4 03 04 00 A0 CB 21 67 B6 04 01 00 00 5A DB 07 E9 B6 5C 3C D7 [12:04:57]CommunicateWithHost err = 0 [12:04:57]CheckOFDResponse [12:04:57]1017 (14) - 77093643461234 [12:04:57]1041 (16) - 0000000000874662 [12:04:57]1040 (4) - 72834 [12:04:57]1012 (4) - 30.10.2024 06:01 [12:04:57]1206 (1) - 0 [12:04:57]OFD Sender: Remove packet 72834 [12:04:57]ProducePacketName [12:04:57]name=ofd_packets/00072834 [12:04:57]NVStorageDeleteData [12:04:57]*** CUTSNS_PIN = 0 [12:04:57]*** Brake cut motor [12:04:57]OFD Sender: No OFD packet to send [12:04:57]Read from MH i2c: 01 [12:04:57]MH_I2C_Read... [12:04:57]*** Stop cut motor [12:04:57]*** Cut end [12:04:57]Read from MH i2c: 01 07 00 [12:04:57]MH_I2C_Read... [12:04:57]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [12:04:57]process_action close_receipt done [12:04:57]requested_data is exist [12:04:57]produce_requested_data [12:04:57]requested_item fm.sn is exist - process it [12:04:57]wFMCommunicate request_size=4 [12:04:57]MH_SAM_APDU [12:04:57]CAPDU: 80 11 00 00 [12:04:57]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [12:04:57]Write i2c OK [12:04:57]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 17 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [12:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:04:58]wFMCommunicate OK [12:04:58]requested_item fd.num is exist - process it [12:04:58]SAM_PROTO_GetFieldsCounters [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 13 00 00 [12:04:58]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 62 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 82 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [12:04:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 82 1C 01 00 0E 04 04 00 2C 02 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 [12:04:58]wFMCommunicate OK [12:04:58]SAM_PROTO_GetFieldsCounters done [12:04:58]requested_item shift.num is exist - process it [12:04:58]requested_item shift.opened is exist - process it [12:04:58]req_shift_opened [12:04:58]FM_GetShiftState [12:04:58]SAM_PROTO_GetShiftState [12:04:58]wFMCommunicate request_size=4 [12:04:58]MH_SAM_APDU [12:04:58]CAPDU: 80 13 01 00 [12:04:58]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [12:04:58]Write i2c OK [12:04:58]MH_I2C_Read... [12:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:58]Read from MH i2c: E2 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 0E 00 [12:04:58]MH_I2C_Read... [12:04:58]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 BF [12:04:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:04:58]wFMCommunicate OK [12:04:58]SAM_PROTO_GetShiftState done [12:04:58]FM_GetShiftState done [12:04:58]req_shift_opened done [12:04:58]requested_item shift.open_date is exist - process it [12:04:58]req_shift_open_date [12:04:58]req_shift_open_date done [12:04:58]produce_requested_data done [12:04:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72834,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [12:04:58]process_action_free close_receipt [12:04:58]json_value_free [12:04:58]json_value_free done [12:04:58]process_json_proto returns [12:04:58]Send response to host [12:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72834,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [12:04:58]free response buf [12:04:58]execute_script done [12:04:58]execute_script returns [12:04:58]free content buf [12:04:58]Sock 10.Close socket [12:04:58]Sock 10.Thread stoped [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]recv_with_timeout no data received [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]recv_with_timeout no data received [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:54]recv_with_timeout no data received [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:52]recv_with_timeout no data received [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:09]recv_with_timeout no data received [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:06]recv_with_timeout no data received [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:42]accept exits with 7 [12:12:42]New connection [12:12:42]New thread 3067071844 created [12:12:42]Thread 3066928484 joined [12:12:42]Waiting for new connection... [12:12:42] Sock 7.Parse request [12:12:42]Sock 7.Check first char [12:12:42]Sock 7.First char is OK [12:12:42]request: POST /json_proto HTTP/1.0 [12:12:42]Method: POST [12:12:42]URL: /json_proto [12:12:42]Method is POST - this is cgi request [12:12:42]url: /json_proto [12:12:42]query_string will be loaded in cgi processing [12:12:42]execute_cgi json_proto POST (null) [12:12:42]execute_cgi path=json_proto method=POST [12:12:42]POST find Content-Length [12:12:42]Host: 172.17.43.195:8080 [12:12:42]Content-Length: 792 [12:12:42]Content-Type: application/json [12:12:42] [12:12:42]POST finish read [12:12:42]Found Content-Length = 792 [12:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:42]execute_script... [12:12:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:42]POST & json_proto [12:12:42]process_json_proto [12:12:42]json parsed OK: [12:12:42]protocol is kg_v1.0 [12:12:42]action value=close_receipt [12:12:42]process_action close_receipt [12:12:42]cmd_close_receipt [12:12:42]MH_GetDate [12:12:42]Write to MH i2c: F0 00 00 6F 02 60 [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: F0 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: F0 09 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: F0 09 00 6F 02 00 BA 22 22 67 74 2C AD 66 81 [12:12:42]GetLastDocTimeStamp 1730289894 [12:12:42]current date 1730290362 [12:12:42]FM_GetShiftState [12:12:42]SAM_PROTO_GetShiftState [12:12:42]wFMCommunicate request_size=4 [12:12:42]MH_SAM_APDU [12:12:42]CAPDU: 80 13 01 00 [12:12:42]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:42]Read from MH i2c: E2 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 0E 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 C1 [12:12:42]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:12:42]wFMCommunicate OK [12:12:42]SAM_PROTO_GetShiftState done [12:12:42]FM_GetShiftState done [12:12:42]opened in 1730247109 [12:12:42]opened+sec_in_day 1730333509 [12:12:42]quantity*price = 0 [12:12:42]sum+1 = 1 [12:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 72 30.10.2024 12:12 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72835 ФПД: 61272204677829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121242&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72835&fm=61272204677829&tin=02508201610067®Number=0000000000091644&sum=0 [12:12:43]StoreToDocumentArchive [12:12:43]shift 556 fd 72835 [12:12:43]save to /storage/0556/doc_00072835 [12:12:43]save last doc name /storage/0556/doc_00072835 to /storage/kkm_last_doc_name [12:12:43]save OK [12:12:43]Clear old archive folders... [12:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:43]tlvbuf is 00897820 [12:12:43]SAM_PROTO_ClearQueue [12:12:43]wFMCommunicate request_size=4 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 09 00 00 [12:12:43]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [12:12:43]RAPDU: 90 00 [12:12:43]wFMCommunicate OK [12:12:43]SAM_PROTO_ClearQueue done [12:12:43]KKMCreateOFDPacket [12:12:43]OFDProtocolAddRootSTLVToBuf [12:12:43]FM_MakeSignedData [12:12:43]FM_MakeSignedData [12:12:43]SAM_PROTO_SignData [12:12:43]wFMCommunicate request_size=4 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 0D 01 02 [12:12:43]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [12:12:43]RAPDU: 90 00 [12:12:43]wFMCommunicate OK [12:12:43]wFMCommunicate request_size=255 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 48 00 00 00 F4 03 04 00 BA 22 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1C 01 00 35 04 06 00 37 [12:12:43]Write to MH i2c: E2 02 01 7F 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 66 3A 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 48 00 00 00 F4 03 04 00 BA 22 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1C 01 00 35 04 06 00 37 00 00 55 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [12:12:43]RAPDU: 90 00 [12:12:43]wFMCommunicate OK [12:12:43]wFMCommunicate request_size=10 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 0D 02 02 05 BA 0B FE 92 C5 [12:12:43]Write to MH i2c: E2 0D 00 80 02 80 0D 02 02 05 00 BA 0B FE 92 C5 00 00 20 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]OFD Sender: No OFD packet to send [12:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [12:12:43]RAPDU: 90 00 [12:12:43]wFMCommunicate OK [12:12:43]wFMCommunicate request_size=4 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 0D 03 02 [12:12:43]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 0B 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 0B 00 81 02 00 70 0D C3 54 F8 34 F4 A9 90 00 5C [12:12:43]RAPDU: 70 0D C3 54 F8 34 F4 A9 90 00 [12:12:43]wFMCommunicate OK [12:12:43]SAM_PROTO_SignData done [12:12:43]FM_MakeSignedData done [12:12:43]CreateOFDProtocolMessage [12:12:43]wFMCommunicate request_size=4 [12:12:43]MH_SAM_APDU [12:12:43]CAPDU: 80 11 00 00 [12:12:43]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:43]Read from MH i2c: E2 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 17 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [12:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:12:43]wFMCommunicate OK [12:12:43]CreateOFDProtocolMessage done [12:12:43]OFDSenderStorePacket 72835 [12:12:43]StoreOFDPacket docnum=72835 [12:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 62 10 07 01 88 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 48 00 00 00 F4 03 04 00 BA 22 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1C 01 00 35 04 06 00 37 BA 0B FE 92 C5 70 0D C3 54 F8 34 F4 A9 [12:12:43]CheckFolder [12:12:43]dirname=/storage/ofd_packets [12:12:43]CheckFolder done [12:12:43]ProducePacketName [12:12:43]name=ofd_packets/00072835 [12:12:43]NVStorageSaveData ofd_packets/00072835 [12:12:43]File name is /storage/ofd_packets/00072835 [12:12:43]Write 301 bytes [12:12:43]NVStorageSaveData done [12:12:43]OFDSenderStorePacket done [12:12:43]KKMCreateOFDPacket done [12:12:43]NVStorageSaveData kkm_last_timestamp [12:12:43]File name is /storage/kkm_last_timestamp [12:12:43]Write 4 bytes [12:12:43]NVStorageSaveData done [12:12:43]ExternCall_PrintAddStr [12:12:43]wPrintStart [12:12:43]Write to MH i2c: 01 00 00 83 02 85 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: 01 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: 01 07 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [12:12:43]RasterBufferAndPrint [12:12:43]line Счет N : (1)952406 [12:12:43]line ИНН: 02508201610067 [12:12:43]line Контрольно-Кассовый Чек [12:12:43]line ПРОДАЖА [12:12:43]line ТРК (МРК, ГНК) : 53 [12:12:43]line Товар: 2710124130 [12:12:43]line Аи-92-К-5 [12:12:43]line 14.950 * 0.00 [12:12:43]line = 0.00 [12:12:43]line НДС 12% НСП 1% [12:12:43]line > о реализуемом товаре [12:12:43]line ИТОГО: 0.00 [12:12:43]line НСП 1% : 0.00 [12:12:43]line НДС 12% : 0.00 [12:12:43]line Наличными: 0.00 [12:12:43]line Безнал.: 0.00 [12:12:43]line Место: АЗС № 113 "Партнер Нефть" [12:12:43]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:12:43]line СНО: Общий режим [12:12:43]line Чек 72 30.10.2024 12:12 [12:12:43]line Смена: 556 ФФД: 1.0 [12:12:43]line ЗНМ: 0300000087 [12:12:43]line РНМ: 0000000000091644 [12:12:43]line Версия ККМ: 001 [12:12:43]line Талоны: Топливная Карта [12:12:43]line 03047 [12:12:43]line ФМ: 0000000000874662 [12:12:43]line ФД: 72835 [12:12:43]line ФПД: 61272204677829 [12:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121242&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72835&fm=61272204677829&tin=02508201610067®Number=0000000000091644&sum=0 [12:12:44]OFD Sender: Processing packet 72835 [packets to send 278, broken 277] [12:12:44]ProducePacketName [12:12:44]name=ofd_packets/00072835 [12:12:44]OFD Sender: To server: pG, [12:12:44]CommunicateWithHost lk.salyk.kg:30040 [12:12:44]ConnectInit lk.salyk.kg [12:12:44]written 0, free lines is 4095 [12:12:44]Write to MH i2c: 01 00 00 AD 02 AF [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 07 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 E3 0C A5 [12:12:44]RasterBufferAndPrint [12:12:44]line [12:12:44]line [12:12:44]line [12:12:44]line [12:12:44]line [12:12:44]written 0, free lines is 3305 [12:12:44]MH_Cut [12:12:44]Write to MH i2c: D1 01 00 B4 02 01 88 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: D1 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: D1 01 00 [12:12:44]MH_I2C_Read... [12:12:44]Read from MH i2c: D1 01 00 B4 02 00 87 [12:12:44]Write to MH i2c: 01 00 00 B5 02 B7 [12:12:44]Write i2c OK [12:12:44]MH_I2C_Read... [12:12:44]Connected sock=10 [12:12:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 62 10 07 01 88 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 48 00 00 00 F4 03 04 00 BA 22 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1C 01 00 35 04 06 00 37 BA 0B FE 92 C5 70 0D C3 54 F8 34 F4 A9 [12:12:45]*** Cut start [12:12:45]*** Partial cut [12:12:45]*** CUTSNS_PIN = 1 [12:12:45]*** CUTSNS_PIN = 0 [12:12:45]*** Brake cut motor [12:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 38 CB 47 00 96 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1C 01 00 F4 03 04 00 74 CD 21 67 B6 04 01 00 00 81 22 DD A8 1C B3 A8 EB [12:12:45]CommunicateWithHost err = 0 [12:12:45]CheckOFDResponse [12:12:45]1017 (14) - 77093643461234 [12:12:45]1041 (16) - 0000000000874662 [12:12:45]1040 (4) - 72835 [12:12:45]1012 (4) - 30.10.2024 06:08 [12:12:45]1206 (1) - 0 [12:12:45]OFD Sender: Remove packet 72835 [12:12:45]ProducePacketName [12:12:45]name=ofd_packets/00072835 [12:12:45]NVStorageDeleteData [12:12:45]Read from MH i2c: 01 [12:12:45]MH_I2C_Read... [12:12:45]*** Stop cut motor [12:12:45]*** Cut end [12:12:45]Read from MH i2c: 01 07 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: 01 07 00 B5 02 00 00 00 00 00 FF 0F CC [12:12:45]process_action close_receipt done [12:12:45]requested_data is exist [12:12:45]produce_requested_data [12:12:45]requested_item fm.sn is exist - process it [12:12:45]wFMCommunicate request_size=4 [12:12:45]MH_SAM_APDU [12:12:45]CAPDU: 80 11 00 00 [12:12:45]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:46]Read from MH i2c: E2 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 17 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 86 [12:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:12:46]wFMCommunicate OK [12:12:46]requested_item fd.num is exist - process it [12:12:46]SAM_PROTO_GetFieldsCounters [12:12:46]wFMCommunicate request_size=4 [12:12:46]MH_SAM_APDU [12:12:46]CAPDU: 80 13 00 00 [12:12:46]Write to MH i2c: E2 08 00 B7 02 80 13 00 00 00 00 00 00 35 [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:46]Read from MH i2c: E2 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 62 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 62 00 B7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 83 1C 01 00 0E 04 04 00 2C 02 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 FC [12:12:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 83 1C 01 00 0E 04 04 00 2C 02 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 [12:12:46]wFMCommunicate OK [12:12:46]SAM_PROTO_GetFieldsCounters done [12:12:46]requested_item shift.num is exist - process it [12:12:46]requested_item shift.opened is exist - process it [12:12:46]req_shift_opened [12:12:46]FM_GetShiftState [12:12:46]SAM_PROTO_GetShiftState [12:12:46]wFMCommunicate request_size=4 [12:12:46]MH_SAM_APDU [12:12:46]CAPDU: 80 13 01 00 [12:12:46]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [12:12:46]OFD Sender: No OFD packet to send [12:12:46]Write i2c OK [12:12:46]MH_I2C_Read... [12:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:46]Read from MH i2c: E2 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 0E 00 [12:12:46]MH_I2C_Read... [12:12:46]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 09 [12:12:46]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:12:46]wFMCommunicate OK [12:12:46]SAM_PROTO_GetShiftState done [12:12:46]FM_GetShiftState done [12:12:46]req_shift_opened done [12:12:46]requested_item shift.open_date is exist - process it [12:12:46]req_shift_open_date [12:12:46]req_shift_open_date done [12:12:46]produce_requested_data done [12:12:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72835,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [12:12:46]process_action_free close_receipt [12:12:46]json_value_free [12:12:46]json_value_free done [12:12:46]process_json_proto returns [12:12:46]Send response to host [12:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72835,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [12:12:46]free response buf [12:12:46]execute_script done [12:12:46]execute_script returns [12:12:46]free content buf [12:12:46]Sock 7.Close socket [12:12:46]Sock 7.Thread stoped [12:12:51]OFD Sender: No OFD packet to send [12:12:51]recv_with_timeout no data received [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:02]recv_with_timeout no data received [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:13]recv_with_timeout no data received [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:04]recv_with_timeout no data received [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:47]accept exits with 9 [12:17:47]New connection [12:17:47]New thread 3066928484 created [12:17:47]Thread 3067071844 joined [12:17:47]Waiting for new connection... [12:17:47] Sock 9.Parse request [12:17:47]Sock 9.Check first char [12:17:47]Sock 9.First char is OK [12:17:47]request: POST /json_proto HTTP/1.0 [12:17:47]Method: POST [12:17:47]URL: /json_proto [12:17:47]Method is POST - this is cgi request [12:17:47]url: /json_proto [12:17:47]query_string will be loaded in cgi processing [12:17:47]execute_cgi json_proto POST (null) [12:17:47]execute_cgi path=json_proto method=POST [12:17:47]POST find Content-Length [12:17:47]Host: 172.17.43.195:8080 [12:17:47]Content-Length: 677 [12:17:47]Content-Type: application/json [12:17:47] [12:17:47]POST finish read [12:17:47]Found Content-Length = 677 [12:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:47]execute_script... [12:17:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:47]POST & json_proto [12:17:47]process_json_proto [12:17:47]json parsed OK: [12:17:47]protocol is kg_v1.0 [12:17:47]action value=close_receipt [12:17:47]process_action close_receipt [12:17:47]cmd_close_receipt [12:17:47]MH_GetDate [12:17:47]Write to MH i2c: F0 00 00 B9 02 AA [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: F0 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: F0 09 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: F0 09 00 B9 02 00 EC 23 22 67 74 2C AD 66 FE [12:17:47]GetLastDocTimeStamp 1730290362 [12:17:47]current date 1730290668 [12:17:47]FM_GetShiftState [12:17:47]SAM_PROTO_GetShiftState [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 13 01 00 [12:17:47]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0E 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 0B [12:17:47]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:17:47]wFMCommunicate OK [12:17:47]SAM_PROTO_GetShiftState done [12:17:47]FM_GetShiftState done [12:17:47]opened in 1730247109 [12:17:47]opened+sec_in_day 1730333509 [12:17:47]quantity*price = 30038 [12:17:47]sum+1 = 30039 [12:17:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 73 30.10.2024 12:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72836 ФПД: 4994121891534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121748&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72836&fm=4994121891534&tin=02508201610067®Number=0000000000091644&sum=30000 [12:17:48]StoreToDocumentArchive [12:17:48]shift 556 fd 72836 [12:17:48]save to /storage/0556/doc_00072836 [12:17:48]save last doc name /storage/0556/doc_00072836 to /storage/kkm_last_doc_name [12:17:48]save OK [12:17:48]Clear old archive folders... [12:17:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:48]tlvbuf is 0089E0A0 [12:17:48]SAM_PROTO_ClearQueue [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 09 00 00 [12:17:48]Write to MH i2c: E2 08 00 C7 02 80 09 00 00 00 00 00 00 3B [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [12:17:48]RAPDU: 90 00 [12:17:48]wFMCommunicate OK [12:17:48]SAM_PROTO_ClearQueue done [12:17:48]KKMCreateOFDPacket [12:17:48]OFDProtocolAddRootSTLVToBuf [12:17:48]FM_MakeSignedData [12:17:48]FM_MakeSignedData [12:17:48]SAM_PROTO_SignData [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 0D 01 02 [12:17:48]Write to MH i2c: E2 08 00 C8 02 80 0D 01 02 00 00 00 00 43 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [12:17:48]RAPDU: 90 00 [12:17:48]wFMCommunicate OK [12:17:48]wFMCommunicate request_size=255 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 EC 23 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1C 01 00 35 04 06 00 04 [12:17:48]Write to MH i2c: E2 02 01 C9 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 EC 23 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1C 01 00 35 04 06 00 04 00 00 7A [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 03 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [12:17:49]RAPDU: 90 00 [12:17:49]wFMCommunicate OK [12:17:49]wFMCommunicate request_size=10 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 0D 02 02 05 8A C8 DC 7E CE [12:17:49]Write to MH i2c: E2 0D 00 CA 02 80 0D 02 02 05 00 8A C8 DC 7E CE 00 00 CA [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 03 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [12:17:49]RAPDU: 90 00 [12:17:49]wFMCommunicate OK [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 0D 03 02 [12:17:49]Write to MH i2c: E2 08 00 CB 02 80 0D 03 02 00 00 00 00 48 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 0B 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 0B 00 CB 02 00 A4 7D E8 85 A4 59 E8 ED 90 00 A9 [12:17:49]RAPDU: A4 7D E8 85 A4 59 E8 ED 90 00 [12:17:49]wFMCommunicate OK [12:17:49]SAM_PROTO_SignData done [12:17:49]FM_MakeSignedData done [12:17:49]CreateOFDProtocolMessage [12:17:49]wFMCommunicate request_size=4 [12:17:49]MH_SAM_APDU [12:17:49]CAPDU: 80 11 00 00 [12:17:49]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:49]Read from MH i2c: E2 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 17 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9C [12:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:17:49]wFMCommunicate OK [12:17:49]CreateOFDProtocolMessage done [12:17:49]OFDSenderStorePacket 72836 [12:17:49]StoreOFDPacket docnum=72836 [12:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 84 2B 07 01 CB A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 EC 23 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1C 01 00 35 04 06 00 04 8A C8 DC 7E CE A4 7D E8 85 A4 59 E8 ED [12:17:49]CheckFolder [12:17:49]dirname=/storage/ofd_packets [12:17:49]CheckFolder done [12:17:49]ProducePacketName [12:17:49]name=ofd_packets/00072836 [12:17:49]NVStorageSaveData ofd_packets/00072836 [12:17:49]File name is /storage/ofd_packets/00072836 [12:17:49]Write 301 bytes [12:17:49]NVStorageSaveData done [12:17:49]OFDSenderStorePacket done [12:17:49]KKMCreateOFDPacket done [12:17:49]NVStorageSaveData kkm_last_timestamp [12:17:49]File name is /storage/kkm_last_timestamp [12:17:49]Write 4 bytes [12:17:49]NVStorageSaveData done [12:17:49]ExternCall_PrintAddStr [12:17:49]wPrintStart [12:17:49]Write to MH i2c: 01 00 00 CD 02 CF [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 FF 0F E4 [12:17:49]RasterBufferAndPrint [12:17:49]line Счет N : (1)952407 [12:17:49]line ИНН: 02508201610067 [12:17:49]line Контрольно-Кассовый Чек [12:17:49]line ПРОДАЖА [12:17:49]line ТРК (МРК, ГНК) : 53 [12:17:49]line Товар: 2710124130 [12:17:49]line Аи-92-К-5 [12:17:49]line 4.490 * 66.90 [12:17:49]line = 300.38 [12:17:49]line НДС 12% НСП 1% [12:17:49]line > о реализуемом товаре [12:17:49]line ОКРУГЛЕНИЕ: -0.38 [12:17:49]line ИТОГО: 300.00 [12:17:49]line Внесено: 300.00 [12:17:49]line СДАЧА: 0.00 [12:17:49]line НСП 1% : 2.66 [12:17:49]line НДС 12% : 31.90 [12:17:49]line Наличными: 300.00 [12:17:49]line Безнал.: 0.00 [12:17:49]line Место: АЗС № 113 "Партнер Нефть" [12:17:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:17:49]line СНО: Общий режим [12:17:49]line Чек 73 30.10.2024 12:17 [12:17:49]line Смена: 556 ФФД: 1.0 [12:17:49]line ЗНМ: 0300000087 [12:17:49]line РНМ: 0000000000091644 [12:17:49]line Версия ККМ: 001 [12:17:49]line ФМ: 0000000000874662 [12:17:49]line ФД: 72836 [12:17:49]line ФПД: 4994121891534 [12:17:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121748&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72836&fm=4994121891534&tin=02508201610067®Number=0000000000091644&sum=30000 [12:17:49]written 0, free lines is 4095 [12:17:49]OFD Sender: Processing packet 72836 [packets to send 278, broken 277] [12:17:49]ProducePacketName [12:17:49]name=ofd_packets/00072836 [12:17:49]OFD Sender: To server: pG, [12:17:49]CommunicateWithHost lk.salyk.kg:30040 [12:17:49]ConnectInit lk.salyk.kg [12:17:49]Write to MH i2c: 01 00 00 F8 02 FA [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 D9 0C E6 [12:17:49]RasterBufferAndPrint [12:17:49]line [12:17:49]line [12:17:49]line [12:17:49]line [12:17:49]line [12:17:49]written 0, free lines is 3296 [12:17:49]MH_Cut [12:17:49]Write to MH i2c: D1 01 00 FF 02 01 D3 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: D1 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: D1 01 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: D1 01 00 FF 02 00 D2 [12:17:49]Write to MH i2c: 01 00 00 00 03 03 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:50]*** Cut start [12:17:50]*** Partial cut [12:17:50]*** CUTSNS_PIN = 1 [12:17:50]*** CUTSNS_PIN = 0 [12:17:50]*** Brake cut motor [12:17:51]Read from MH i2c: 01 [12:17:51]MH_I2C_Read... [12:17:51]*** Stop cut motor [12:17:51]*** Cut end [12:17:51]Read from MH i2c: 01 07 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: 01 07 00 00 03 00 00 00 00 00 FF 0F 18 [12:17:51]process_action close_receipt done [12:17:51]requested_data is exist [12:17:51]produce_requested_data [12:17:51]requested_item fm.sn is exist - process it [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 11 00 00 [12:17:51]Write to MH i2c: E2 08 00 01 03 80 11 00 00 00 00 00 00 7E [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 17 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 17 00 01 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D2 [12:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:17:51]wFMCommunicate OK [12:17:51]requested_item fd.num is exist - process it [12:17:51]SAM_PROTO_GetFieldsCounters [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 13 00 00 [12:17:51]Write to MH i2c: E2 08 00 02 03 80 13 00 00 00 00 00 00 81 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 62 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 62 00 02 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 84 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [12:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 84 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_GetFieldsCounters done [12:17:51]requested_item shift.num is exist - process it [12:17:51]requested_item shift.opened is exist - process it [12:17:51]req_shift_opened [12:17:51]FM_GetShiftState [12:17:51]SAM_PROTO_GetShiftState [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 13 01 00 [12:17:51]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0E 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 55 [12:17:51]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_GetShiftState done [12:17:51]FM_GetShiftState done [12:17:51]req_shift_opened done [12:17:51]requested_item shift.open_date is exist - process it [12:17:51]req_shift_open_date [12:17:51]req_shift_open_date done [12:17:51]produce_requested_data done [12:17:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72836,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [12:17:51]process_action_free close_receipt [12:17:51]json_value_free [12:17:51]json_value_free done [12:17:51]process_json_proto returns [12:17:51]Send response to host [12:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72836,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [12:17:51]free response buf [12:17:51]execute_script done [12:17:51]execute_script returns [12:17:51]free content buf [12:17:51]Sock 9.Close socket [12:17:51]Sock 9.Thread stoped [12:17:51]recv_with_timeout no data received [12:17:52]Connected sock=11 [12:17:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 84 2B 07 01 CB A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 EC 23 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1C 01 00 35 04 06 00 04 8A C8 DC 7E CE A4 7D E8 85 A4 59 E8 ED [12:17:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 17 95 47 00 44 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1C 01 00 F4 03 04 00 A8 CE 21 67 B6 04 01 00 00 FF 3F 10 92 84 B2 20 66 [12:17:53]CommunicateWithHost err = 0 [12:17:53]CheckOFDResponse [12:17:53]1017 (14) - 77093643461234 [12:17:53]1041 (16) - 0000000000874662 [12:17:53]1040 (4) - 72836 [12:17:53]1012 (4) - 30.10.2024 06:14 [12:17:53]1206 (1) - 0 [12:17:53]OFD Sender: Remove packet 72836 [12:17:53]ProducePacketName [12:17:53]name=ofd_packets/00072836 [12:17:53]NVStorageDeleteData [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:35]accept exits with 10 [12:18:35]New connection [12:18:35]New thread 3067071844 created [12:18:35]Thread 3066928484 joined [12:18:35]Waiting for new connection... [12:18:35] Sock 10.Parse request [12:18:35]Sock 10.Check first char [12:18:35]Sock 10.First char is OK [12:18:35]request: POST /json_proto HTTP/1.0 [12:18:35]Method: POST [12:18:35]URL: /json_proto [12:18:35]Method is POST - this is cgi request [12:18:35]url: /json_proto [12:18:35]query_string will be loaded in cgi processing [12:18:35]execute_cgi json_proto POST (null) [12:18:35]execute_cgi path=json_proto method=POST [12:18:35]POST find Content-Length [12:18:35]Host: 172.17.43.195:8080 [12:18:35]Content-Length: 754 [12:18:35]Content-Type: application/json [12:18:35] [12:18:35]POST finish read [12:18:35]Found Content-Length = 754 [12:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072815", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:35]execute_script... [12:18:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072815", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:35]POST & json_proto [12:18:35]process_json_proto [12:18:35]json parsed OK: [12:18:35]protocol is kg_v1.0 [12:18:35]action value=close_receipt [12:18:35]process_action close_receipt [12:18:35]cmd_close_receipt [12:18:35]MH_GetDate [12:18:35]Write to MH i2c: F0 00 00 04 03 F6 [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: F0 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: F0 09 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: F0 09 00 04 03 00 1C 24 22 67 74 2C AD 66 7B [12:18:35]GetLastDocTimeStamp 1730290668 [12:18:35]current date 1730290716 [12:18:35]FM_GetShiftState [12:18:35]SAM_PROTO_GetShiftState [12:18:35]wFMCommunicate request_size=4 [12:18:35]MH_SAM_APDU [12:18:35]CAPDU: 80 13 01 00 [12:18:35]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:35]Read from MH i2c: E2 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 0E 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 57 [12:18:35]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:18:35]wFMCommunicate OK [12:18:35]SAM_PROTO_GetShiftState done [12:18:35]FM_GetShiftState done [12:18:35]opened in 1730247109 [12:18:35]opened+sec_in_day 1730333509 [12:18:35]quantity*price = 0 [12:18:35]sum+1 = 1 [12:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 74 30.10.2024 12:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30072815 ФМ: 0000000000874662 ФД: 72837 ФПД: 184494501199574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121836&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72837&fm=184494501199574&tin=02508201610067®Number=0000000000091644&sum=0 [12:18:37]StoreToDocumentArchive [12:18:37]shift 556 fd 72837 [12:18:37]save to /storage/0556/doc_00072837 [12:18:37]save last doc name /storage/0556/doc_00072837 to /storage/kkm_last_doc_name [12:18:37]save OK [12:18:37]Clear old archive folders... [12:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:37]tlvbuf is 0089B390 [12:18:37]SAM_PROTO_ClearQueue [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 09 00 00 [12:18:37]Write to MH i2c: E2 08 00 12 03 80 09 00 00 00 00 00 00 87 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_ClearQueue done [12:18:37]KKMCreateOFDPacket [12:18:37]OFDProtocolAddRootSTLVToBuf [12:18:37]FM_MakeSignedData [12:18:37]FM_MakeSignedData [12:18:37]SAM_PROTO_SignData [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 0D 01 02 [12:18:37]Write to MH i2c: E2 08 00 13 03 80 0D 01 02 00 00 00 00 8F [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]wFMCommunicate request_size=255 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 1C 24 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1C 01 00 35 04 06 00 A7 [12:18:37]Write to MH i2c: E2 02 01 14 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 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 4A 00 00 00 F4 03 04 00 1C 24 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1C 01 00 35 04 06 00 A7 00 00 5A [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]wFMCommunicate request_size=10 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 0D 02 02 05 CB F9 34 FE D6 [12:18:37]Write to MH i2c: E2 0D 00 15 03 80 0D 02 02 05 00 CB F9 34 FE D6 00 00 68 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [12:18:37]RAPDU: 90 00 [12:18:37]wFMCommunicate OK [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 0D 03 02 [12:18:37]Write to MH i2c: E2 08 00 16 03 80 0D 03 02 00 00 00 00 94 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0B 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0B 00 16 03 00 B1 2C FD 6F 9A 69 67 0D 90 00 55 [12:18:37]RAPDU: B1 2C FD 6F 9A 69 67 0D 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_SignData done [12:18:37]FM_MakeSignedData done [12:18:37]CreateOFDProtocolMessage [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 11 00 00 [12:18:37]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 17 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E8 [12:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:18:37]wFMCommunicate OK [12:18:37]CreateOFDProtocolMessage done [12:18:37]OFDSenderStorePacket 72837 [12:18:37]StoreOFDPacket docnum=72837 [12:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DD 48 07 01 88 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 1C 24 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1C 01 00 35 04 06 00 A7 CB F9 34 FE D6 B1 2C FD 6F 9A 69 67 0D [12:18:37]CheckFolder [12:18:37]dirname=/storage/ofd_packets [12:18:37]CheckFolder done [12:18:37]ProducePacketName [12:18:37]name=ofd_packets/00072837 [12:18:37]NVStorageSaveData ofd_packets/00072837 [12:18:37]File name is /storage/ofd_packets/00072837 [12:18:37]Write 301 bytes [12:18:37]NVStorageSaveData done [12:18:37]OFDSenderStorePacket done [12:18:37]KKMCreateOFDPacket done [12:18:37]NVStorageSaveData kkm_last_timestamp [12:18:37]File name is /storage/kkm_last_timestamp [12:18:37]Write 4 bytes [12:18:37]NVStorageSaveData done [12:18:37]ExternCall_PrintAddStr [12:18:37]wPrintStart [12:18:37]Write to MH i2c: 01 00 00 18 03 1B [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 07 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 FF 0F 30 [12:18:37]RasterBufferAndPrint [12:18:37]line Счет N : (1)952408 [12:18:37]line ИНН: 02508201610067 [12:18:37]line Контрольно-Кассовый Чек [12:18:37]line ПРОДАЖА [12:18:37]line ТРК (МРК, ГНК) : 63 [12:18:37]line Товар: 2710124130 [12:18:37]line Аи-92-К-5 [12:18:37]line 10.000 * 0.00 [12:18:37]line = 0.00 [12:18:37]line НДС 12% НСП 1% [12:18:37]line > о реализуемом товаре [12:18:37]line ИТОГО: 0.00 [12:18:37]line НСП 1% : 0.00 [12:18:37]line НДС 12% : 0.00 [12:18:37]line Наличными: 0.00 [12:18:37]line Безнал.: 0.00 [12:18:37]line Место: АЗС № 113 "Партнер Нефть" [12:18:37]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:18:37]line СНО: Общий режим [12:18:37]line Чек 74 30.10.2024 12:18 [12:18:37]line Смена: 556 ФФД: 1.0 [12:18:37]line ЗНМ: 0300000087 [12:18:37]line РНМ: 0000000000091644 [12:18:37]line Версия ККМ: 001 [12:18:37]line Талоны: ТК ГПНА Online [12:18:37]line 30072815 [12:18:37]line ФМ: 0000000000874662 [12:18:37]line ФД: 72837 [12:18:37]line ФПД: 184494501199574 [12:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T121836&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72837&fm=184494501199574&tin=02508201610067®Number=0000000000091644&sum=0 [12:18:37]written 0, free lines is 4095 [12:18:37]OFD Sender: Processing packet 72837 [packets to send 278, broken 277] [12:18:37]ProducePacketName [12:18:37]name=ofd_packets/00072837 [12:18:37]OFD Sender: To server: pG, [12:18:37]CommunicateWithHost lk.salyk.kg:30040 [12:18:37]ConnectInit lk.salyk.kg [12:18:38]Write to MH i2c: 01 00 00 42 03 45 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 07 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 DE 0C 36 [12:18:38]RasterBufferAndPrint [12:18:38]line [12:18:38]line [12:18:38]line [12:18:38]line [12:18:38]line [12:18:38]written 0, free lines is 3300 [12:18:38]MH_Cut [12:18:38]Write to MH i2c: D1 01 00 49 03 01 1E [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: D1 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: D1 01 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: D1 01 00 49 03 00 1D [12:18:38]Write to MH i2c: 01 00 00 4A 03 4D [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Connected sock=7 [12:18:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 DD 48 07 01 88 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 1C 24 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1C 01 00 35 04 06 00 A7 CB F9 34 FE D6 B1 2C FD 6F 9A 69 67 0D [12:18:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 54 25 47 00 FE 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1C 01 00 F4 03 04 00 D5 CE 21 67 B6 04 01 00 00 8C 4F 15 5B C9 84 B7 0D [12:18:38]CommunicateWithHost err = 0 [12:18:38]CheckOFDResponse [12:18:38]1017 (14) - 77093643461234 [12:18:38]1041 (16) - 0000000000874662 [12:18:38]1040 (4) - 72837 [12:18:38]1012 (4) - 30.10.2024 06:14 [12:18:38]1206 (1) - 0 [12:18:38]OFD Sender: Remove packet 72837 [12:18:38]ProducePacketName [12:18:38]name=ofd_packets/00072837 [12:18:38]NVStorageDeleteData [12:18:38]*** Cut start [12:18:38]*** Partial cut [12:18:38]*** CUTSNS_PIN = 1 [12:18:38]*** CUTSNS_PIN = 0 [12:18:39]*** Brake cut motor [12:18:39]OFD Sender: No OFD packet to send [12:18:39]Read from MH i2c: 01 [12:18:39]MH_I2C_Read... [12:18:39]*** Stop cut motor [12:18:39]*** Cut end [12:18:39]Read from MH i2c: 01 07 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 FF 0F 62 [12:18:39]process_action close_receipt done [12:18:39]requested_data is exist [12:18:39]produce_requested_data [12:18:39]requested_item fm.sn is exist - process it [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 11 00 00 [12:18:39]Write to MH i2c: E2 08 00 4B 03 80 11 00 00 00 00 00 00 C8 [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 17 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 17 00 4B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1C [12:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:18:39]wFMCommunicate OK [12:18:39]requested_item fd.num is exist - process it [12:18:39]SAM_PROTO_GetFieldsCounters [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 13 00 00 [12:18:39]Write to MH i2c: E2 08 00 4C 03 80 13 00 00 00 00 00 00 CB [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 62 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 62 00 4C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 85 1C 01 00 0E 04 04 00 2C 02 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 9A [12:18:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 85 1C 01 00 0E 04 04 00 2C 02 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 [12:18:39]wFMCommunicate OK [12:18:39]SAM_PROTO_GetFieldsCounters done [12:18:39]requested_item shift.num is exist - process it [12:18:39]requested_item shift.opened is exist - process it [12:18:39]req_shift_opened [12:18:39]FM_GetShiftState [12:18:39]SAM_PROTO_GetShiftState [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 13 01 00 [12:18:39]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 0E 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 9F [12:18:39]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:18:39]wFMCommunicate OK [12:18:39]SAM_PROTO_GetShiftState done [12:18:39]FM_GetShiftState done [12:18:39]req_shift_opened done [12:18:39]requested_item shift.open_date is exist - process it [12:18:39]req_shift_open_date [12:18:39]req_shift_open_date done [12:18:39]produce_requested_data done [12:18:39]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72837,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [12:18:39]process_action_free close_receipt [12:18:39]json_value_free [12:18:39]json_value_free done [12:18:39]process_json_proto returns [12:18:39]Send response to host [12:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72837,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [12:18:39]free response buf [12:18:39]execute_script done [12:18:39]execute_script returns [12:18:39]free content buf [12:18:39]Sock 10.Close socket [12:18:39]Sock 10.Thread stoped [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:53]recv_with_timeout no data received [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:25]recv_with_timeout no data received [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:03]accept exits with 9 [12:20:03]New connection [12:20:03]New thread 3066928484 created [12:20:03]Thread 3067071844 joined [12:20:03]Waiting for new connection... [12:20:03] Sock 9.Parse request [12:20:03]Sock 9.Check first char [12:20:03]Sock 9.First char is OK [12:20:03]request: POST /json_proto HTTP/1.0 [12:20:03]Method: POST [12:20:03]URL: /json_proto [12:20:03]Method is POST - this is cgi request [12:20:03]url: /json_proto [12:20:03]query_string will be loaded in cgi processing [12:20:03]execute_cgi json_proto POST (null) [12:20:03]execute_cgi path=json_proto method=POST [12:20:03]POST find Content-Length [12:20:03]Host: 172.17.43.195:8080 [12:20:03]Content-Length: 677 [12:20:03]Content-Type: application/json [12:20:03] [12:20:03]POST finish read [12:20:03]Found Content-Length = 677 [12:20:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:03]execute_script... [12:20: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)952409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:03]POST & json_proto [12:20:03]process_json_proto [12:20:03]json parsed OK: [12:20:03]protocol is kg_v1.0 [12:20:03]action value=close_receipt [12:20:03]process_action close_receipt [12:20:03]cmd_close_receipt [12:20:03]MH_GetDate [12:20:03]Write to MH i2c: F0 00 00 4E 03 40 [12:20:03]Write i2c OK [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: F0 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: F0 09 00 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: F0 09 00 4E 03 00 74 24 22 67 74 2C AD 66 1D [12:20:03]GetLastDocTimeStamp 1730290716 [12:20:03]current date 1730290804 [12:20:03]FM_GetShiftState [12:20:03]SAM_PROTO_GetShiftState [12:20:03]wFMCommunicate request_size=4 [12:20:03]MH_SAM_APDU [12:20:03]CAPDU: 80 13 01 00 [12:20:03]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [12:20:03]Write i2c OK [12:20:03]MH_I2C_Read... [12:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:03]Read from MH i2c: E2 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: E2 0E 00 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A1 [12:20:03]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:20:03]wFMCommunicate OK [12:20:03]SAM_PROTO_GetShiftState done [12:20:03]FM_GetShiftState done [12:20:03]opened in 1730247109 [12:20:03]opened+sec_in_day 1730333509 [12:20:03]quantity*price = 35055 [12:20:03]sum+1 = 35057 [12:20:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 75 30.10.2024 12:20 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72838 ФПД: 118178640426224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122004&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72838&fm=118178640426224&tin=02508201610067®Number=0000000000091644&sum=35000 [12:20:04]StoreToDocumentArchive [12:20:04]shift 556 fd 72838 [12:20:04]save to /storage/0556/doc_00072838 [12:20:04]save last doc name /storage/0556/doc_00072838 to /storage/kkm_last_doc_name [12:20:04]save OK [12:20:04]Clear old archive folders... [12:20:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:04]tlvbuf is 00899F40 [12:20:04]SAM_PROTO_ClearQueue [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 09 00 00 [12:20:04]Write to MH i2c: E2 08 00 5C 03 80 09 00 00 00 00 00 00 D1 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [12:20:04]RAPDU: 90 00 [12:20:04]wFMCommunicate OK [12:20:04]SAM_PROTO_ClearQueue done [12:20:04]KKMCreateOFDPacket [12:20:04]OFDProtocolAddRootSTLVToBuf [12:20:04]FM_MakeSignedData [12:20:04]FM_MakeSignedData [12:20:04]SAM_PROTO_SignData [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 0D 01 02 [12:20:04]Write to MH i2c: E2 08 00 5D 03 80 0D 01 02 00 00 00 00 D9 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [12:20:04]RAPDU: 90 00 [12:20:04]wFMCommunicate OK [12:20:04]wFMCommunicate request_size=255 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 74 24 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1C 01 00 35 04 06 00 6B [12:20:04]Write to MH i2c: E2 02 01 5E 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 74 24 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1C 01 00 35 04 06 00 6B 00 00 1B [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [12:20:05]RAPDU: 90 00 [12:20:05]wFMCommunicate OK [12:20:05]wFMCommunicate request_size=10 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 0D 02 02 05 7B 9B E1 F4 F0 [12:20:05]Write to MH i2c: E2 0D 00 5F 03 80 0D 02 02 05 00 7B 9B E1 F4 F0 00 00 C1 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [12:20:05]RAPDU: 90 00 [12:20:05]wFMCommunicate OK [12:20:05]wFMCommunicate request_size=4 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 0D 03 02 [12:20:05]Write to MH i2c: E2 08 00 60 03 80 0D 03 02 00 00 00 00 DE [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 0B 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 0B 00 60 03 00 2A 72 B1 E3 C3 C2 A5 55 90 00 8E [12:20:05]RAPDU: 2A 72 B1 E3 C3 C2 A5 55 90 00 [12:20:05]wFMCommunicate OK [12:20:05]SAM_PROTO_SignData done [12:20:05]FM_MakeSignedData done [12:20:05]CreateOFDProtocolMessage [12:20:05]wFMCommunicate request_size=4 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 11 00 00 [12:20:05]Write to MH i2c: E2 08 00 61 03 80 11 00 00 00 00 00 00 DE [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 17 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 17 00 61 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [12:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:20:05]wFMCommunicate OK [12:20:05]CreateOFDProtocolMessage done [12:20:05]OFDSenderStorePacket 72838 [12:20:05]StoreOFDPacket docnum=72838 [12:20:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0E C8 07 01 C2 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 74 24 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1C 01 00 35 04 06 00 6B 7B 9B E1 F4 F0 2A 72 B1 E3 C3 C2 A5 55 [12:20:05]CheckFolder [12:20:05]dirname=/storage/ofd_packets [12:20:05]CheckFolder done [12:20:05]ProducePacketName [12:20:05]name=ofd_packets/00072838 [12:20:05]NVStorageSaveData ofd_packets/00072838 [12:20:05]File name is /storage/ofd_packets/00072838 [12:20:05]Write 301 bytes [12:20:05]NVStorageSaveData done [12:20:05]OFDSenderStorePacket done [12:20:05]KKMCreateOFDPacket done [12:20:05]NVStorageSaveData kkm_last_timestamp [12:20:05]File name is /storage/kkm_last_timestamp [12:20:05]Write 4 bytes [12:20:05]NVStorageSaveData done [12:20:05]ExternCall_PrintAddStr [12:20:05]wPrintStart [12:20:05]Write to MH i2c: 01 00 00 62 03 65 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 62 03 00 00 00 00 00 FF 0F 7A [12:20:05]RasterBufferAndPrint [12:20:05]line Счет N : (1)952409 [12:20:05]line ИНН: 02508201610067 [12:20:05]line Контрольно-Кассовый Чек [12:20:05]line ПРОДАЖА [12:20:05]line ТРК (МРК, ГНК) : 53 [12:20:05]line Товар: 2710124130 [12:20:05]line Аи-92-К-5 [12:20:05]line 5.240 * 66.90 [12:20:05]line = 350.56 [12:20:05]line НДС 12% НСП 1% [12:20:05]line > о реализуемом товаре [12:20:05]line ОКРУГЛЕНИЕ: -0.56 [12:20:05]line ИТОГО: 350.00 [12:20:05]line Внесено: 350.00 [12:20:05]line СДАЧА: 0.00 [12:20:05]line НСП 1% : 3.10 [12:20:05]line НДС 12% : 37.23 [12:20:05]line Наличными: 350.00 [12:20:05]line Безнал.: 0.00 [12:20:05]line Место: АЗС № 113 "Партнер Нефть" [12:20:05]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:20:05]line СНО: Общий режим [12:20:05]line Чек 75 30.10.2024 12:20 [12:20:05]line Смена: 556 ФФД: 1.0 [12:20:05]line ЗНМ: 0300000087 [12:20:05]line РНМ: 0000000000091644 [12:20:05]line Версия ККМ: 001 [12:20:05]line ФМ: 0000000000874662 [12:20:05]line ФД: 72838 [12:20:05]line ФПД: 118178640426224 [12:20:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122004&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72838&fm=118178640426224&tin=02508201610067®Number=0000000000091644&sum=35000 [12:20:05]written 0, free lines is 4095 [12:20:05]OFD Sender: Processing packet 72838 [packets to send 278, broken 277] [12:20:05]ProducePacketName [12:20:05]name=ofd_packets/00072838 [12:20:05]OFD Sender: To server: pG, [12:20:05]CommunicateWithHost lk.salyk.kg:30040 [12:20:05]ConnectInit lk.salyk.kg [12:20:05]Write to MH i2c: 01 00 00 8D 03 90 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 D1 0C 74 [12:20:05]RasterBufferAndPrint [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]written 0, free lines is 3289 [12:20:05]MH_Cut [12:20:05]Write to MH i2c: D1 01 00 94 03 01 69 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: D1 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: D1 01 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: D1 01 00 94 03 00 68 [12:20:05]Write to MH i2c: 01 00 00 95 03 98 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:06]Connected sock=10 [12:20:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0E C8 07 01 C2 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 74 24 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1C 01 00 35 04 06 00 6B 7B 9B E1 F4 F0 2A 72 B1 E3 C3 C2 A5 55 [12:20:06]*** Cut start [12:20:06]*** Partial cut [12:20:06]*** CUTSNS_PIN = 1 [12:20:06]*** CUTSNS_PIN = 0 [12:20:06]*** Brake cut motor [12:20:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 61 FB 47 00 01 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1C 01 00 F4 03 04 00 2D CF 21 67 B6 04 01 00 00 F6 B9 0B 41 9E 03 41 11 [12:20:07]CommunicateWithHost err = 0 [12:20:07]CheckOFDResponse [12:20:07]1017 (14) - 77093643461234 [12:20:07]1041 (16) - 0000000000874662 [12:20:07]1040 (4) - 72838 [12:20:07]1012 (4) - 30.10.2024 06:16 [12:20:07]1206 (1) - 0 [12:20:07]OFD Sender: Remove packet 72838 [12:20:07]ProducePacketName [12:20:07]name=ofd_packets/00072838 [12:20:07]NVStorageDeleteData [12:20:07]Read from MH i2c: 01 [12:20:07]MH_I2C_Read... [12:20:07]*** Stop cut motor [12:20:07]*** Cut end [12:20:07]Read from MH i2c: 01 07 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [12:20:07]process_action close_receipt done [12:20:07]requested_data is exist [12:20:07]produce_requested_data [12:20:07]requested_item fm.sn is exist - process it [12:20:07]wFMCommunicate request_size=4 [12:20:07]MH_SAM_APDU [12:20:07]CAPDU: 80 11 00 00 [12:20:07]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:07]Read from MH i2c: E2 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 17 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 67 [12:20:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:20:07]wFMCommunicate OK [12:20:07]requested_item fd.num is exist - process it [12:20:07]SAM_PROTO_GetFieldsCounters [12:20:07]wFMCommunicate request_size=4 [12:20:07]MH_SAM_APDU [12:20:07]CAPDU: 80 13 00 00 [12:20:07]Write to MH i2c: E2 08 00 97 03 80 13 00 00 00 00 00 00 16 [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:07]Read from MH i2c: E2 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 62 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 62 00 97 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 86 1C 01 00 0E 04 04 00 2C 02 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 E9 [12:20:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 86 1C 01 00 0E 04 04 00 2C 02 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 [12:20:07]wFMCommunicate OK [12:20:07]SAM_PROTO_GetFieldsCounters done [12:20:07]requested_item shift.num is exist - process it [12:20:07]requested_item shift.opened is exist - process it [12:20:07]req_shift_opened [12:20:07]FM_GetShiftState [12:20:07]SAM_PROTO_GetShiftState [12:20:07]wFMCommunicate request_size=4 [12:20:07]MH_SAM_APDU [12:20:07]CAPDU: 80 13 01 00 [12:20:07]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:07]Read from MH i2c: E2 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 0E 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 EA [12:20:07]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:20:07]wFMCommunicate OK [12:20:07]SAM_PROTO_GetShiftState done [12:20:07]FM_GetShiftState done [12:20:07]req_shift_opened done [12:20:07]requested_item shift.open_date is exist - process it [12:20:07]req_shift_open_date [12:20:07]req_shift_open_date done [12:20:07]produce_requested_data done [12:20:07]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72838,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [12:20:07]process_action_free close_receipt [12:20:07]json_value_free [12:20:07]json_value_free done [12:20:07]process_json_proto returns [12:20:07]Send response to host [12:20:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72838,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [12:20:07]free response buf [12:20:07]execute_script done [12:20:07]execute_script returns [12:20:07]free content buf [12:20:07]Sock 9.Close socket [12:20:07]Sock 9.Thread stoped [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]recv_with_timeout no data received [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:33]recv_with_timeout no data received [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:38]recv_with_timeout no data received [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:40]recv_with_timeout no data received [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:39]recv_with_timeout no data received [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:49]recv_with_timeout no data received [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:38]recv_with_timeout no data received [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:07]recv_with_timeout no data received [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:52]recv_with_timeout no data received [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:06]recv_with_timeout no data received [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:35]recv_with_timeout no data received [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:17]recv_with_timeout no data received [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:57]recv_with_timeout no data received [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:56]recv_with_timeout no data received [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:57]accept exits with 7 [12:33:57]New connection [12:33:57]New thread 3067071844 created [12:33:57]Thread 3066928484 joined [12:33:57]Waiting for new connection... [12:33:57] Sock 7.Parse request [12:33:57]Sock 7.Check first char [12:33:57]Sock 7.First char is OK [12:33:57]request: POST /json_proto HTTP/1.0 [12:33:57]Method: POST [12:33:57]URL: /json_proto [12:33:57]Method is POST - this is cgi request [12:33:57]url: /json_proto [12:33:57]query_string will be loaded in cgi processing [12:33:57]execute_cgi json_proto POST (null) [12:33:57]execute_cgi path=json_proto method=POST [12:33:57]POST find Content-Length [12:33:57]Host: 172.17.43.195:8080 [12:33:57]Content-Length: 792 [12:33:57]Content-Type: application/json [12:33:57] [12:33:57]POST finish read [12:33:57]Found Content-Length = 792 [12:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:57]execute_script... [12:33:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:57]POST & json_proto [12:33:57]process_json_proto [12:33:57]json parsed OK: [12:33:57]protocol is kg_v1.0 [12:33:57]action value=close_receipt [12:33:57]process_action close_receipt [12:33:57]cmd_close_receipt [12:33:57]MH_GetDate [12:33:57]Write to MH i2c: F0 00 00 99 03 8B [12:33:57]Write i2c OK [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: F0 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: F0 09 00 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: F0 09 00 99 03 00 B6 27 22 67 74 2C AD 66 AD [12:33:57]GetLastDocTimeStamp 1730290804 [12:33:57]current date 1730291638 [12:33:57]FM_GetShiftState [12:33:57]SAM_PROTO_GetShiftState [12:33:57]wFMCommunicate request_size=4 [12:33:57]MH_SAM_APDU [12:33:57]CAPDU: 80 13 01 00 [12:33:57]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [12:33:57]Write i2c OK [12:33:57]MH_I2C_Read... [12:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:57]Read from MH i2c: E2 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: E2 0E 00 [12:33:57]MH_I2C_Read... [12:33:57]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 EC [12:33:57]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:33:57]wFMCommunicate OK [12:33:57]SAM_PROTO_GetShiftState done [12:33:57]FM_GetShiftState done [12:33:57]opened in 1730247109 [12:33:57]opened+sec_in_day 1730333509 [12:33:57]quantity*price = 0 [12:33:57]sum+1 = 1 [12:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 76 30.10.2024 12:33 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72839 ФПД: 121848664771304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123358&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72839&fm=121848664771304&tin=02508201610067®Number=0000000000091644&sum=0 [12:33:59]StoreToDocumentArchive [12:33:59]shift 556 fd 72839 [12:33:59]save to /storage/0556/doc_00072839 [12:33:59]save last doc name /storage/0556/doc_00072839 to /storage/kkm_last_doc_name [12:33:59]save OK [12:33:59]Clear old archive folders... [12:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:59]tlvbuf is 008997F0 [12:33:59]SAM_PROTO_ClearQueue [12:33:59]wFMCommunicate request_size=4 [12:33:59]MH_SAM_APDU [12:33:59]CAPDU: 80 09 00 00 [12:33:59]Write to MH i2c: E2 08 00 A7 03 80 09 00 00 00 00 00 00 1C [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:59]Read from MH i2c: E2 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 03 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [12:33:59]RAPDU: 90 00 [12:33:59]wFMCommunicate OK [12:33:59]SAM_PROTO_ClearQueue done [12:33:59]KKMCreateOFDPacket [12:33:59]OFDProtocolAddRootSTLVToBuf [12:33:59]FM_MakeSignedData [12:33:59]FM_MakeSignedData [12:33:59]SAM_PROTO_SignData [12:33:59]wFMCommunicate request_size=4 [12:33:59]MH_SAM_APDU [12:33:59]CAPDU: 80 0D 01 02 [12:33:59]Write to MH i2c: E2 08 00 A8 03 80 0D 01 02 00 00 00 00 24 [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:59]Read from MH i2c: E2 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 03 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [12:33:59]RAPDU: 90 00 [12:33:59]wFMCommunicate OK [12:33:59]wFMCommunicate request_size=255 [12:33:59]MH_SAM_APDU [12:33: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 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 4C 00 00 00 F4 03 04 00 B6 27 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1C 01 00 35 04 06 00 6E [12:33:59]Write to MH i2c: E2 02 01 A9 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 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 4C 00 00 00 F4 03 04 00 B6 27 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1C 01 00 35 04 06 00 6E 00 00 57 [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:59]Read from MH i2c: E2 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 03 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [12:33:59]RAPDU: 90 00 [12:33:59]wFMCommunicate OK [12:33:59]wFMCommunicate request_size=10 [12:33:59]MH_SAM_APDU [12:33:59]CAPDU: 80 0D 02 02 05 D2 1A 61 4A E8 [12:33:59]Write to MH i2c: E2 0D 00 AA 03 80 0D 02 02 05 00 D2 1A 61 4A E8 00 00 B0 [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:59]Read from MH i2c: E2 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 03 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [12:33:59]RAPDU: 90 00 [12:33:59]wFMCommunicate OK [12:33:59]wFMCommunicate request_size=4 [12:33:59]MH_SAM_APDU [12:33:59]CAPDU: 80 0D 03 02 [12:33:59]Write to MH i2c: E2 08 00 AB 03 80 0D 03 02 00 00 00 00 29 [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:59]Read from MH i2c: E2 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 0B 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 0B 00 AB 03 00 68 AA F5 73 18 1F 1B A5 90 00 9B [12:33:59]RAPDU: 68 AA F5 73 18 1F 1B A5 90 00 [12:33:59]wFMCommunicate OK [12:33:59]SAM_PROTO_SignData done [12:33:59]FM_MakeSignedData done [12:33:59]CreateOFDProtocolMessage [12:33:59]wFMCommunicate request_size=4 [12:33:59]MH_SAM_APDU [12:33:59]CAPDU: 80 11 00 00 [12:33:59]Write to MH i2c: E2 08 00 AC 03 80 11 00 00 00 00 00 00 29 [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:59]Read from MH i2c: E2 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 17 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: E2 17 00 AC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7D [12:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:33:59]wFMCommunicate OK [12:33:59]CreateOFDProtocolMessage done [12:33:59]OFDSenderStorePacket 72839 [12:33:59]StoreOFDPacket docnum=72839 [12:33:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 01 9D 07 01 5F 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 B6 27 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1C 01 00 35 04 06 00 6E D2 1A 61 4A E8 68 AA F5 73 18 1F 1B A5 [12:33:59]CheckFolder [12:33:59]dirname=/storage/ofd_packets [12:33:59]CheckFolder done [12:33:59]ProducePacketName [12:33:59]name=ofd_packets/00072839 [12:33:59]NVStorageSaveData ofd_packets/00072839 [12:33:59]File name is /storage/ofd_packets/00072839 [12:33:59]Write 301 bytes [12:33:59]NVStorageSaveData done [12:33:59]OFDSenderStorePacket done [12:33:59]KKMCreateOFDPacket done [12:33:59]NVStorageSaveData kkm_last_timestamp [12:33:59]File name is /storage/kkm_last_timestamp [12:33:59]Write 4 bytes [12:33:59]NVStorageSaveData done [12:33:59]ExternCall_PrintAddStr [12:33:59]wPrintStart [12:33:59]Write to MH i2c: 01 00 00 AD 03 B0 [12:33:59]Write i2c OK [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: 01 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: 01 07 00 [12:33:59]MH_I2C_Read... [12:33:59]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 FF 0F C5 [12:33:59]RasterBufferAndPrint [12:33:59]line Счет N : (1)952411 [12:33:59]line ИНН: 02508201610067 [12:33:59]line Контрольно-Кассовый Чек [12:33:59]line ПРОДАЖА [12:33:59]line ТРК (МРК, ГНК) : 63 [12:33:59]line Товар: 2710124130 [12:33:59]line Аи-92-К-5 [12:33:59]line 10.000 * 0.00 [12:33:59]line = 0.00 [12:33:59]line НДС 12% НСП 1% [12:33:59]line > о реализуемом товаре [12:33:59]line ИТОГО: 0.00 [12:33:59]line НСП 1% : 0.00 [12:33:59]line НДС 12% : 0.00 [12:33:59]line Наличными: 0.00 [12:33:59]line Безнал.: 0.00 [12:33:59]line Место: АЗС № 113 "Партнер Нефть" [12:33:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:33:59]line СНО: Общий режим [12:33:59]line Чек 76 30.10.2024 12:33 [12:33:59]line Смена: 556 ФФД: 1.0 [12:33:59]line ЗНМ: 0300000087 [12:33:59]line РНМ: 0000000000091644 [12:33:59]line Версия ККМ: 001 [12:33:59]line Талоны: Топливная Карта [12:33:59]line 03047 [12:33:59]line ФМ: 0000000000874662 [12:33:59]line ФД: 72839 [12:33:59]line ФПД: 121848664771304 [12:33:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123358&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72839&fm=121848664771304&tin=02508201610067®Number=0000000000091644&sum=0 [12:33:59]written 0, free lines is 4095 [12:33:59]OFD Sender: Processing packet 72839 [packets to send 278, broken 277] [12:33:59]ProducePacketName [12:33:59]name=ofd_packets/00072839 [12:33:59]OFD Sender: To server: pG, [12:33:59]CommunicateWithHost lk.salyk.kg:30040 [12:33:59]ConnectInit lk.salyk.kg [12:34:00]Write to MH i2c: 01 00 00 D7 03 DA [12:34:00]Write i2c OK [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: 01 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: 01 07 00 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: 01 07 00 D7 03 00 00 00 00 00 E5 0C D2 [12:34:00]RasterBufferAndPrint [12:34:00]line [12:34:00]line [12:34:00]line [12:34:00]line [12:34:00]line [12:34:00]written 0, free lines is 3308 [12:34:00]MH_Cut [12:34:00]Write to MH i2c: D1 01 00 DE 03 01 B3 [12:34:00]Write i2c OK [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: D1 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: D1 01 00 [12:34:00]MH_I2C_Read... [12:34:00]Read from MH i2c: D1 01 00 DE 03 00 B2 [12:34:00]Write to MH i2c: 01 00 00 DF 03 E2 [12:34:00]Write i2c OK [12:34:00]MH_I2C_Read... [12:34:00]Connected sock=6 [12:34:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 01 9D 07 01 5F 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 B6 27 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1C 01 00 35 04 06 00 6E D2 1A 61 4A E8 68 AA F5 73 18 1F 1B A5 [12:34:00]*** Cut start [12:34:00]*** Partial cut [12:34:00]*** CUTSNS_PIN = 1 [12:34:00]*** CUTSNS_PIN = 0 [12:34:01]*** Brake cut motor [12:34:01]Read from MH i2c: 01 [12:34:01]MH_I2C_Read... [12:34:01]*** Stop cut motor [12:34:01]*** Cut end [12:34:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 5F 28 47 00 4A F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1C 01 00 F4 03 04 00 70 D2 21 67 B6 04 01 00 00 31 21 C1 D4 82 DB B4 73 [12:34:01]CommunicateWithHost err = 0 [12:34:01]CheckOFDResponse [12:34:01]1017 (14) - 77093643461234 [12:34:01]1041 (16) - 0000000000874662 [12:34:01]1040 (4) - 72839 [12:34:01]1012 (4) - 30.10.2024 06:30 [12:34:01]1206 (1) - 0 [12:34:01]OFD Sender: Remove packet 72839 [12:34:01]ProducePacketName [12:34:01]name=ofd_packets/00072839 [12:34:01]NVStorageDeleteData [12:34:01]Read from MH i2c: 01 07 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 FF 0F F7 [12:34:01]process_action close_receipt done [12:34:01]requested_data is exist [12:34:01]produce_requested_data [12:34:01]requested_item fm.sn is exist - process it [12:34:01]wFMCommunicate request_size=4 [12:34:01]MH_SAM_APDU [12:34:01]CAPDU: 80 11 00 00 [12:34:01]Write to MH i2c: E2 08 00 E0 03 80 11 00 00 00 00 00 00 5D [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:01]Read from MH i2c: E2 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 17 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 17 00 E0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B1 [12:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:34:01]wFMCommunicate OK [12:34:01]requested_item fd.num is exist - process it [12:34:01]SAM_PROTO_GetFieldsCounters [12:34:01]wFMCommunicate request_size=4 [12:34:01]MH_SAM_APDU [12:34:01]CAPDU: 80 13 00 00 [12:34:01]Write to MH i2c: E2 08 00 E1 03 80 13 00 00 00 00 00 00 60 [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:01]Read from MH i2c: E2 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 62 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 62 00 E1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 87 1C 01 00 0E 04 04 00 2C 02 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 37 [12:34:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 87 1C 01 00 0E 04 04 00 2C 02 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 [12:34:01]wFMCommunicate OK [12:34:01]SAM_PROTO_GetFieldsCounters done [12:34:01]requested_item shift.num is exist - process it [12:34:01]requested_item shift.opened is exist - process it [12:34:01]req_shift_opened [12:34:01]FM_GetShiftState [12:34:01]SAM_PROTO_GetShiftState [12:34:01]wFMCommunicate request_size=4 [12:34:01]MH_SAM_APDU [12:34:01]CAPDU: 80 13 01 00 [12:34:01]Write to MH i2c: E2 08 00 E2 03 80 13 01 00 00 00 00 00 62 [12:34:01]Write i2c OK [12:34:01]MH_I2C_Read... [12:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:01]Read from MH i2c: E2 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 0E 00 [12:34:01]MH_I2C_Read... [12:34:01]Read from MH i2c: E2 0E 00 E2 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 34 [12:34:01]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:34:01]wFMCommunicate OK [12:34:01]SAM_PROTO_GetShiftState done [12:34:01]FM_GetShiftState done [12:34:01]req_shift_opened done [12:34:01]requested_item shift.open_date is exist - process it [12:34:01]req_shift_open_date [12:34:01]req_shift_open_date done [12:34:01]produce_requested_data done [12:34:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72839,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [12:34:01]process_action_free close_receipt [12:34:01]json_value_free [12:34:01]json_value_free done [12:34:01]process_json_proto returns [12:34:01]Send response to host [12:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72839,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [12:34:01]free response buf [12:34:01]execute_script done [12:34:01]execute_script returns [12:34:01]free content buf [12:34:01]Sock 7.Close socket [12:34:01]Sock 7.Thread stoped [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:24]recv_with_timeout no data received [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:16]recv_with_timeout no data received [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:43]recv_with_timeout no data received [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:01]recv_with_timeout no data received [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:02]recv_with_timeout no data received [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:09]recv_with_timeout no data received [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:33]recv_with_timeout no data received [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:55]recv_with_timeout no data received [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:47]recv_with_timeout no data received [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:40]recv_with_timeout no data received [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:37]recv_with_timeout no data received [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:01]recv_with_timeout no data received [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]recv_with_timeout no data received [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:39]recv_with_timeout no data received [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:13]accept exits with 9 [12:54:13]New connection [12:54:13]New thread 3066928484 created [12:54:13]Thread 3067071844 joined [12:54:13]Waiting for new connection... [12:54:13] Sock 9.Parse request [12:54:13]Sock 9.Check first char [12:54:13]Sock 9.First char is OK [12:54:13]request: POST /json_proto HTTP/1.0 [12:54:13]Method: POST [12:54:13]URL: /json_proto [12:54:13]Method is POST - this is cgi request [12:54:13]url: /json_proto [12:54:13]query_string will be loaded in cgi processing [12:54:13]execute_cgi json_proto POST (null) [12:54:13]execute_cgi path=json_proto method=POST [12:54:13]POST find Content-Length [12:54:13]Host: 172.17.43.195:8080 [12:54:13]Content-Length: 677 [12:54:13]Content-Type: application/json [12:54:13] [12:54:13]POST finish read [12:54:13]Found Content-Length = 677 [12:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:13]execute_script... [12:54:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:13]POST & json_proto [12:54:13]process_json_proto [12:54:13]json parsed OK: [12:54:13]protocol is kg_v1.0 [12:54:13]action value=close_receipt [12:54:13]process_action close_receipt [12:54:13]cmd_close_receipt [12:54:13]MH_GetDate [12:54:13]Write to MH i2c: F0 00 00 E3 03 D5 [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: F0 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: F0 09 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: F0 09 00 E3 03 00 76 2C 22 67 74 2C AD 66 BC [12:54:13]GetLastDocTimeStamp 1730291638 [12:54:13]current date 1730292854 [12:54:13]FM_GetShiftState [12:54:13]SAM_PROTO_GetShiftState [12:54:13]wFMCommunicate request_size=4 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 13 01 00 [12:54:13]Write to MH i2c: E2 08 00 E4 03 80 13 01 00 00 00 00 00 64 [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 0E 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 0E 00 E4 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 36 [12:54:13]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:54:13]wFMCommunicate OK [12:54:13]SAM_PROTO_GetShiftState done [12:54:13]FM_GetShiftState done [12:54:13]opened in 1730247109 [12:54:13]opened+sec_in_day 1730333509 [12:54:13]quantity*price = 20003 [12:54:13]sum+1 = 20004 [12:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 77 30.10.2024 12:54 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72840 ФПД: 143834159628694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125414&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72840&fm=143834159628694&tin=02508201610067®Number=0000000000091644&sum=20000 [12:54:14]StoreToDocumentArchive [12:54:14]shift 556 fd 72840 [12:54:14]save to /storage/0556/doc_00072840 [12:54:14]save last doc name /storage/0556/doc_00072840 to /storage/kkm_last_doc_name [12:54:14]save OK [12:54:14]Clear old archive folders... [12:54:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:14]tlvbuf is B6EDE100 [12:54:14]SAM_PROTO_ClearQueue [12:54:14]wFMCommunicate request_size=4 [12:54:14]MH_SAM_APDU [12:54:14]CAPDU: 80 09 00 00 [12:54:14]Write to MH i2c: E2 08 00 F1 03 80 09 00 00 00 00 00 00 66 [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:14]Read from MH i2c: E2 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 03 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [12:54:14]RAPDU: 90 00 [12:54:14]wFMCommunicate OK [12:54:14]SAM_PROTO_ClearQueue done [12:54:14]KKMCreateOFDPacket [12:54:14]OFDProtocolAddRootSTLVToBuf [12:54:14]FM_MakeSignedData [12:54:14]FM_MakeSignedData [12:54:14]SAM_PROTO_SignData [12:54:14]wFMCommunicate request_size=4 [12:54:14]MH_SAM_APDU [12:54:14]CAPDU: 80 0D 01 02 [12:54:14]Write to MH i2c: E2 08 00 F2 03 80 0D 01 02 00 00 00 00 6E [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:14]Read from MH i2c: E2 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 03 00 [12:54:14]MH_I2C_Read... [12:54:14]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [12:54:14]RAPDU: 90 00 [12:54:14]wFMCommunicate OK [12:54:14]wFMCommunicate request_size=255 [12:54:14]MH_SAM_APDU [12:54:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 76 2C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1C 01 00 35 04 06 00 82 [12:54:14]Write to MH i2c: E2 02 01 F3 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 76 2C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1C 01 00 35 04 06 00 82 00 00 8C [12:54:14]Write i2c OK [12:54:14]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [12:54:15]RAPDU: 90 00 [12:54:15]wFMCommunicate OK [12:54:15]wFMCommunicate request_size=10 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 0D 02 02 05 D0 FF FD C1 96 [12:54:15]Write to MH i2c: E2 0D 00 F4 03 80 0D 02 02 05 00 D0 FF FD C1 96 00 00 9E [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [12:54:15]RAPDU: 90 00 [12:54:15]wFMCommunicate OK [12:54:15]wFMCommunicate request_size=4 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 0D 03 02 [12:54:15]Write to MH i2c: E2 08 00 F5 03 80 0D 03 02 00 00 00 00 73 [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 0B 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 0B 00 F5 03 00 B6 22 B3 7D F4 D2 27 FB 90 00 64 [12:54:15]RAPDU: B6 22 B3 7D F4 D2 27 FB 90 00 [12:54:15]wFMCommunicate OK [12:54:15]SAM_PROTO_SignData done [12:54:15]FM_MakeSignedData done [12:54:15]CreateOFDProtocolMessage [12:54:15]wFMCommunicate request_size=4 [12:54:15]MH_SAM_APDU [12:54:15]CAPDU: 80 11 00 00 [12:54:15]Write to MH i2c: E2 08 00 F6 03 80 11 00 00 00 00 00 00 73 [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:15]Read from MH i2c: E2 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 17 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: E2 17 00 F6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [12:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:54:15]wFMCommunicate OK [12:54:15]CreateOFDProtocolMessage done [12:54:15]OFDSenderStorePacket 72840 [12:54:15]StoreOFDPacket docnum=72840 [12:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0D EF 07 01 A9 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 76 2C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1C 01 00 35 04 06 00 82 D0 FF FD C1 96 B6 22 B3 7D F4 D2 27 FB [12:54:15]CheckFolder [12:54:15]dirname=/storage/ofd_packets [12:54:15]CheckFolder done [12:54:15]ProducePacketName [12:54:15]name=ofd_packets/00072840 [12:54:15]NVStorageSaveData ofd_packets/00072840 [12:54:15]File name is /storage/ofd_packets/00072840 [12:54:15]Write 301 bytes [12:54:15]NVStorageSaveData done [12:54:15]OFDSenderStorePacket done [12:54:15]KKMCreateOFDPacket done [12:54:15]NVStorageSaveData kkm_last_timestamp [12:54:15]File name is /storage/kkm_last_timestamp [12:54:15]Write 4 bytes [12:54:15]NVStorageSaveData done [12:54:15]ExternCall_PrintAddStr [12:54:15]wPrintStart [12:54:15]Write to MH i2c: 01 00 00 F7 03 FA [12:54:15]Write i2c OK [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: 01 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: 01 07 00 [12:54:15]MH_I2C_Read... [12:54:15]Read from MH i2c: 01 07 00 F7 03 00 00 00 00 00 FF 0F 0F [12:54:15]RasterBufferAndPrint [12:54:15]line Счет N : (1)952413 [12:54:15]line ИНН: 02508201610067 [12:54:15]line Контрольно-Кассовый Чек [12:54:15]line ПРОДАЖА [12:54:15]line ТРК (МРК, ГНК) : 53 [12:54:15]line Товар: 2710124130 [12:54:15]line Аи-92-К-5 [12:54:15]line 2.990 * 66.90 [12:54:15]line = 200.03 [12:54:15]line НДС 12% НСП 1% [12:54:15]line > о реализуемом товаре [12:54:15]line ОКРУГЛЕНИЕ: -0.03 [12:54:15]line ИТОГО: 200.00 [12:54:15]line Внесено: 200.00 [12:54:15]line СДАЧА: 0.00 [12:54:15]line НСП 1% : 1.77 [12:54:15]line НДС 12% : 21.24 [12:54:15]line Наличными: 200.00 [12:54:15]line Безнал.: 0.00 [12:54:15]line Место: АЗС № 113 "Партнер Нефть" [12:54:15]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:54:15]line СНО: Общий режим [12:54:15]line Чек 77 30.10.2024 12:54 [12:54:15]line Смена: 556 ФФД: 1.0 [12:54:15]line ЗНМ: 0300000087 [12:54:15]line РНМ: 0000000000091644 [12:54:15]line Версия ККМ: 001 [12:54:15]line ФМ: 0000000000874662 [12:54:15]line ФД: 72840 [12:54:15]line ФПД: 143834159628694 [12:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125414&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72840&fm=143834159628694&tin=02508201610067®Number=0000000000091644&sum=20000 [12:54:15]OFD Sender: Processing packet 72840 [packets to send 278, broken 277] [12:54:15]ProducePacketName [12:54:15]name=ofd_packets/00072840 [12:54:15]OFD Sender: To server: pG, [12:54:15]CommunicateWithHost lk.salyk.kg:30040 [12:54:15]ConnectInit lk.salyk.kg [12:54:15]written 0, free lines is 4095 [12:54:16]Write to MH i2c: 01 00 00 22 04 26 [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: 01 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: 01 07 00 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 D1 0C 0A [12:54:16]RasterBufferAndPrint [12:54:16]line [12:54:16]line [12:54:16]line [12:54:16]line [12:54:16]line [12:54:16]written 0, free lines is 3286 [12:54:16]MH_Cut [12:54:16]Write to MH i2c: D1 01 00 29 04 01 FF [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: D1 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: D1 01 00 [12:54:16]MH_I2C_Read... [12:54:16]Read from MH i2c: D1 01 00 29 04 00 FE [12:54:16]Write to MH i2c: 01 00 00 2A 04 2E [12:54:16]Write i2c OK [12:54:16]MH_I2C_Read... [12:54:16]*** Cut start [12:54:16]*** Partial cut [12:54:16]*** CUTSNS_PIN = 1 [12:54:17]*** CUTSNS_PIN = 0 [12:54:17]*** Brake cut motor [12:54:17]Read from MH i2c: 01 [12:54:17]MH_I2C_Read... [12:54:17]*** Stop cut motor [12:54:17]*** Cut end [12:54:17]Read from MH i2c: 01 07 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 FF 0F 43 [12:54:17]process_action close_receipt done [12:54:17]requested_data is exist [12:54:17]produce_requested_data [12:54:17]requested_item fm.sn is exist - process it [12:54:17]wFMCommunicate request_size=4 [12:54:17]MH_SAM_APDU [12:54:17]CAPDU: 80 11 00 00 [12:54:17]Write to MH i2c: E2 08 00 2B 04 80 11 00 00 00 00 00 00 A9 [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:17]Read from MH i2c: E2 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 17 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 17 00 2B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FD [12:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:54:17]wFMCommunicate OK [12:54:17]requested_item fd.num is exist - process it [12:54:17]SAM_PROTO_GetFieldsCounters [12:54:17]wFMCommunicate request_size=4 [12:54:17]MH_SAM_APDU [12:54:17]CAPDU: 80 13 00 00 [12:54:17]Write to MH i2c: E2 08 00 2C 04 80 13 00 00 00 00 00 00 AC [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:17]Read from MH i2c: E2 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 62 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 62 00 2C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 88 1C 01 00 0E 04 04 00 2C 02 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 87 [12:54:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 88 1C 01 00 0E 04 04 00 2C 02 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 [12:54:17]wFMCommunicate OK [12:54:17]SAM_PROTO_GetFieldsCounters done [12:54:17]requested_item shift.num is exist - process it [12:54:17]requested_item shift.opened is exist - process it [12:54:17]req_shift_opened [12:54:17]FM_GetShiftState [12:54:17]SAM_PROTO_GetShiftState [12:54:17]wFMCommunicate request_size=4 [12:54:17]MH_SAM_APDU [12:54:17]CAPDU: 80 13 01 00 [12:54:17]Write to MH i2c: E2 08 00 2D 04 80 13 01 00 00 00 00 00 AE [12:54:17]Write i2c OK [12:54:17]MH_I2C_Read... [12:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:17]Read from MH i2c: E2 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 0E 00 [12:54:17]MH_I2C_Read... [12:54:17]Read from MH i2c: E2 0E 00 2D 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 80 [12:54:17]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:54:17]wFMCommunicate OK [12:54:17]SAM_PROTO_GetShiftState done [12:54:17]FM_GetShiftState done [12:54:17]req_shift_opened done [12:54:17]requested_item shift.open_date is exist - process it [12:54:17]req_shift_open_date [12:54:17]req_shift_open_date done [12:54:17]produce_requested_data done [12:54:17]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72840,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [12:54:17]process_action_free close_receipt [12:54:17]json_value_free [12:54:17]json_value_free done [12:54:17]process_json_proto returns [12:54:17]Send response to host [12:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72840,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [12:54:17]free response buf [12:54:17]execute_script done [12:54:17]execute_script returns [12:54:17]free content buf [12:54:17]Sock 9.Close socket [12:54:17]Sock 9.Thread stoped [12:54:19]Connected sock=11 [12:54:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0D EF 07 01 A9 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 76 2C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1C 01 00 35 04 06 00 82 D0 FF FD C1 96 B6 22 B3 7D F4 D2 27 FB [12:54:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 33 E1 47 00 B4 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 38 37 34 36 36 32 10 04 04 00 88 1C 01 00 F4 03 04 00 32 D7 21 67 B6 04 01 00 00 E5 2C 1F 89 FB 17 91 81 [12:54:19]CommunicateWithHost err = 0 [12:54:19]CheckOFDResponse [12:54:19]1017 (14) - 77093643461234 [12:54:19]1041 (16) - 0000000000874662 [12:54:19]1040 (4) - 72840 [12:54:19]1012 (4) - 30.10.2024 06:50 [12:54:19]1206 (1) - 0 [12:54:19]OFD Sender: Remove packet 72840 [12:54:19]ProducePacketName [12:54:19]name=ofd_packets/00072840 [12:54:19]NVStorageDeleteData [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:39]recv_with_timeout no data received [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:55:58]recv_with_timeout no data received [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:56:56]recv_with_timeout no data received [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:23]accept exits with 7 [12:57:23]New connection [12:57:23]New thread 3067071844 created [12:57:23]Thread 3066928484 joined [12:57:23]Waiting for new connection... [12:57:23] Sock 7.Parse request [12:57:23]Sock 7.Check first char [12:57:23]Sock 7.First char is OK [12:57:23]request: POST /json_proto HTTP/1.0 [12:57:23]Method: POST [12:57:23]URL: /json_proto [12:57:23]Method is POST - this is cgi request [12:57:23]url: /json_proto [12:57:23]query_string will be loaded in cgi processing [12:57:23]execute_cgi json_proto POST (null) [12:57:23]execute_cgi path=json_proto method=POST [12:57:23]POST find Content-Length [12:57:23]Host: 172.17.43.195:8080 [12:57:23]Content-Length: 682 [12:57:23]Content-Type: application/json [12:57:23] [12:57:23]POST finish read [12:57:23]Found Content-Length = 682 [12:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:23]execute_script... [12:57:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:23]POST & json_proto [12:57:23]process_json_proto [12:57:23]json parsed OK: [12:57:23]protocol is kg_v1.0 [12:57:23]action value=close_receipt [12:57:23]process_action close_receipt [12:57:23]cmd_close_receipt [12:57:23]MH_GetDate [12:57:23]Write to MH i2c: F0 00 00 2E 04 21 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: F0 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: F0 09 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: F0 09 00 2E 04 00 34 2D 22 67 74 2C AD 66 C7 [12:57:23]GetLastDocTimeStamp 1730292854 [12:57:23]current date 1730293044 [12:57:23]FM_GetShiftState [12:57:23]SAM_PROTO_GetShiftState [12:57:23]wFMCommunicate request_size=4 [12:57:23]MH_SAM_APDU [12:57:23]CAPDU: 80 13 01 00 [12:57:23]Write to MH i2c: E2 08 00 2F 04 80 13 01 00 00 00 00 00 B0 [12:57:23]Write i2c OK [12:57:23]MH_I2C_Read... [12:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:23]Read from MH i2c: E2 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 0E 00 [12:57:23]MH_I2C_Read... [12:57:23]Read from MH i2c: E2 0E 00 2F 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 82 [12:57:23]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [12:57:23]wFMCommunicate OK [12:57:23]SAM_PROTO_GetShiftState done [12:57:23]FM_GetShiftState done [12:57:23]opened in 1730247109 [12:57:23]opened+sec_in_day 1730333509 [12:57:23]quantity*price = 250054 [12:57:23]sum+1 = 250055 [12:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре [13:02:12]line ОКРУГЛЕНИЕ: -0.54 [13:02:12]line ИТОГО: 2500.00 [13:02:12]line Внесено: 2500.00 [13:02:12]line СДАЧА: 0.00 [13:02:12]line НСП 1% : 22.13 [13:02:12]line НДС 12% : 265.54 [13:02:12]line Наличными: 2500.00 [13:02:12]line Безнал.: 0.00 [13:02:12]line Место: АЗС № 113 "Партнер Нефть" [13:02:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:02:12]line СНО: Общий режим [13:02:12]line Чек 78 30.10.2024 12:57 [13:02:12]line Смена: 556 ФФД: 1.0 [13:02:12]line ЗНМ: 0300000087 [13:02:12]line РНМ: 0000000000091644 [13:02:12]line Версия ККМ: 001 [13:02:12]line ФМ: 0000000000874662 [13:02:12]line ФД: 72841 [13:02:12]line ФПД: 230868019508565 [13:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125724&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72841&fm=230868019508565&tin=02508201610067®Number=0000000000091644&sum=250000 [13:02:12]written 0, free lines is 4095 [13:02:12]Write to MH i2c: 01 00 00 48 00 48 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E3 0C 3E [13:02:12]RasterBufferAndPrint [13:02:12]line [13:02:12]line [13:02:12]line [13:02:12]line [13:02:12]line [13:02:12]written 0, free lines is 3314 [13:02:12]MH_Cut [13:02:12]Write to MH i2c: D1 01 00 4F 00 01 21 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: D1 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: D1 01 00 [13:02:12]MH_I2C_Read... [13:02:12]Read from MH i2c: D1 01 00 4F 00 00 20 [13:02:12]Write to MH i2c: 01 00 00 50 00 50 [13:02:12]Write i2c OK [13:02:12]MH_I2C_Read... [13:02:12]ConnectInit Can't take IP for lk.salyk.kg [13:02:12]CommunicateWithHost connect error [13:02:12]CommunicateWithHost err = -1 [13:02:12]OFD Sender: Server communicate error [13:02:13]*** Cut start [13:02:13]*** Partial cut [13:02:13]*** CUTSNS_PIN = 1 [13:02:13]*** CUTSNS_PIN = 0 [13:02:13]*** Brake cut motor [13:02:14]Read from MH i2c: 01 [13:02:14]MH_I2C_Read... [13:02:14]*** Stop cut motor [13:02:14]*** Cut end [13:02:14]Read from MH i2c: 01 07 00 [13:02:14]MH_I2C_Read... [13:02:14]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [13:02:14]process_action print_doc done [13:02:14]requested_data is exist [13:02:14]produce_requested_data [13:02:14]produce_requested_data return (null) [13:02:14]process_action_free print_doc [13:02:14]json_value_free [13:02:14]json_value_free done [13:02:14]process_json_proto returns [13:02:14]Send response to host [13:02:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [13:02:14]free response buf [13:02:14]execute_script done [13:02:14]execute_script returns [13:02:14]free content buf [13:02:14]Sock 9.Close socket [13:02:14]Sock 9.Thread stoped [13:02:17]OFD Sender: Processing packet 72841 [packets to send 278, broken 277] [13:02:17]ProducePacketName [13:02:17]name=ofd_packets/00072841 [13:02:17]OFD Sender: To server: pG, [13:02:17]CommunicateWithHost lk.salyk.kg:30040 [13:02:17]ConnectInit lk.salyk.kg [13:02:18]recv_with_timeout no data received [13:02:22]ConnectInit Can't take IP for lk.salyk.kg [13:02:22]CommunicateWithHost connect error [13:02:22]CommunicateWithHost err = -1 [13:02:22]OFD Sender: Server communicate error [13:02:27]OFD Sender: Processing packet 72841 [packets to send 278, broken 277] [13:02:27]ProducePacketName [13:02:27]name=ofd_packets/00072841 [13:02:27]OFD Sender: To server: pG, [13:02:27]CommunicateWithHost lk.salyk.kg:30040 [13:02:27]ConnectInit lk.salyk.kg [13:02:28]Connected sock=7 [13:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 71 4D 07 01 2F AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 34 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 89 1C 01 00 35 04 06 00 D1 F9 26 4A F5 55 CF 7E 98 98 EF 24 1F 59 [13:02:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6A A5 47 00 F5 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 38 37 34 36 36 32 10 04 04 00 89 1C 01 00 F4 03 04 00 1B D9 21 67 B6 04 01 00 00 1E 11 1C A2 E8 EA 8E 81 [13:02:29]CommunicateWithHost err = 0 [13:02:29]CheckOFDResponse [13:02:29]1017 (14) - 77093643461234 [13:02:29]1041 (16) - 0000000000874662 [13:02:29]1040 (4) - 72841 [13:02:29]1012 (4) - 30.10.2024 06:58 [13:02:29]1206 (1) - 0 [13:02:29]OFD Sender: Remove packet 72841 [13:02:29]ProducePacketName [13:02:29]name=ofd_packets/00072841 [13:02:29]NVStorageDeleteData [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:25]accept exits with 11 [13:03:25]New connection [13:03:25]New thread 3066551652 created [13:03:25]Thread 3066695012 joined [13:03:25]Waiting for new connection... [13:03:25] Sock 11.Parse request [13:03:25]Sock 11.Check first char [13:03:25]Sock 11.First char is OK [13:03:25]request: POST /json_proto HTTP/1.0 [13:03:25]Method: POST [13:03:25]URL: /json_proto [13:03:25]Method is POST - this is cgi request [13:03:25]url: /json_proto [13:03:25]query_string will be loaded in cgi processing [13:03:25]execute_cgi json_proto POST (null) [13:03:25]execute_cgi path=json_proto method=POST [13:03:25]POST find Content-Length [13:03:25]Host: 172.17.43.195:8080 [13:03:25]Content-Length: 792 [13:03:25]Content-Type: application/json [13:03:25] [13:03:25]POST finish read [13:03:25]Found Content-Length = 792 [13:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952415", "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" : 25.400, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:25]execute_script... [13:03:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952415", "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" : 25.400, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:25]POST & json_proto [13:03:25]process_json_proto [13:03:25]json parsed OK: [13:03:25]protocol is kg_v1.0 [13:03:25]action value=close_receipt [13:03:25]process_action close_receipt [13:03:25]cmd_close_receipt [13:03:25]MH_GetDate [13:03:25]Write to MH i2c: F0 00 00 51 00 40 [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: F0 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: F0 09 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: F0 09 00 51 00 00 9D 2E 22 67 74 2C AD 66 50 [13:03:25]GetLastDocTimeStamp 1730293044 [13:03:25]current date 1730293405 [13:03:25]FM_GetShiftState [13:03:25]SAM_PROTO_GetShiftState [13:03:25]wFMCommunicate request_size=4 [13:03:25]MH_SAM_APDU [13:03:25]CAPDU: 80 13 01 00 [13:03:25]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [13:03:25]Write i2c OK [13:03:25]MH_I2C_Read... [13:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:25]Read from MH i2c: E2 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 0E 00 [13:03:25]MH_I2C_Read... [13:03:25]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A1 [13:03:25]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:03:25]wFMCommunicate OK [13:03:25]SAM_PROTO_GetShiftState done [13:03:25]FM_GetShiftState done [13:03:25]opened in 1730247109 [13:03:25]opened+sec_in_day 1730333509 [13:03:25]quantity*price = 0 [13:03:25]sum+1 = 1 [13:03:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 79 30.10.2024 13:03 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72842 ФПД: 73997581381760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130325&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72842&fm=73997581381760&tin=02508201610067®Number=0000000000091644&sum=0 [13:03:26]StoreToDocumentArchive [13:03:26]shift 556 fd 72842 [13:03:26]save to /storage/0556/doc_00072842 [13:03:26]save last doc name /storage/0556/doc_00072842 to /storage/kkm_last_doc_name [13:03:26]save OK [13:03:26]Clear old archive folders... [13:03:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:26]tlvbuf is 00E3B350 [13:03:26]SAM_PROTO_ClearQueue [13:03:26]wFMCommunicate request_size=4 [13:03:26]MH_SAM_APDU [13:03:26]CAPDU: 80 09 00 00 [13:03:26]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [13:03:26]RAPDU: 90 00 [13:03:26]wFMCommunicate OK [13:03:26]SAM_PROTO_ClearQueue done [13:03:26]KKMCreateOFDPacket [13:03:26]OFDProtocolAddRootSTLVToBuf [13:03:26]FM_MakeSignedData [13:03:26]FM_MakeSignedData [13:03:26]SAM_PROTO_SignData [13:03:26]wFMCommunicate request_size=4 [13:03:26]MH_SAM_APDU [13:03:26]CAPDU: 80 0D 01 02 [13:03:26]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [13:03:26]RAPDU: 90 00 [13:03:26]wFMCommunicate OK [13:03:26]wFMCommunicate request_size=255 [13:03:26]MH_SAM_APDU [13:03:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 63 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 4F 00 00 00 F4 03 04 00 9D 2E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1C 01 00 35 04 06 00 43 [13:03:26]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 63 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 4F 00 00 00 F4 03 04 00 9D 2E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1C 01 00 35 04 06 00 43 00 00 39 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [13:03:26]RAPDU: 90 00 [13:03:26]wFMCommunicate OK [13:03:26]wFMCommunicate request_size=10 [13:03:26]MH_SAM_APDU [13:03:26]CAPDU: 80 0D 02 02 05 4C E7 8D 70 80 [13:03:26]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 4C E7 8D 70 80 00 00 96 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [13:03:26]RAPDU: 90 00 [13:03:26]wFMCommunicate OK [13:03:26]wFMCommunicate request_size=4 [13:03:26]MH_SAM_APDU [13:03:26]CAPDU: 80 0D 03 02 [13:03:26]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 0B 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 0B 00 63 00 00 10 EA 61 59 A0 0C 36 E0 90 00 55 [13:03:26]RAPDU: 10 EA 61 59 A0 0C 36 E0 90 00 [13:03:26]wFMCommunicate OK [13:03:26]SAM_PROTO_SignData done [13:03:26]FM_MakeSignedData done [13:03:26]CreateOFDProtocolMessage [13:03:26]wFMCommunicate request_size=4 [13:03:26]MH_SAM_APDU [13:03:26]CAPDU: 80 11 00 00 [13:03:26]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:26]Read from MH i2c: E2 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 17 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [13:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:03:26]wFMCommunicate OK [13:03:26]CreateOFDProtocolMessage done [13:03:26]OFDSenderStorePacket 72842 [13:03:26]StoreOFDPacket docnum=72842 [13:03:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CC 0C 07 01 46 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 63 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 4F 00 00 00 F4 03 04 00 9D 2E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1C 01 00 35 04 06 00 43 4C E7 8D 70 80 10 EA 61 59 A0 0C 36 E0 [13:03:26]CheckFolder [13:03:26]dirname=/storage/ofd_packets [13:03:26]CheckFolder done [13:03:26]ProducePacketName [13:03:26]name=ofd_packets/00072842 [13:03:26]NVStorageSaveData ofd_packets/00072842 [13:03:26]File name is /storage/ofd_packets/00072842 [13:03:26]Write 301 bytes [13:03:26]NVStorageSaveData done [13:03:26]OFDSenderStorePacket done [13:03:26]KKMCreateOFDPacket done [13:03:26]NVStorageSaveData kkm_last_timestamp [13:03:26]File name is /storage/kkm_last_timestamp [13:03:26]Write 4 bytes [13:03:26]NVStorageSaveData done [13:03:26]ExternCall_PrintAddStr [13:03:26]wPrintStart [13:03:26]Write to MH i2c: 01 00 00 65 00 65 [13:03:26]Write i2c OK [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 07 00 [13:03:26]MH_I2C_Read... [13:03:26]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [13:03:26]RasterBufferAndPrint [13:03:26]line Счет N : (1)952415 [13:03:26]line ИНН: 02508201610067 [13:03:26]line Контрольно-Кассовый Чек [13:03:26]line ПРОДАЖА [13:03:26]line ТРК (МРК, ГНК) : 42 [13:03:26]line Товар: 2710124130 [13:03:26]line Аи-92-К-5 [13:03:26]line 25.400 * 0.00 [13:03:26]line = 0.00 [13:03:26]line НДС 12% НСП 1% [13:03:26]line > о реализуемом товаре [13:03:26]line ИТОГО: 0.00 [13:03:26]line НСП 1% : 0.00 [13:03:26]line НДС 12% : 0.00 [13:03:26]line Наличными: 0.00 [13:03:26]line Безнал.: 0.00 [13:03:26]line Место: АЗС № 113 "Партнер Нефть" [13:03:26]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:03:26]line СНО: Общий режим [13:03:26]line Чек 79 30.10.2024 13:03 [13:03:26]line Смена: 556 ФФД: 1.0 [13:03:26]line ЗНМ: 0300000087 [13:03:26]line РНМ: 0000000000091644 [13:03:26]line Версия ККМ: 001 [13:03:26]line Талоны: Топливная Карта [13:03:26]line 03047 [13:03:26]line ФМ: 0000000000874662 [13:03:26]line ФД: 72842 [13:03:26]line ФПД: 73997581381760 [13:03:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130325&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72842&fm=73997581381760&tin=02508201610067®Number=0000000000091644&sum=0 [13:03:26]written 0, free lines is 4095 [13:03:26]OFD Sender: Processing packet 72842 [packets to send 278, broken 277] [13:03:26]ProducePacketName [13:03:26]name=ofd_packets/00072842 [13:03:26]OFD Sender: To server: pG, [13:03:26]CommunicateWithHost lk.salyk.kg:30040 [13:03:26]ConnectInit lk.salyk.kg [13:03:27]Write to MH i2c: 01 00 00 8F 00 8F [13:03:27]Write i2c OK [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: 01 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: 01 07 00 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 DE 0C 80 [13:03:27]RasterBufferAndPrint [13:03:27]line [13:03:27]line [13:03:27]line [13:03:27]line [13:03:27]line [13:03:27]written 0, free lines is 3300 [13:03:27]MH_Cut [13:03:27]Write to MH i2c: D1 01 00 96 00 01 68 [13:03:27]Write i2c OK [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: D1 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: D1 01 00 [13:03:27]MH_I2C_Read... [13:03:27]Read from MH i2c: D1 01 00 96 00 00 67 [13:03:27]Write to MH i2c: 01 00 00 97 00 97 [13:03:27]Write i2c OK [13:03:27]MH_I2C_Read... [13:03:27]*** Cut start [13:03:27]*** Partial cut [13:03:27]*** CUTSNS_PIN = 1 [13:03:27]*** CUTSNS_PIN = 0 [13:03:28]*** Brake cut motor [13:03:28]Read from MH i2c: 01 [13:03:28]MH_I2C_Read... [13:03:28]*** Stop cut motor [13:03:28]*** Cut end [13:03:28]Read from MH i2c: 01 07 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [13:03:28]process_action close_receipt done [13:03:28]requested_data is exist [13:03:28]produce_requested_data [13:03:28]requested_item fm.sn is exist - process it [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 11 00 00 [13:03:28]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 17 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [13:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:03:28]wFMCommunicate OK [13:03:28]requested_item fd.num is exist - process it [13:03:28]SAM_PROTO_GetFieldsCounters [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 13 00 00 [13:03:28]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 62 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8A 1C 01 00 0E 04 04 00 2C 02 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 F8 [13:03:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8A 1C 01 00 0E 04 04 00 2C 02 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 [13:03:28]wFMCommunicate OK [13:03:28]SAM_PROTO_GetFieldsCounters done [13:03:28]requested_item shift.num is exist - process it [13:03:28]requested_item shift.opened is exist - process it [13:03:28]req_shift_opened [13:03:28]FM_GetShiftState [13:03:28]SAM_PROTO_GetShiftState [13:03:28]wFMCommunicate request_size=4 [13:03:28]MH_SAM_APDU [13:03:28]CAPDU: 80 13 01 00 [13:03:28]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [13:03:28]Write i2c OK [13:03:28]MH_I2C_Read... [13:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:28]Read from MH i2c: E2 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0E 00 [13:03:28]MH_I2C_Read... [13:03:28]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E9 [13:03:28]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:03:28]wFMCommunicate OK [13:03:28]SAM_PROTO_GetShiftState done [13:03:28]FM_GetShiftState done [13:03:28]req_shift_opened done [13:03:28]requested_item shift.open_date is exist - process it [13:03:28]req_shift_open_date [13:03:28]req_shift_open_date done [13:03:28]produce_requested_data done [13:03:28]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72842,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [13:03:28]process_action_free close_receipt [13:03:28]json_value_free [13:03:28]json_value_free done [13:03:28]process_json_proto returns [13:03:28]Send response to host [13:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72842,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [13:03:28]free response buf [13:03:28]execute_script done [13:03:28]execute_script returns [13:03:28]free content buf [13:03:28]Sock 11.Close socket [13:03:28]Sock 11.Thread stoped [13:03:30]Connected sock=10 [13:03:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CC 0C 07 01 46 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 63 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 4F 00 00 00 F4 03 04 00 9D 2E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1C 01 00 35 04 06 00 43 4C E7 8D 70 80 10 EA 61 59 A0 0C 36 E0 [13:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 28 E2 47 00 4B 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 38 37 34 36 36 32 10 04 04 00 8A 1C 01 00 F4 03 04 00 59 D9 21 67 B6 04 01 00 00 06 5F 0C DF CC 5C DB B8 [13:03:32]CommunicateWithHost err = 0 [13:03:32]CheckOFDResponse [13:03:32]1017 (14) - 77093643461234 [13:03:32]1041 (16) - 0000000000874662 [13:03:32]1040 (4) - 72842 [13:03:32]1012 (4) - 30.10.2024 06:59 [13:03:32]1206 (1) - 0 [13:03:32]OFD Sender: Remove packet 72842 [13:03:32]ProducePacketName [13:03:32]name=ofd_packets/00072842 [13:03:32]NVStorageDeleteData [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:51]recv_with_timeout no data received [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:06]recv_with_timeout no data received [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:37]recv_with_timeout no data received [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:09]recv_with_timeout no data received [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:30]recv_with_timeout no data received [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:01]recv_with_timeout no data received [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:12]recv_with_timeout no data received [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:35]recv_with_timeout no data received [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:54]recv_with_timeout no data received [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:50]recv_with_timeout no data received [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:10:59]recv_with_timeout no data received [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:17]recv_with_timeout no data received [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:23]recv_with_timeout no data received [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:39]recv_with_timeout no data received [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:28]recv_with_timeout no data received [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]recv_with_timeout no data received [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:06]recv_with_timeout no data received [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:30]recv_with_timeout no data received [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:08]recv_with_timeout no data received [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:27]recv_with_timeout no data received [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:19]recv_with_timeout no data received [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:38]recv_with_timeout no data received [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:22:58]recv_with_timeout no data received [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:28]recv_with_timeout no data received [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:23:55]recv_with_timeout no data received [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:05]accept exits with 9 [13:24:05]New connection [13:24:05]New thread 3066695012 created [13:24:05]Thread 3066551652 joined [13:24:05]Waiting for new connection... [13:24:05] Sock 9.Parse request [13:24:05]Sock 9.Check first char [13:24:05]Sock 9.First char is OK [13:24:05]request: POST /json_proto HTTP/1.0 [13:24:05]Method: POST [13:24:05]URL: /json_proto [13:24:05]Method is POST - this is cgi request [13:24:05]url: /json_proto [13:24:05]query_string will be loaded in cgi processing [13:24:05]execute_cgi json_proto POST (null) [13:24:05]execute_cgi path=json_proto method=POST [13:24:05]POST find Content-Length [13:24:05]Host: 172.17.43.195:8080 [13:24:05]Content-Length: 677 [13:24:05]Content-Type: application/json [13:24:05] [13:24:05]POST finish read [13:24:05]Found Content-Length = 677 [13:24:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:05]execute_script... [13:24:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:05]POST & json_proto [13:24:05]process_json_proto [13:24:05]json parsed OK: [13:24:05]protocol is kg_v1.0 [13:24:05]action value=close_receipt [13:24:05]process_action close_receipt [13:24:05]cmd_close_receipt [13:24:05]MH_GetDate [13:24:05]Write to MH i2c: F0 00 00 9B 00 8A [13:24:05]Write i2c OK [13:24:05]MH_I2C_Read... [13:24:05]Read from MH i2c: F0 [13:24:05]MH_I2C_Read... [13:24:05]Read from MH i2c: F0 09 00 [13:24:05]MH_I2C_Read... [13:24:05]Read from MH i2c: F0 09 00 9B 00 00 76 33 22 67 74 2C AD 66 78 [13:24:05]GetLastDocTimeStamp 1730293405 [13:24:05]current date 1730294646 [13:24:05]FM_GetShiftState [13:24:05]SAM_PROTO_GetShiftState [13:24:05]wFMCommunicate request_size=4 [13:24:05]MH_SAM_APDU [13:24:05]CAPDU: 80 13 01 00 [13:24:05]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [13:24:05]Write i2c OK [13:24:05]MH_I2C_Read... [13:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:06]Read from MH i2c: E2 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 0E 00 [13:24:06]MH_I2C_Read... [13:24:06]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 EB [13:24:06]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:24:06]wFMCommunicate OK [13:24:06]SAM_PROTO_GetShiftState done [13:24:06]FM_GetShiftState done [13:24:06]opened in 1730247109 [13:24:06]opened+sec_in_day 1730333509 [13:24:06]quantity*price = 50041 [13:24:06]sum+1 = 50042 [13:24:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 80 30.10.2024 13:24 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72843 ФПД: 244512681464466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132406&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72843&fm=244512681464466&tin=02508201610067®Number=0000000000091644&sum=50000 [13:24:07]StoreToDocumentArchive [13:24:07]shift 556 fd 72843 [13:24:07]save to /storage/0556/doc_00072843 [13:24:07]save last doc name /storage/0556/doc_00072843 to /storage/kkm_last_doc_name [13:24:07]save OK [13:24:07]Clear old archive folders... [13:24:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:07]tlvbuf is 00E4C6A0 [13:24:07]SAM_PROTO_ClearQueue [13:24:07]wFMCommunicate request_size=4 [13:24:07]MH_SAM_APDU [13:24:07]CAPDU: 80 09 00 00 [13:24:07]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:07]Read from MH i2c: E2 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 03 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [13:24:07]RAPDU: 90 00 [13:24:07]wFMCommunicate OK [13:24:07]SAM_PROTO_ClearQueue done [13:24:07]KKMCreateOFDPacket [13:24:07]OFDProtocolAddRootSTLVToBuf [13:24:07]FM_MakeSignedData [13:24:07]FM_MakeSignedData [13:24:07]SAM_PROTO_SignData [13:24:07]wFMCommunicate request_size=4 [13:24:07]MH_SAM_APDU [13:24:07]CAPDU: 80 0D 01 02 [13:24:07]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:07]Read from MH i2c: E2 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 03 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [13:24:07]RAPDU: 90 00 [13:24:07]wFMCommunicate OK [13:24:07]wFMCommunicate request_size=255 [13:24:07]MH_SAM_APDU [13:24:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 76 33 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1C 01 00 35 04 06 00 DE [13:24:07]Write to MH i2c: E2 02 01 AB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 76 33 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1C 01 00 35 04 06 00 DE 00 00 E8 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 [13:24:07]MH_I2C_Read... [13:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:07]Read from MH i2c: E2 03 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [13:24:07]RAPDU: 90 00 [13:24:07]wFMCommunicate OK [13:24:07]wFMCommunicate request_size=10 [13:24:07]MH_SAM_APDU [13:24:07]CAPDU: 80 0D 02 02 05 62 0B 85 92 92 [13:24:07]Write to MH i2c: E2 0D 00 AC 00 80 0D 02 02 05 00 62 0B 85 92 92 00 00 46 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:07]Read from MH i2c: E2 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 03 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [13:24:07]RAPDU: 90 00 [13:24:07]wFMCommunicate OK [13:24:07]wFMCommunicate request_size=4 [13:24:07]MH_SAM_APDU [13:24:07]CAPDU: 80 0D 03 02 [13:24:07]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:07]Read from MH i2c: E2 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 0B 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 0B 00 AD 00 00 04 C3 EF 89 AA 96 2C 1F 90 00 F3 [13:24:07]RAPDU: 04 C3 EF 89 AA 96 2C 1F 90 00 [13:24:07]wFMCommunicate OK [13:24:07]SAM_PROTO_SignData done [13:24:07]FM_MakeSignedData done [13:24:07]CreateOFDProtocolMessage [13:24:07]wFMCommunicate request_size=4 [13:24:07]MH_SAM_APDU [13:24:07]CAPDU: 80 11 00 00 [13:24:07]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:07]Read from MH i2c: E2 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 17 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [13:24:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:24:07]wFMCommunicate OK [13:24:07]CreateOFDProtocolMessage done [13:24:07]OFDSenderStorePacket 72843 [13:24:07]StoreOFDPacket docnum=72843 [13:24:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B5 DA 07 01 70 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 76 33 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1C 01 00 35 04 06 00 DE 62 0B 85 92 92 04 C3 EF 89 AA 96 2C 1F [13:24:07]CheckFolder [13:24:07]dirname=/storage/ofd_packets [13:24:07]CheckFolder done [13:24:07]ProducePacketName [13:24:07]name=ofd_packets/00072843 [13:24:07]NVStorageSaveData ofd_packets/00072843 [13:24:07]File name is /storage/ofd_packets/00072843 [13:24:07]Write 301 bytes [13:24:07]NVStorageSaveData done [13:24:07]OFDSenderStorePacket done [13:24:07]KKMCreateOFDPacket done [13:24:07]NVStorageSaveData kkm_last_timestamp [13:24:07]File name is /storage/kkm_last_timestamp [13:24:07]Write 4 bytes [13:24:07]NVStorageSaveData done [13:24:07]ExternCall_PrintAddStr [13:24:07]wPrintStart [13:24:07]Write to MH i2c: 01 00 00 AF 00 AF [13:24:07]Write i2c OK [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 07 00 [13:24:07]MH_I2C_Read... [13:24:07]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [13:24:07]RasterBufferAndPrint [13:24:07]line Счет N : (1)952417 [13:24:07]line ИНН: 02508201610067 [13:24:07]line Контрольно-Кассовый Чек [13:24:07]line ПРОДАЖА [13:24:07]line ТРК (МРК, ГНК) : 63 [13:24:07]line Товар: 2710124130 [13:24:07]line Аи-92-К-5 [13:24:07]line 7.480 * 66.90 [13:24:07]line = 500.41 [13:24:07]line НДС 12% НСП 1% [13:24:07]line > о реализуемом товаре [13:24:07]line ОКРУГЛЕНИЕ: -0.41 [13:24:07]line ИТОГО: 500.00 [13:24:07]line Внесено: 500.00 [13:24:07]line СДАЧА: 0.00 [13:24:07]line НСП 1% : 4.43 [13:24:07]line НДС 12% : 53.14 [13:24:07]line Наличными: 500.00 [13:24:07]line Безнал.: 0.00 [13:24:07]line Место: АЗС № 113 "Партнер Нефть" [13:24:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:24:07]line СНО: Общий режим [13:24:07]line Чек 80 30.10.2024 13:24 [13:24:07]line Смена: 556 ФФД: 1.0 [13:24:07]line ЗНМ: 0300000087 [13:24:07]line РНМ: 0000000000091644 [13:24:07]line Версия ККМ: 001 [13:24:07]line ФМ: 0000000000874662 [13:24:07]line ФД: 72843 [13:24:07]line ФПД: 244512681464466 [13:24:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132406&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72843&fm=244512681464466&tin=02508201610067®Number=0000000000091644&sum=50000 [13:24:07]OFD Sender: Processing packet 72843 [packets to send 278, broken 277] [13:24:07]ProducePacketName [13:24:07]name=ofd_packets/00072843 [13:24:07]OFD Sender: To server: pG, [13:24:07]CommunicateWithHost lk.salyk.kg:30040 [13:24:07]ConnectInit lk.salyk.kg [13:24:07]written 0, free lines is 4095 [13:24:08]Write to MH i2c: 01 00 00 DA 00 DA [13:24:08]Write i2c OK [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: 01 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: 01 07 00 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 CC 0C B9 [13:24:08]RasterBufferAndPrint [13:24:08]line [13:24:08]line [13:24:08]line [13:24:08]line [13:24:08]line [13:24:08]written 0, free lines is 3279 [13:24:08]MH_Cut [13:24:08]Write to MH i2c: D1 01 00 E1 00 01 B3 [13:24:08]Write i2c OK [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: D1 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: D1 01 00 [13:24:08]MH_I2C_Read... [13:24:08]Read from MH i2c: D1 01 00 E1 00 00 B2 [13:24:08]Write to MH i2c: 01 00 00 E2 00 E2 [13:24:08]Write i2c OK [13:24:08]MH_I2C_Read... [13:24:09]*** Cut start [13:24:09]*** Partial cut [13:24:09]*** CUTSNS_PIN = 1 [13:24:09]*** CUTSNS_PIN = 0 [13:24:09]*** Brake cut motor [13:24:09]Read from MH i2c: 01 [13:24:09]MH_I2C_Read... [13:24:09]*** Stop cut motor [13:24:09]*** Cut end [13:24:09]Read from MH i2c: 01 07 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [13:24:09]process_action close_receipt done [13:24:09]requested_data is exist [13:24:09]produce_requested_data [13:24:09]requested_item fm.sn is exist - process it [13:24:09]wFMCommunicate request_size=4 [13:24:09]MH_SAM_APDU [13:24:09]CAPDU: 80 11 00 00 [13:24:09]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:09]Read from MH i2c: E2 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 17 00 [13:24:09]MH_I2C_Read... [13:24:09]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B1 [13:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:24:09]wFMCommunicate OK [13:24:09]requested_item fd.num is exist - process it [13:24:09]SAM_PROTO_GetFieldsCounters [13:24:09]wFMCommunicate request_size=4 [13:24:09]MH_SAM_APDU [13:24:09]CAPDU: 80 13 00 00 [13:24:09]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [13:24:09]Write i2c OK [13:24:09]MH_I2C_Read... [13:24:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:10]Read from MH i2c: E2 [13:24:10]MH_I2C_Read... [13:24:10]Read from MH i2c: E2 62 00 [13:24:10]MH_I2C_Read... [13:24:10]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8B 1C 01 00 0E 04 04 00 2C 02 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 47 [13:24:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8B 1C 01 00 0E 04 04 00 2C 02 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 [13:24:10]wFMCommunicate OK [13:24:10]SAM_PROTO_GetFieldsCounters done [13:24:10]requested_item shift.num is exist - process it [13:24:10]requested_item shift.opened is exist - process it [13:24:10]req_shift_opened [13:24:10]FM_GetShiftState [13:24:10]SAM_PROTO_GetShiftState [13:24:10]wFMCommunicate request_size=4 [13:24:10]MH_SAM_APDU [13:24:10]CAPDU: 80 13 01 00 [13:24:10]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [13:24:10]Write i2c OK [13:24:10]MH_I2C_Read... [13:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:10]Read from MH i2c: E2 [13:24:10]MH_I2C_Read... [13:24:10]Read from MH i2c: E2 0E 00 [13:24:10]MH_I2C_Read... [13:24:10]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 34 [13:24:10]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:24:10]wFMCommunicate OK [13:24:10]SAM_PROTO_GetShiftState done [13:24:10]FM_GetShiftState done [13:24:10]req_shift_opened done [13:24:10]requested_item shift.open_date is exist - process it [13:24:10]req_shift_open_date [13:24:10]req_shift_open_date done [13:24:10]produce_requested_data done [13:24:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72843,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [13:24:10]process_action_free close_receipt [13:24:10]json_value_free [13:24:10]json_value_free done [13:24:10]process_json_proto returns [13:24:10]Send response to host [13:24:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72843,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [13:24:10]free response buf [13:24:10]execute_script done [13:24:10]execute_script returns [13:24:10]free content buf [13:24:10]Sock 9.Close socket [13:24:10]Sock 9.Thread stoped [13:24:11]Connected sock=11 [13:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B5 DA 07 01 70 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 76 33 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1C 01 00 35 04 06 00 DE 62 0B 85 92 92 04 C3 EF 89 AA 96 2C 1F [13:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 3E 58 47 00 4B 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1C 01 00 F4 03 04 00 32 DE 21 67 B6 04 01 00 00 DF EC 92 4D 28 5E 99 2B [13:24:12]CommunicateWithHost err = 0 [13:24:12]CheckOFDResponse [13:24:12]1017 (14) - 77093643461234 [13:24:12]1041 (16) - 0000000000874662 [13:24:12]1040 (4) - 72843 [13:24:12]1012 (4) - 30.10.2024 07:20 [13:24:12]1206 (1) - 0 [13:24:12]OFD Sender: Remove packet 72843 [13:24:12]ProducePacketName [13:24:12]name=ofd_packets/00072843 [13:24:12]NVStorageDeleteData [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:22]recv_with_timeout no data received [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:36]recv_with_timeout no data received [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:40]recv_with_timeout no data received [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:00]recv_with_timeout no data received [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:10]recv_with_timeout no data received [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]recv_with_timeout no data received [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:07]recv_with_timeout no data received [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:38]OFD Sender: No OFD packet to send [13:29:38]recv_with_timeout no data received [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:04]recv_with_timeout no data received [13:30:08]OFD Sender: No OFD packet to send [13:30:08]accept exits with 7 [13:30:08]New connection [13:30:08]New thread 3066551652 created [13:30:08]Thread 3066695012 joined [13:30:08]Waiting for new connection... [13:30:08] Sock 7.Parse request [13:30:08]Sock 7.Check first char [13:30:08]Sock 7.First char is OK [13:30:08]request: POST /json_proto HTTP/1.0 [13:30:08]Method: POST [13:30:08]URL: /json_proto [13:30:08]Method is POST - this is cgi request [13:30:08]url: /json_proto [13:30:08]query_string will be loaded in cgi processing [13:30:08]execute_cgi json_proto POST (null) [13:30:08]execute_cgi path=json_proto method=POST [13:30:08]POST find Content-Length [13:30:08]Host: 172.17.43.195:8080 [13:30:08]Content-Length: 792 [13:30:08]Content-Type: application/json [13:30:08] [13:30:08]POST finish read [13:30:08]Found Content-Length = 792 [13:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:08]execute_script... [13:30:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:08]POST & json_proto [13:30:08]process_json_proto [13:30:08]json parsed OK: [13:30:08]protocol is kg_v1.0 [13:30:08]action value=close_receipt [13:30:08]process_action close_receipt [13:30:08]cmd_close_receipt [13:30:08]MH_GetDate [13:30:08]Write to MH i2c: F0 00 00 E6 00 D5 [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: F0 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: F0 09 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: F0 09 00 E6 00 00 E0 34 22 67 74 2C AD 66 2E [13:30:08]GetLastDocTimeStamp 1730294646 [13:30:08]current date 1730295008 [13:30:08]FM_GetShiftState [13:30:08]SAM_PROTO_GetShiftState [13:30:08]wFMCommunicate request_size=4 [13:30:08]MH_SAM_APDU [13:30:08]CAPDU: 80 13 01 00 [13:30:08]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:08]Read from MH i2c: E2 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 0E 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 36 [13:30:08]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:30:08]wFMCommunicate OK [13:30:08]SAM_PROTO_GetShiftState done [13:30:08]FM_GetShiftState done [13:30:08]opened in 1730247109 [13:30:08]opened+sec_in_day 1730333509 [13:30:08]quantity*price = 0 [13:30:08]sum+1 = 1 [13:30:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 81 30.10.2024 13:30 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72844 ФПД: 130211836532185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T133008&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72844&fm=130211836532185&tin=02508201610067®Number=0000000000091644&sum=0 [13:30:09]StoreToDocumentArchive [13:30:09]shift 556 fd 72844 [13:30:09]save to /storage/0556/doc_00072844 [13:30:09]save last doc name /storage/0556/doc_00072844 to /storage/kkm_last_doc_name [13:30:09]save OK [13:30:09]Clear old archive folders... [13:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:09]tlvbuf is 00DD96C0 [13:30:09]SAM_PROTO_ClearQueue [13:30:09]wFMCommunicate request_size=4 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 09 00 00 [13:30:09]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:09]Read from MH i2c: E2 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 03 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [13:30:09]RAPDU: 90 00 [13:30:09]wFMCommunicate OK [13:30:09]SAM_PROTO_ClearQueue done [13:30:09]KKMCreateOFDPacket [13:30:09]OFDProtocolAddRootSTLVToBuf [13:30:09]FM_MakeSignedData [13:30:09]FM_MakeSignedData [13:30:09]SAM_PROTO_SignData [13:30:09]wFMCommunicate request_size=4 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 0D 01 02 [13:30:09]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:09]Read from MH i2c: E2 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 03 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [13:30:09]RAPDU: 90 00 [13:30:09]wFMCommunicate OK [13:30:09]wFMCommunicate request_size=255 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E0 34 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1C 01 00 35 04 06 00 76 [13:30:09]Write to MH i2c: E2 02 01 F6 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E0 34 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1C 01 00 35 04 06 00 76 00 00 21 [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [13:30:10]RAPDU: 90 00 [13:30:10]wFMCommunicate OK [13:30:10]wFMCommunicate request_size=10 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 0D 02 02 05 6D 4E 43 15 D9 [13:30:10]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 6D 4E 43 15 D9 00 00 67 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [13:30:10]RAPDU: 90 00 [13:30:10]wFMCommunicate OK [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 0D 03 02 [13:30:10]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 0B 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 0B 00 F8 00 00 9E 2F 38 3F BB D5 06 EA 90 00 38 [13:30:10]RAPDU: 9E 2F 38 3F BB D5 06 EA 90 00 [13:30:10]wFMCommunicate OK [13:30:10]SAM_PROTO_SignData done [13:30:10]FM_MakeSignedData done [13:30:10]CreateOFDProtocolMessage [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 11 00 00 [13:30:10]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 17 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [13:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:30:10]wFMCommunicate OK [13:30:10]CreateOFDProtocolMessage done [13:30:10]OFDSenderStorePacket 72844 [13:30:10]StoreOFDPacket docnum=72844 [13:30:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1F 37 07 01 47 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E0 34 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1C 01 00 35 04 06 00 76 6D 4E 43 15 D9 9E 2F 38 3F BB D5 06 EA [13:30:10]CheckFolder [13:30:10]dirname=/storage/ofd_packets [13:30:10]CheckFolder done [13:30:10]ProducePacketName [13:30:10]name=ofd_packets/00072844 [13:30:10]NVStorageSaveData ofd_packets/00072844 [13:30:10]File name is /storage/ofd_packets/00072844 [13:30:10]Write 301 bytes [13:30:10]NVStorageSaveData done [13:30:10]OFDSenderStorePacket done [13:30:10]KKMCreateOFDPacket done [13:30:10]NVStorageSaveData kkm_last_timestamp [13:30:10]File name is /storage/kkm_last_timestamp [13:30:10]Write 4 bytes [13:30:10]NVStorageSaveData done [13:30:10]ExternCall_PrintAddStr [13:30:10]wPrintStart [13:30:10]Write to MH i2c: 01 00 00 FA 00 FA [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: 01 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: 01 07 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [13:30:10]RasterBufferAndPrint [13:30:10]line Счет N : (1)952418 [13:30:10]line ИНН: 02508201610067 [13:30:10]line Контрольно-Кассовый Чек [13:30:10]line ПРОДАЖА [13:30:10]line ТРК (МРК, ГНК) : 53 [13:30:10]line Товар: 2710124130 [13:30:10]line Аи-92-К-5 [13:30:10]line 20.000 * 0.00 [13:30:10]line = 0.00 [13:30:10]line НДС 12% НСП 1% [13:30:10]line > о реализуемом товаре [13:30:10]line ИТОГО: 0.00 [13:30:10]line НСП 1% : 0.00 [13:30:10]line НДС 12% : 0.00 [13:30:10]line Наличными: 0.00 [13:30:10]line Безнал.: 0.00 [13:30:10]line Место: АЗС № 113 "Партнер Нефть" [13:30:10]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:30:10]line СНО: Общий режим [13:30:10]line Чек 81 30.10.2024 13:30 [13:30:10]line Смена: 556 ФФД: 1.0 [13:30:10]line ЗНМ: 0300000087 [13:30:10]line РНМ: 0000000000091644 [13:30:10]line Версия ККМ: 001 [13:30:10]line Талоны: Топливная Карта [13:30:10]line 53623 [13:30:10]line ФМ: 0000000000874662 [13:30:10]line ФД: 72844 [13:30:10]line ФПД: 130211836532185 [13:30:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T133008&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72844&fm=130211836532185&tin=02508201610067®Number=0000000000091644&sum=0 [13:30:10]OFD Sender: Processing packet 72844 [packets to send 278, broken 277] [13:30:10]ProducePacketName [13:30:10]name=ofd_packets/00072844 [13:30:10]OFD Sender: To server: pG, [13:30:10]CommunicateWithHost lk.salyk.kg:30040 [13:30:10]ConnectInit lk.salyk.kg [13:30:10]written 0, free lines is 4095 [13:30:11]Write to MH i2c: 01 00 00 24 01 25 [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: 01 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: 01 07 00 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 D6 0C 0E [13:30:11]RasterBufferAndPrint [13:30:11]line [13:30:11]line [13:30:11]line [13:30:11]line [13:30:11]line [13:30:11]written 0, free lines is 3289 [13:30:11]MH_Cut [13:30:11]Write to MH i2c: D1 01 00 2B 01 01 FE [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: D1 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: D1 01 00 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: D1 01 00 2B 01 00 FD [13:30:11]Write to MH i2c: 01 00 00 2C 01 2D [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]*** Cut start [13:30:11]*** Partial cut [13:30:11]*** CUTSNS_PIN = 1 [13:30:11]*** CUTSNS_PIN = 0 [13:30:12]*** Brake cut motor [13:30:12]Read from MH i2c: 01 [13:30:12]MH_I2C_Read... [13:30:12]*** Stop cut motor [13:30:12]*** Cut end [13:30:12]Read from MH i2c: 01 07 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [13:30:12]process_action close_receipt done [13:30:12]requested_data is exist [13:30:12]produce_requested_data [13:30:12]requested_item fm.sn is exist - process it [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 11 00 00 [13:30:12]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 17 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FC [13:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:30:12]wFMCommunicate OK [13:30:12]requested_item fd.num is exist - process it [13:30:12]SAM_PROTO_GetFieldsCounters [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 13 00 00 [13:30:12]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 62 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 62 00 2E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8C 1C 01 00 0E 04 04 00 2C 02 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 96 [13:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8C 1C 01 00 0E 04 04 00 2C 02 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 [13:30:12]wFMCommunicate OK [13:30:12]SAM_PROTO_GetFieldsCounters done [13:30:12]requested_item shift.num is exist - process it [13:30:12]requested_item shift.opened is exist - process it [13:30:12]req_shift_opened [13:30:12]FM_GetShiftState [13:30:12]SAM_PROTO_GetShiftState [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 13 01 00 [13:30:12]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 0E 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 7F [13:30:12]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:30:12]wFMCommunicate OK [13:30:12]SAM_PROTO_GetShiftState done [13:30:12]FM_GetShiftState done [13:30:12]req_shift_opened done [13:30:12]requested_item shift.open_date is exist - process it [13:30:12]req_shift_open_date [13:30:12]req_shift_open_date done [13:30:12]produce_requested_data done [13:30:12]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72844,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [13:30:12]process_action_free close_receipt [13:30:12]json_value_free [13:30:12]json_value_free done [13:30:12]process_json_proto returns [13:30:12]Send response to host [13:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72844,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [13:30:12]free response buf [13:30:12]execute_script done [13:30:12]execute_script returns [13:30:12]free content buf [13:30:12]Sock 7.Close socket [13:30:12]Sock 7.Thread stoped [13:30:14]Connected sock=11 [13:30:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1F 37 07 01 47 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E0 34 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1C 01 00 35 04 06 00 76 6D 4E 43 15 D9 9E 2F 38 3F BB D5 06 EA [13:30:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 69 33 47 00 D8 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1C 01 00 F4 03 04 00 9D DF 21 67 B6 04 01 00 00 EC 84 18 35 85 DA 55 8B [13:30:15]CommunicateWithHost err = 0 [13:30:15]CheckOFDResponse [13:30:15]1017 (14) - 77093643461234 [13:30:15]1041 (16) - 0000000000874662 [13:30:15]1040 (4) - 72844 [13:30:15]1012 (4) - 30.10.2024 07:26 [13:30:15]1206 (1) - 0 [13:30:15]OFD Sender: Remove packet 72844 [13:30:15]ProducePacketName [13:30:15]name=ofd_packets/00072844 [13:30:15]NVStorageDeleteData [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:24]recv_with_timeout no data received [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:09]recv_with_timeout no data received [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:29]recv_with_timeout no data received [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:41]recv_with_timeout no data received [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:06]recv_with_timeout no data received [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]accept exits with 9 [13:34:35]New connection [13:34:35]New thread 3066695012 created [13:34:35]Thread 3066551652 joined [13:34:35]Waiting for new connection... [13:34:35] Sock 9.Parse request [13:34:35]Sock 9.Check first char [13:34:35]Sock 9.First char is OK [13:34:35]request: POST /json_proto HTTP/1.0 [13:34:35]Method: POST [13:34:35]URL: /json_proto [13:34:35]Method is POST - this is cgi request [13:34:35]url: /json_proto [13:34:35]query_string will be loaded in cgi processing [13:34:35]execute_cgi json_proto POST (null) [13:34:35]execute_cgi path=json_proto method=POST [13:34:35]POST find Content-Length [13:34:35]Host: 172.17.43.195:8080 [13:34:35]Content-Length: 792 [13:34:35]Content-Type: application/json [13:34:35] [13:34:35]POST finish read [13:34:35]Found Content-Length = 792 [13:34:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:35]execute_script... [13:34:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:35]POST & json_proto [13:34:35]process_json_proto [13:34:35]json parsed OK: [13:34:35]protocol is kg_v1.0 [13:34:35]action value=close_receipt [13:34:35]process_action close_receipt [13:34:35]cmd_close_receipt [13:34:35]MH_GetDate [13:34:35]Write to MH i2c: F0 00 00 30 01 20 [13:34:35]Write i2c OK [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: F0 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: F0 09 00 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: F0 09 00 30 01 00 EC 35 22 67 74 2C AD 66 86 [13:34:35]GetLastDocTimeStamp 1730295008 [13:34:35]current date 1730295276 [13:34:35]FM_GetShiftState [13:34:35]SAM_PROTO_GetShiftState [13:34:35]wFMCommunicate request_size=4 [13:34:35]MH_SAM_APDU [13:34:35]CAPDU: 80 13 01 00 [13:34:35]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [13:34:35]Write i2c OK [13:34:35]MH_I2C_Read... [13:34:35]OFD Sender: No OFD packet to send [13:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:36]Read from MH i2c: E2 [13:34:36]MH_I2C_Read... [13:34:36]Read from MH i2c: E2 0E 00 [13:34:36]MH_I2C_Read... [13:34:36]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 81 [13:34:36]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:34:36]wFMCommunicate OK [13:34:36]SAM_PROTO_GetShiftState done [13:34:36]FM_GetShiftState done [13:34:36]opened in 1730247109 [13:34:36]opened+sec_in_day 1730333509 [13:34:36]quantity*price = 0 [13:34:36]sum+1 = 1 [13:34:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 82 30.10.2024 13:34 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72845 ФПД: 188674591135107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T133436&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72845&fm=188674591135107&tin=02508201610067®Number=0000000000091644&sum=0 [13:34:37]StoreToDocumentArchive [13:34:37]shift 556 fd 72845 [13:34:37]save to /storage/0556/doc_00072845 [13:34:37]save last doc name /storage/0556/doc_00072845 to /storage/kkm_last_doc_name [13:34:37]save OK [13:34:37]Clear old archive folders... [13:34:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:37]tlvbuf is 00DD92A0 [13:34:37]SAM_PROTO_ClearQueue [13:34:37]wFMCommunicate request_size=4 [13:34:37]MH_SAM_APDU [13:34:37]CAPDU: 80 09 00 00 [13:34:37]Write to MH i2c: E2 08 00 3E 01 80 09 00 00 00 00 00 00 B1 [13:34:37]Write i2c OK [13:34:37]MH_I2C_Read... [13:34:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:37]Read from MH i2c: E2 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 03 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [13:34:37]RAPDU: 90 00 [13:34:37]wFMCommunicate OK [13:34:37]SAM_PROTO_ClearQueue done [13:34:37]KKMCreateOFDPacket [13:34:37]OFDProtocolAddRootSTLVToBuf [13:34:37]FM_MakeSignedData [13:34:37]FM_MakeSignedData [13:34:37]SAM_PROTO_SignData [13:34:37]wFMCommunicate request_size=4 [13:34:37]MH_SAM_APDU [13:34:37]CAPDU: 80 0D 01 02 [13:34:37]Write to MH i2c: E2 08 00 3F 01 80 0D 01 02 00 00 00 00 B9 [13:34:37]Write i2c OK [13:34:37]MH_I2C_Read... [13:34:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:37]Read from MH i2c: E2 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 03 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [13:34:37]RAPDU: 90 00 [13:34:37]wFMCommunicate OK [13:34:37]wFMCommunicate request_size=255 [13:34:37]MH_SAM_APDU [13:34:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 EC 35 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1C 01 00 35 04 06 00 AB [13:34:37]Write to MH i2c: E2 02 01 40 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 EC 35 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1C 01 00 35 04 06 00 AB 00 00 4B [13:34:37]Write i2c OK [13:34:37]MH_I2C_Read... [13:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:37]Read from MH i2c: E2 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 03 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [13:34:37]RAPDU: 90 00 [13:34:37]wFMCommunicate OK [13:34:37]wFMCommunicate request_size=10 [13:34:37]MH_SAM_APDU [13:34:37]CAPDU: 80 0D 02 02 05 99 39 FB 95 83 [13:34:37]Write to MH i2c: E2 0D 00 41 01 80 0D 02 02 05 00 99 39 FB 95 83 00 00 AB [13:34:37]Write i2c OK [13:34:37]MH_I2C_Read... [13:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:37]Read from MH i2c: E2 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 03 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [13:34:37]RAPDU: 90 00 [13:34:37]wFMCommunicate OK [13:34:37]wFMCommunicate request_size=4 [13:34:37]MH_SAM_APDU [13:34:37]CAPDU: 80 0D 03 02 [13:34:37]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [13:34:37]Write i2c OK [13:34:37]MH_I2C_Read... [13:34:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:37]Read from MH i2c: E2 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 0B 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 0B 00 42 01 00 F5 DF 09 52 07 CD 45 41 90 00 48 [13:34:37]RAPDU: F5 DF 09 52 07 CD 45 41 90 00 [13:34:37]wFMCommunicate OK [13:34:37]SAM_PROTO_SignData done [13:34:37]FM_MakeSignedData done [13:34:37]CreateOFDProtocolMessage [13:34:37]wFMCommunicate request_size=4 [13:34:37]MH_SAM_APDU [13:34:37]CAPDU: 80 11 00 00 [13:34:37]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [13:34:37]Write i2c OK [13:34:37]MH_I2C_Read... [13:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:37]Read from MH i2c: E2 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 17 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [13:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:34:37]wFMCommunicate OK [13:34:37]CreateOFDProtocolMessage done [13:34:37]OFDSenderStorePacket 72845 [13:34:37]StoreOFDPacket docnum=72845 [13:34:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 06 A3 07 01 22 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 EC 35 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1C 01 00 35 04 06 00 AB 99 39 FB 95 83 F5 DF 09 52 07 CD 45 41 [13:34:37]CheckFolder [13:34:37]dirname=/storage/ofd_packets [13:34:37]CheckFolder done [13:34:37]ProducePacketName [13:34:37]name=ofd_packets/00072845 [13:34:37]NVStorageSaveData ofd_packets/00072845 [13:34:37]File name is /storage/ofd_packets/00072845 [13:34:37]Write 301 bytes [13:34:37]NVStorageSaveData done [13:34:37]OFDSenderStorePacket done [13:34:37]KKMCreateOFDPacket done [13:34:37]NVStorageSaveData kkm_last_timestamp [13:34:37]File name is /storage/kkm_last_timestamp [13:34:37]Write 4 bytes [13:34:37]NVStorageSaveData done [13:34:37]ExternCall_PrintAddStr [13:34:37]wPrintStart [13:34:37]Write to MH i2c: 01 00 00 44 01 45 [13:34:37]Write i2c OK [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: 01 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: 01 07 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [13:34:37]RasterBufferAndPrint [13:34:37]line Счет N : (1)952419 [13:34:37]line ИНН: 02508201610067 [13:34:37]line Контрольно-Кассовый Чек [13:34:37]line ПРОДАЖА [13:34:37]line ТРК (МРК, ГНК) : 63 [13:34:37]line Товар: 2710124130 [13:34:37]line Аи-92-К-5 [13:34:37]line 25.000 * 0.00 [13:34:37]line = 0.00 [13:34:37]line НДС 12% НСП 1% [13:34:37]line > о реализуемом товаре [13:34:37]line ИТОГО: 0.00 [13:34:37]line НСП 1% : 0.00 [13:34:37]line НДС 12% : 0.00 [13:34:37]line Наличными: 0.00 [13:34:37]line Безнал.: 0.00 [13:34:37]line Место: АЗС № 113 "Партнер Нефть" [13:34:37]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:34:37]line СНО: Общий режим [13:34:37]line Чек 82 30.10.2024 13:34 [13:34:37]line Смена: 556 ФФД: 1.0 [13:34:37]line ЗНМ: 0300000087 [13:34:37]line РНМ: 0000000000091644 [13:34:37]line Версия ККМ: 001 [13:34:37]line Талоны: Топливная Карта [13:34:37]line 03047 [13:34:37]line ФМ: 0000000000874662 [13:34:37]line ФД: 72845 [13:34:37]line ФПД: 188674591135107 [13:34:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T133436&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72845&fm=188674591135107&tin=02508201610067®Number=0000000000091644&sum=0 [13:34:37]written 0, free lines is 4095 [13:34:37]OFD Sender: Processing packet 72845 [packets to send 278, broken 277] [13:34:37]ProducePacketName [13:34:37]name=ofd_packets/00072845 [13:34:37]OFD Sender: To server: pG, [13:34:37]CommunicateWithHost lk.salyk.kg:30040 [13:34:37]ConnectInit lk.salyk.kg [13:34:38]Write to MH i2c: 01 00 00 6E 01 6F [13:34:38]Write i2c OK [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: 01 [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: 01 07 00 [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 E2 0C 64 [13:34:38]RasterBufferAndPrint [13:34:38]line [13:34:38]line [13:34:38]line [13:34:38]line [13:34:38]line [13:34:38]written 0, free lines is 3305 [13:34:38]MH_Cut [13:34:38]Write to MH i2c: D1 01 00 75 01 01 48 [13:34:38]Write i2c OK [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: D1 [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: D1 01 00 [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: D1 01 00 75 01 00 47 [13:34:38]Write to MH i2c: 01 00 00 76 01 77 [13:34:38]Write i2c OK [13:34:38]MH_I2C_Read... [13:34:38]recv_with_timeout no data received [13:34:38]*** Cut start [13:34:38]*** Partial cut [13:34:38]*** CUTSNS_PIN = 1 [13:34:38]*** CUTSNS_PIN = 0 [13:34:39]*** Brake cut motor [13:34:39]Read from MH i2c: 01 [13:34:39]MH_I2C_Read... [13:34:39]*** Stop cut motor [13:34:39]*** Cut end [13:34:39]Read from MH i2c: 01 07 00 [13:34:39]MH_I2C_Read... [13:34:39]Read from MH i2c: 01 07 00 76 01 00 00 00 00 00 FF 0F 8C [13:34:39]process_action close_receipt done [13:34:39]requested_data is exist [13:34:39]produce_requested_data [13:34:39]requested_item fm.sn is exist - process it [13:34:39]wFMCommunicate request_size=4 [13:34:39]MH_SAM_APDU [13:34:39]CAPDU: 80 11 00 00 [13:34:39]Write to MH i2c: E2 08 00 77 01 80 11 00 00 00 00 00 00 F2 [13:34:39]Write i2c OK [13:34:39]MH_I2C_Read... [13:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:39]Read from MH i2c: E2 [13:34:39]MH_I2C_Read... [13:34:39]Read from MH i2c: E2 17 00 [13:34:39]MH_I2C_Read... [13:34:39]Read from MH i2c: E2 17 00 77 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 46 [13:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:34:39]wFMCommunicate OK [13:34:39]requested_item fd.num is exist - process it [13:34:39]SAM_PROTO_GetFieldsCounters [13:34:39]wFMCommunicate request_size=4 [13:34:39]MH_SAM_APDU [13:34:39]CAPDU: 80 13 00 00 [13:34:39]Write to MH i2c: E2 08 00 78 01 80 13 00 00 00 00 00 00 F5 [13:34:39]Write i2c OK [13:34:39]MH_I2C_Read... [13:34:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:39]Read from MH i2c: E2 [13:34:39]MH_I2C_Read... [13:34:39]Read from MH i2c: E2 62 00 [13:34:39]MH_I2C_Read... [13:34:39]Read from MH i2c: E2 62 00 78 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8D 1C 01 00 0E 04 04 00 2C 02 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 E4 [13:34:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8D 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:39]wFMCommunicate OK [13:34:39]SAM_PROTO_GetFieldsCounters done [13:34:39]requested_item shift.num is exist - process it [13:34:39]requested_item shift.opened is exist - process it [13:34:39]req_shift_opened [13:34:39]FM_GetShiftState [13:34:39]SAM_PROTO_GetShiftState [13:34:39]wFMCommunicate request_size=4 [13:34:39]MH_SAM_APDU [13:34:39]CAPDU: 80 13 01 00 [13:34:39]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [13:34:39]Write i2c OK [13:34:39]MH_I2C_Read... [13:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:39]Read from MH i2c: E2 [13:34:39]MH_I2C_Read... [13:34:39]Read from MH i2c: E2 0E 00 [13:34:39]MH_I2C_Read... [13:34:39]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 C9 [13:34:39]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:34:39]wFMCommunicate OK [13:34:39]SAM_PROTO_GetShiftState done [13:34:39]FM_GetShiftState done [13:34:39]req_shift_opened done [13:34:39]requested_item shift.open_date is exist - process it [13:34:39]req_shift_open_date [13:34:39]req_shift_open_date done [13:34:39]produce_requested_data done [13:34:39]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72845,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [13:34:39]process_action_free close_receipt [13:34:39]json_value_free [13:34:39]json_value_free done [13:34:39]process_json_proto returns [13:34:39]Send response to host [13:34:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72845,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [13:34:39]free response buf [13:34:39]execute_script done [13:34:39]execute_script returns [13:34:39]free content buf [13:34:39]Sock 9.Close socket [13:34:39]Sock 9.Thread stoped [13:34:42]Connected sock=11 [13:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 06 A3 07 01 22 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 EC 35 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1C 01 00 35 04 06 00 AB 99 39 FB 95 83 F5 DF 09 52 07 CD 45 41 [13:34:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 62 EC 47 00 7C F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1C 01 00 F4 03 04 00 A9 E0 21 67 B6 04 01 00 00 D5 AA 8E DB D7 0E 78 E5 [13:34:42]CommunicateWithHost err = 0 [13:34:42]CheckOFDResponse [13:34:42]1017 (14) - 77093643461234 [13:34:42]1041 (16) - 0000000000874662 [13:34:42]1040 (4) - 72845 [13:34:42]1012 (4) - 30.10.2024 07:30 [13:34:42]1206 (1) - 0 [13:34:42]OFD Sender: Remove packet 72845 [13:34:42]ProducePacketName [13:34:42]name=ofd_packets/00072845 [13:34:42]NVStorageDeleteData [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:16]recv_with_timeout no data received [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:10]recv_with_timeout no data received [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]recv_with_timeout no data received [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:29]recv_with_timeout no data received [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:00]recv_with_timeout no data received [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]recv_with_timeout no data received [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:20]recv_with_timeout no data received [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:52]ConnectInit Can't connect to host [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:00]recv_with_timeout no data received [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:52]recv_with_timeout no data received [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:40]accept exits with 10 [13:46:40]New connection [13:46:40]New thread 3066551652 created [13:46:40]Thread 3066695012 joined [13:46:40]Waiting for new connection... [13:46:40] Sock 10.Parse request [13:46:40]Sock 10.Check first char [13:46:40]Sock 10.First char is OK [13:46:40]request: POST /json_proto HTTP/1.0 [13:46:40]Method: POST [13:46:40]URL: /json_proto [13:46:40]Method is POST - this is cgi request [13:46:40]url: /json_proto [13:46:40]query_string will be loaded in cgi processing [13:46:40]execute_cgi json_proto POST (null) [13:46:40]execute_cgi path=json_proto method=POST [13:46:40]POST find Content-Length [13:46:40]Host: 172.17.43.195:8080 [13:46:40]Content-Length: 677 [13:46:40]Content-Type: application/json [13:46:40] [13:46:40]POST finish read [13:46:40]Found Content-Length = 677 [13:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:40]execute_script... [13:46: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)952420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:46:40]POST & json_proto [13:46:40]process_json_proto [13:46:40]json parsed OK: [13:46:40]protocol is kg_v1.0 [13:46:40]action value=close_receipt [13:46:40]process_action close_receipt [13:46:40]cmd_close_receipt [13:46:40]MH_GetDate [13:46:40]Write to MH i2c: F0 00 00 7A 01 6A [13:46:40]Write i2c OK [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: F0 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: F0 09 00 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: F0 09 00 7A 01 00 C0 38 22 67 74 2C AD 66 A7 [13:46:40]GetLastDocTimeStamp 1730295276 [13:46:40]current date 1730296000 [13:46:40]FM_GetShiftState [13:46:40]SAM_PROTO_GetShiftState [13:46:40]wFMCommunicate request_size=4 [13:46:40]MH_SAM_APDU [13:46:40]CAPDU: 80 13 01 00 [13:46:40]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [13:46:40]Write i2c OK [13:46:40]MH_I2C_Read... [13:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:40]Read from MH i2c: E2 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: E2 0E 00 [13:46:40]MH_I2C_Read... [13:46:40]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 CB [13:46:40]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:46:40]wFMCommunicate OK [13:46:40]SAM_PROTO_GetShiftState done [13:46:40]FM_GetShiftState done [13:46:40]opened in 1730247109 [13:46:40]opened+sec_in_day 1730333509 [13:46:40]quantity*price = 50041 [13:46:40]sum+1 = 50042 [13:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре [13:48:11]line ОКРУГЛЕНИЕ: -0.41 [13:48:11]line ИТОГО: 500.00 [13:48:11]line Внесено: 500.00 [13:48:11]line СДАЧА: 0.00 [13:48:11]line НСП 1% : 4.43 [13:48:11]line НДС 12% : 53.14 [13:48:11]line Наличными: 500.00 [13:48:11]line Безнал.: 0.00 [13:48:11]line Место: АЗС № 113 "Партнер Нефть" [13:48:11]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:48:11]line СНО: Общий режим [13:48:11]line Чек 83 30.10.2024 13:46 [13:48:11]line Смена: 556 ФФД: 1.0 [13:48:11]line ЗНМ: 0300000087 [13:48:11]line РНМ: 0000000000091644 [13:48:11]line Версия ККМ: 001 [13:48:11]line ФМ: 0000000000874662 [13:48:11]line ФД: 72846 [13:48:11]line ФПД: 275703714668048 [13:48:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T134640&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72846&fm=275703714668048&tin=02508201610067®Number=0000000000091644&sum=50000 [13:48:11]written 0, free lines is 4095 [13:48:11]Write to MH i2c: 01 00 00 48 00 48 [13:48:11]Write i2c OK [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: 01 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: 01 07 00 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 DA 0C 35 [13:48:11]RasterBufferAndPrint [13:48:11]line [13:48:11]line [13:48:11]line [13:48:11]line [13:48:11]line [13:48:11]written 0, free lines is 3306 [13:48:11]MH_Cut [13:48:11]Write to MH i2c: D1 01 00 4F 00 01 21 [13:48:11]Write i2c OK [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: D1 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: D1 01 00 [13:48:11]MH_I2C_Read... [13:48:11]Read from MH i2c: D1 01 00 4F 00 00 20 [13:48:11]Write to MH i2c: 01 00 00 50 00 50 [13:48:11]Write i2c OK [13:48:11]MH_I2C_Read... [13:48:12]*** Cut start [13:48:12]*** Partial cut [13:48:12]*** CUTSNS_PIN = 1 [13:48:12]*** CUTSNS_PIN = 0 [13:48:12]*** Brake cut motor [13:48:13]Read from MH i2c: 01 [13:48:13]MH_I2C_Read... [13:48:13]*** Stop cut motor [13:48:13]*** Cut end [13:48:13]Read from MH i2c: 01 07 00 [13:48:13]MH_I2C_Read... [13:48:13]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [13:48:13]process_action print_doc done [13:48:13]requested_data is exist [13:48:13]produce_requested_data [13:48:13]produce_requested_data return (null) [13:48:13]process_action_free print_doc [13:48:13]json_value_free [13:48:13]json_value_free done [13:48:13]process_json_proto returns [13:48:13]Send response to host [13:48:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [13:48:13]free response buf [13:48:13]execute_script done [13:48:13]execute_script returns [13:48:13]free content buf [13:48:13]Sock 9.Close socket [13:48:13]Sock 9.Thread stoped [13:48:14]OFD Sender: No OFD packet to send [13:48:15]recv_with_timeout no data received [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:48]recv_with_timeout no data received [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:48:59]recv_with_timeout no data received [13:49:00]accept exits with 7 [13:49:00]New connection [13:49:00]New thread 3067104612 created [13:49:00]Thread 3067247972 joined [13:49:00]Waiting for new connection... [13:49:00] Sock 7.Parse request [13:49:00]Sock 7.Check first char [13:49:00]Sock 7.First char is OK [13:49:00]request: POST /json_proto HTTP/1.0 [13:49:00]Method: POST [13:49:00]URL: /json_proto [13:49:00]Method is POST - this is cgi request [13:49:00]url: /json_proto [13:49:00]query_string will be loaded in cgi processing [13:49:00]execute_cgi json_proto POST (null) [13:49:00]execute_cgi path=json_proto method=POST [13:49:00]POST find Content-Length [13:49:00]Host: 172.17.43.195:8080 [13:49:00]Content-Length: 792 [13:49:00]Content-Type: application/json [13:49:00] [13:49:00]POST finish read [13:49:00]Found Content-Length = 792 [13:49:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:00]execute_script... [13:49:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:00]POST & json_proto [13:49:00]process_json_proto [13:49:00]json parsed OK: [13:49:00]protocol is kg_v1.0 [13:49:00]action value=close_receipt [13:49:00]process_action close_receipt [13:49:00]cmd_close_receipt [13:49:00]MH_GetDate [13:49:00]Write to MH i2c: F0 00 00 51 00 40 [13:49:00]Write i2c OK [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: F0 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: F0 09 00 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: F0 09 00 51 00 00 4D 39 22 67 74 2C AD 66 0B [13:49:00]GetLastDocTimeStamp 1730296000 [13:49:00]current date 1730296141 [13:49:00]FM_GetShiftState [13:49:00]SAM_PROTO_GetShiftState [13:49:00]wFMCommunicate request_size=4 [13:49:00]MH_SAM_APDU [13:49:00]CAPDU: 80 13 01 00 [13:49:00]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [13:49:00]Write i2c OK [13:49:00]MH_I2C_Read... [13:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:00]Read from MH i2c: E2 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: E2 0E 00 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A1 [13:49:00]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:49:00]wFMCommunicate OK [13:49:00]SAM_PROTO_GetShiftState done [13:49:00]FM_GetShiftState done [13:49:00]opened in 1730247109 [13:49:00]opened+sec_in_day 1730333509 [13:49:00]quantity*price = 0 [13:49:00]sum+1 = 1 [13:49:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 84 30.10.2024 13:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 72847 ФПД: 103077122543814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T134901&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72847&fm=103077122543814&tin=02508201610067®Number=0000000000091644&sum=0 [13:49:01]StoreToDocumentArchive [13:49:01]shift 556 fd 72847 [13:49:01]save to /storage/0556/doc_00072847 [13:49:01]save last doc name /storage/0556/doc_00072847 to /storage/kkm_last_doc_name [13:49:01]save OK [13:49:01]Clear old archive folders... [13:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:01]tlvbuf is 01D50F20 [13:49:01]SAM_PROTO_ClearQueue [13:49:01]wFMCommunicate request_size=4 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 09 00 00 [13:49:01]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:01]Read from MH i2c: E2 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [13:49:01]RAPDU: 90 00 [13:49:01]wFMCommunicate OK [13:49:01]SAM_PROTO_ClearQueue done [13:49:01]KKMCreateOFDPacket [13:49:01]OFDProtocolAddRootSTLVToBuf [13:49:01]FM_MakeSignedData [13:49:01]FM_MakeSignedData [13:49:01]SAM_PROTO_SignData [13:49:01]wFMCommunicate request_size=4 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 0D 01 02 [13:49:01]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:01]Read from MH i2c: E2 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [13:49:01]RAPDU: 90 00 [13:49:01]wFMCommunicate OK [13:49:01]wFMCommunicate request_size=255 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 54 00 00 00 F4 03 04 00 4D 39 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1C 01 00 35 04 06 00 5D [13:49:01]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 54 00 00 00 F4 03 04 00 4D 39 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1C 01 00 35 04 06 00 5D 00 00 4F [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:01]Read from MH i2c: E2 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [13:49:01]RAPDU: 90 00 [13:49:01]wFMCommunicate OK [13:49:01]wFMCommunicate request_size=10 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 0D 02 02 05 BF 83 46 10 C6 [13:49:01]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 BF 83 46 10 C6 00 00 44 [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:01]Read from MH i2c: E2 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [13:49:01]RAPDU: 90 00 [13:49:01]wFMCommunicate OK [13:49:01]wFMCommunicate request_size=4 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 0D 03 02 [13:49:01]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:01]Read from MH i2c: E2 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 0B 00 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 0B 00 63 00 00 6D DF 5E 21 0A AE 2C 35 90 00 C3 [13:49:01]RAPDU: 6D DF 5E 21 0A AE 2C 35 90 00 [13:49:01]wFMCommunicate OK [13:49:01]SAM_PROTO_SignData done [13:49:01]FM_MakeSignedData done [13:49:01]CreateOFDProtocolMessage [13:49:01]wFMCommunicate request_size=4 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 11 00 00 [13:49:01]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:02]Read from MH i2c: E2 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: E2 17 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [13:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:49:02]wFMCommunicate OK [13:49:02]CreateOFDProtocolMessage done [13:49:02]OFDSenderStorePacket 72847 [13:49:02]StoreOFDPacket docnum=72847 [13:49:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9E A7 07 01 7A 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 54 00 00 00 F4 03 04 00 4D 39 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1C 01 00 35 04 06 00 5D BF 83 46 10 C6 6D DF 5E 21 0A AE 2C 35 [13:49:02]CheckFolder [13:49:02]dirname=/storage/ofd_packets [13:49:02]CheckFolder done [13:49:02]ProducePacketName [13:49:02]name=ofd_packets/00072847 [13:49:02]NVStorageSaveData ofd_packets/00072847 [13:49:02]File name is /storage/ofd_packets/00072847 [13:49:02]Write 301 bytes [13:49:02]NVStorageSaveData done [13:49:02]OFDSenderStorePacket done [13:49:02]KKMCreateOFDPacket done [13:49:02]NVStorageSaveData kkm_last_timestamp [13:49:02]File name is /storage/kkm_last_timestamp [13:49:02]Write 4 bytes [13:49:02]NVStorageSaveData done [13:49:02]ExternCall_PrintAddStr [13:49:02]wPrintStart [13:49:02]Write to MH i2c: 01 00 00 65 00 65 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [13:49:02]RasterBufferAndPrint [13:49:02]line Счет N : (1)952421 [13:49:02]line ИНН: 02508201610067 [13:49:02]line Контрольно-Кассовый Чек [13:49:02]line ПРОДАЖА [13:49:02]line ТРК (МРК, ГНК) : 53 [13:49:02]line Товар: 2710124130 [13:49:02]line Аи-92-К-5 [13:49:02]line 15.000 * 0.00 [13:49:02]line = 0.00 [13:49:02]line НДС 12% НСП 1% [13:49:02]line > о реализуемом товаре [13:49:02]line ИТОГО: 0.00 [13:49:02]line НСП 1% : 0.00 [13:49:02]line НДС 12% : 0.00 [13:49:02]line Наличными: 0.00 [13:49:02]line Безнал.: 0.00 [13:49:02]line Место: АЗС № 113 "Партнер Нефть" [13:49:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:49:02]line СНО: Общий режим [13:49:02]line Чек 84 30.10.2024 13:49 [13:49:02]line Смена: 556 ФФД: 1.0 [13:49:02]line ЗНМ: 0300000087 [13:49:02]line РНМ: 0000000000091644 [13:49:02]line Версия ККМ: 001 [13:49:02]line Талоны: Топливная Карта [13:49:02]line 02645 [13:49:02]line ФМ: 0000000000874662 [13:49:02]line ФД: 72847 [13:49:02]line ФПД: 103077122543814 [13:49:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T134901&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72847&fm=103077122543814&tin=02508201610067®Number=0000000000091644&sum=0 [13:49:02]written 0, free lines is 4095 [13:49:02]OFD Sender: Processing packet 72847 [packets to send 278, broken 277] [13:49:02]ProducePacketName [13:49:02]name=ofd_packets/00072847 [13:49:02]OFD Sender: To server: pG, [13:49:02]CommunicateWithHost lk.salyk.kg:30040 [13:49:02]ConnectInit lk.salyk.kg [13:49:02]Write to MH i2c: 01 00 00 8F 00 8F [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 DF 0C 81 [13:49:02]RasterBufferAndPrint [13:49:02]line [13:49:02]line [13:49:02]line [13:49:02]line [13:49:02]line [13:49:02]written 0, free lines is 3301 [13:49:02]MH_Cut [13:49:02]Write to MH i2c: D1 01 00 96 00 01 68 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: D1 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: D1 01 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: D1 01 00 96 00 00 67 [13:49:02]Write to MH i2c: 01 00 00 97 00 97 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]Connected sock=10 [13:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9E A7 07 01 7A 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 54 00 00 00 F4 03 04 00 4D 39 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1C 01 00 35 04 06 00 5D BF 83 46 10 C6 6D DF 5E 21 0A AE 2C 35 [13:49:03]*** Cut start [13:49:03]*** Partial cut [13:49:03]*** CUTSNS_PIN = 1 [13:49:03]*** CUTSNS_PIN = 0 [13:49:03]*** Brake cut motor [13:49:03]Read from MH i2c: 01 [13:49:03]MH_I2C_Read... [13:49:03]*** Stop cut motor [13:49:03]*** Cut end [13:49:03]Read from MH i2c: 01 07 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [13:49:03]process_action close_receipt done [13:49:03]requested_data is exist [13:49:03]produce_requested_data [13:49:03]requested_item fm.sn is exist - process it [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 11 00 00 [13:49:03]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 17 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [13:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:49:03]wFMCommunicate OK [13:49:03]requested_item fd.num is exist - process it [13:49:03]SAM_PROTO_GetFieldsCounters [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 13 00 00 [13:49:03]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:04]Read from MH i2c: E2 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 62 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8F 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [13:49:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8F 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:04]wFMCommunicate OK [13:49:04]SAM_PROTO_GetFieldsCounters done [13:49:04]requested_item shift.num is exist - process it [13:49:04]requested_item shift.opened is exist - process it [13:49:04]req_shift_opened [13:49:04]FM_GetShiftState [13:49:04]SAM_PROTO_GetShiftState [13:49:04]wFMCommunicate request_size=4 [13:49:04]MH_SAM_APDU [13:49:04]CAPDU: 80 13 01 00 [13:49:04]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 [13:49:04]MH_I2C_Read... [13:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:04]Read from MH i2c: E2 0E 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E9 [13:49:04]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:49:04]wFMCommunicate OK [13:49:04]SAM_PROTO_GetShiftState done [13:49:04]FM_GetShiftState done [13:49:04]req_shift_opened done [13:49:04]requested_item shift.open_date is exist - process it [13:49:04]req_shift_open_date [13:49:04]req_shift_open_date done [13:49:04]produce_requested_data done [13:49:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72847,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [13:49:04]process_action_free close_receipt [13:49:04]json_value_free [13:49:04]json_value_free done [13:49:04]process_json_proto returns [13:49:04]Send response to host [13:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72847,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [13:49:04]free response buf [13:49:04]execute_script done [13:49:04]execute_script returns [13:49:04]free content buf [13:49:04]Sock 7.Close socket [13:49:04]Sock 7.Thread stoped [13:49:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 64 5B 47 00 C3 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1C 01 00 F4 03 04 00 05 E4 21 67 B6 04 01 00 00 CE 1C FC 09 C5 E2 72 5A [13:49:04]CommunicateWithHost err = 0 [13:49:04]CheckOFDResponse [13:49:04]1017 (14) - 77093643461234 [13:49:04]1041 (16) - 0000000000874662 [13:49:04]1040 (4) - 72847 [13:49:04]1012 (4) - 30.10.2024 07:45 [13:49:04]1206 (1) - 0 [13:49:04]OFD Sender: Remove packet 72847 [13:49:04]ProducePacketName [13:49:04]name=ofd_packets/00072847 [13:49:04]NVStorageDeleteData [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:40]recv_with_timeout no data received [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:08]recv_with_timeout no data received [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:19]recv_with_timeout no data received [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:31]accept exits with 9 [13:53:31]New connection [13:53:31]New thread 3067247972 created [13:53:31]Thread 3067104612 joined [13:53:31]Waiting for new connection... [13:53:31] Sock 9.Parse request [13:53:31]Sock 9.Check first char [13:53:31]Sock 9.First char is OK [13:53:31]request: POST /json_proto HTTP/1.0 [13:53:31]Method: POST [13:53:31]URL: /json_proto [13:53:31]Method is POST - this is cgi request [13:53:31]url: /json_proto [13:53:31]query_string will be loaded in cgi processing [13:53:31]execute_cgi json_proto POST (null) [13:53:31]execute_cgi path=json_proto method=POST [13:53:31]POST find Content-Length [13:53:31]Host: 172.17.43.195:8080 [13:53:31]Content-Length: 677 [13:53:31]Content-Type: application/json [13:53:31] [13:53:31]POST finish read [13:53:31]Found Content-Length = 677 [13:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:31]execute_script... [13:53:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:31]POST & json_proto [13:53:31]process_json_proto [13:53:31]json parsed OK: [13:53:31]protocol is kg_v1.0 [13:53:31]action value=close_receipt [13:53:31]process_action close_receipt [13:53:31]cmd_close_receipt [13:53:31]MH_GetDate [13:53:31]Write to MH i2c: F0 00 00 9B 00 8A [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: F0 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: F0 09 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: F0 09 00 9B 00 00 5C 3A 22 67 74 2C AD 66 65 [13:53:31]GetLastDocTimeStamp 1730296141 [13:53:31]current date 1730296412 [13:53:31]FM_GetShiftState [13:53:31]SAM_PROTO_GetShiftState [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 13 01 00 [13:53:31]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 0E 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 EB [13:53:31]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:53:31]wFMCommunicate OK [13:53:31]SAM_PROTO_GetShiftState done [13:53:31]FM_GetShiftState done [13:53:31]opened in 1730247109 [13:53:31]opened+sec_in_day 1730333509 [13:53:31]quantity*price = 50041 [13:53:31]sum+1 = 50042 [13:53:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 85 30.10.2024 13:53 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72848 ФПД: 182289746257862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135332&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72848&fm=182289746257862&tin=02508201610067®Number=0000000000091644&sum=50000 [13:53:32]StoreToDocumentArchive [13:53:32]shift 556 fd 72848 [13:53:32]save to /storage/0556/doc_00072848 [13:53:32]save last doc name /storage/0556/doc_00072848 to /storage/kkm_last_doc_name [13:53:32]save OK [13:53:32]Clear old archive folders... [13:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:32]tlvbuf is 01D46090 [13:53:32]SAM_PROTO_ClearQueue [13:53:32]wFMCommunicate request_size=4 [13:53:32]MH_SAM_APDU [13:53:32]CAPDU: 80 09 00 00 [13:53:32]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [13:53:32]Write i2c OK [13:53:32]MH_I2C_Read... [13:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:32]Read from MH i2c: E2 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: E2 03 00 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [13:53:32]RAPDU: 90 00 [13:53:32]wFMCommunicate OK [13:53:32]SAM_PROTO_ClearQueue done [13:53:32]KKMCreateOFDPacket [13:53:32]OFDProtocolAddRootSTLVToBuf [13:53:32]FM_MakeSignedData [13:53:32]FM_MakeSignedData [13:53:32]SAM_PROTO_SignData [13:53:32]wFMCommunicate request_size=4 [13:53:32]MH_SAM_APDU [13:53:32]CAPDU: 80 0D 01 02 [13:53:32]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [13:53:32]Write i2c OK [13:53:32]MH_I2C_Read... [13:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:32]Read from MH i2c: E2 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: E2 03 00 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [13:53:32]RAPDU: 90 00 [13:53:32]wFMCommunicate OK [13:53:32]wFMCommunicate request_size=255 [13:53:32]MH_SAM_APDU [13:53:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5C 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1C 01 00 35 04 06 00 A5 [13:53:32]Write to MH i2c: E2 02 01 AB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5C 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1C 01 00 35 04 06 00 A5 00 00 A6 [13:53:32]Write i2c OK [13:53:32]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [13:53:33]RAPDU: 90 00 [13:53:33]wFMCommunicate OK [13:53:33]wFMCommunicate request_size=10 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 0D 02 02 05 CA A3 92 67 C6 [13:53:33]Write to MH i2c: E2 0D 00 AC 00 80 0D 02 02 05 00 CA A3 92 67 C6 00 00 5C [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [13:53:33]RAPDU: 90 00 [13:53:33]wFMCommunicate OK [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 0D 03 02 [13:53:33]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 0B 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 0B 00 AD 00 00 4F F1 34 55 EE BE 6D BF 90 00 CA [13:53:33]RAPDU: 4F F1 34 55 EE BE 6D BF 90 00 [13:53:33]wFMCommunicate OK [13:53:33]SAM_PROTO_SignData done [13:53:33]FM_MakeSignedData done [13:53:33]CreateOFDProtocolMessage [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 11 00 00 [13:53:33]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 17 00 [13:53:33]MH_I2C_Read... [13:53: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 38 37 34 36 36 32 90 00 7C [13:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:53:33]wFMCommunicate OK [13:53:33]CreateOFDProtocolMessage done [13:53:33]OFDSenderStorePacket 72848 [13:53:33]StoreOFDPacket docnum=72848 [13:53:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 28 DD 07 01 B2 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5C 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1C 01 00 35 04 06 00 A5 CA A3 92 67 C6 4F F1 34 55 EE BE 6D BF [13:53:33]CheckFolder [13:53:33]dirname=/storage/ofd_packets [13:53:33]CheckFolder done [13:53:33]ProducePacketName [13:53:33]name=ofd_packets/00072848 [13:53:33]NVStorageSaveData ofd_packets/00072848 [13:53:33]File name is /storage/ofd_packets/00072848 [13:53:33]Write 301 bytes [13:53:33]NVStorageSaveData done [13:53:33]OFDSenderStorePacket done [13:53:33]KKMCreateOFDPacket done [13:53:33]NVStorageSaveData kkm_last_timestamp [13:53:33]File name is /storage/kkm_last_timestamp [13:53:33]Write 4 bytes [13:53:33]NVStorageSaveData done [13:53:33]ExternCall_PrintAddStr [13:53:33]wPrintStart [13:53:33]Write to MH i2c: 01 00 00 AF 00 AF [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: 01 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: 01 07 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [13:53:33]RasterBufferAndPrint [13:53:33]line Счет N : (1)952423 [13:53:33]line ИНН: 02508201610067 [13:53:33]line Контрольно-Кассовый Чек [13:53:33]line ПРОДАЖА [13:53:33]line ТРК (МРК, ГНК) : 53 [13:53:33]line Товар: 2710124130 [13:53:33]line Аи-92-К-5 [13:53:33]line 7.480 * 66.90 [13:53:33]line = 500.41 [13:53:33]line НДС 12% НСП 1% [13:53:33]line > о реализуемом товаре [13:53:33]line ОКРУГЛЕНИЕ: -0.41 [13:53:33]line ИТОГО: 500.00 [13:53:33]line Внесено: 500.00 [13:53:33]line СДАЧА: 0.00 [13:53:33]line НСП 1% : 4.43 [13:53:33]line НДС 12% : 53.14 [13:53:33]line Наличными: 500.00 [13:53:33]line Безнал.: 0.00 [13:53:33]line Место: АЗС № 113 "Партнер Нефть" [13:53:33]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:53:33]line СНО: Общий режим [13:53:33]line Чек 85 30.10.2024 13:53 [13:53:33]line Смена: 556 ФФД: 1.0 [13:53:33]line ЗНМ: 0300000087 [13:53:33]line РНМ: 0000000000091644 [13:53:33]line Версия ККМ: 001 [13:53:33]line ФМ: 0000000000874662 [13:53:33]line ФД: 72848 [13:53:33]line ФПД: 182289746257862 [13:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135332&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72848&fm=182289746257862&tin=02508201610067®Number=0000000000091644&sum=50000 [13:53:33]written 0, free lines is 4095 [13:53:33]OFD Sender: Processing packet 72848 [packets to send 278, broken 277] [13:53:33]ProducePacketName [13:53:33]name=ofd_packets/00072848 [13:53:33]OFD Sender: To server: pG, [13:53:33]CommunicateWithHost lk.salyk.kg:30040 [13:53:33]ConnectInit lk.salyk.kg [13:53:33]Write to MH i2c: 01 00 00 DA 00 DA [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: 01 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: 01 07 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 D0 0C BD [13:53:33]RasterBufferAndPrint [13:53:33]line [13:53:33]line [13:53:33]line [13:53:33]line [13:53:33]line [13:53:33]written 0, free lines is 3288 [13:53:33]MH_Cut [13:53:33]Write to MH i2c: D1 01 00 E1 00 01 B3 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: D1 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: D1 01 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: D1 01 00 E1 00 00 B2 [13:53:33]Write to MH i2c: 01 00 00 E2 00 E2 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:34]*** Cut start [13:53:34]*** Partial cut [13:53:34]*** CUTSNS_PIN = 1 [13:53:34]*** CUTSNS_PIN = 0 [13:53:34]*** Brake cut motor [13:53:35]recv_with_timeout no data received [13:53:35]Read from MH i2c: 01 [13:53:35]MH_I2C_Read... [13:53:35]*** Stop cut motor [13:53:35]*** Cut end [13:53:35]Read from MH i2c: 01 07 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [13:53:35]process_action close_receipt done [13:53:35]requested_data is exist [13:53:35]produce_requested_data [13:53:35]requested_item fm.sn is exist - process it [13:53:35]wFMCommunicate request_size=4 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 11 00 00 [13:53:35]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 17 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B1 [13:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:53:35]wFMCommunicate OK [13:53:35]requested_item fd.num is exist - process it [13:53:35]SAM_PROTO_GetFieldsCounters [13:53:35]wFMCommunicate request_size=4 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 13 00 00 [13:53:35]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 62 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 90 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [13:53:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 90 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:35]wFMCommunicate OK [13:53:35]SAM_PROTO_GetFieldsCounters done [13:53:35]requested_item shift.num is exist - process it [13:53:35]requested_item shift.opened is exist - process it [13:53:35]req_shift_opened [13:53:35]FM_GetShiftState [13:53:35]SAM_PROTO_GetShiftState [13:53:35]wFMCommunicate request_size=4 [13:53:35]MH_SAM_APDU [13:53:35]CAPDU: 80 13 01 00 [13:53:35]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [13:53:35]Write i2c OK [13:53:35]MH_I2C_Read... [13:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:35]Read from MH i2c: E2 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 0E 00 [13:53:35]MH_I2C_Read... [13:53:35]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 34 [13:53:35]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:53:35]wFMCommunicate OK [13:53:35]SAM_PROTO_GetShiftState done [13:53:35]FM_GetShiftState done [13:53:35]req_shift_opened done [13:53:35]requested_item shift.open_date is exist - process it [13:53:35]req_shift_open_date [13:53:35]req_shift_open_date done [13:53:35]produce_requested_data done [13:53:35]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72848,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [13:53:35]process_action_free close_receipt [13:53:35]json_value_free [13:53:35]json_value_free done [13:53:35]process_json_proto returns [13:53:35]Send response to host [13:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72848,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [13:53:35]free response buf [13:53:35]execute_script done [13:53:35]execute_script returns [13:53:35]free content buf [13:53:35]Sock 9.Close socket [13:53:35]Sock 9.Thread stoped [13:53:38]ConnectInit Can't take IP for lk.salyk.kg [13:53:38]CommunicateWithHost connect error [13:53:38]CommunicateWithHost err = -1 [13:53:38]OFD Sender: Server communicate error [13:53:43]OFD Sender: Processing packet 72848 [packets to send 278, broken 277] [13:53:43]ProducePacketName [13:53:43]name=ofd_packets/00072848 [13:53:43]OFD Sender: To server: pG, [13:53:43]CommunicateWithHost lk.salyk.kg:30040 [13:53:43]ConnectInit lk.salyk.kg [13:53:48]ConnectInit Can't take IP for lk.salyk.kg [13:53:48]CommunicateWithHost connect error [13:53:48]CommunicateWithHost err = -1 [13:53:48]OFD Sender: Server communicate error [13:53:53]OFD Sender: Processing packet 72848 [packets to send 278, broken 277] [13:53:53]ProducePacketName [13:53:53]name=ofd_packets/00072848 [13:53:53]OFD Sender: To server: pG, [13:53:53]CommunicateWithHost lk.salyk.kg:30040 [13:53:53]ConnectInit lk.salyk.kg [13:53:55]Connected sock=9 [13:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 28 DD 07 01 B2 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 5C 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1C 01 00 35 04 06 00 A5 CA A3 92 67 C6 4F F1 34 55 EE BE 6D BF [13:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 08 D5 47 00 35 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 38 37 34 36 36 32 10 04 04 00 90 1C 01 00 F4 03 04 00 2A E5 21 67 B6 04 01 00 00 79 AE B4 12 4F A0 02 F7 [13:53:55]CommunicateWithHost err = 0 [13:53:55]CheckOFDResponse [13:53:55]1017 (14) - 77093643461234 [13:53:55]1041 (16) - 0000000000874662 [13:53:55]1040 (4) - 72848 [13:53:55]1012 (4) - 30.10.2024 07:50 [13:53:55]1206 (1) - 0 [13:53:55]OFD Sender: Remove packet 72848 [13:53:55]ProducePacketName [13:53:55]name=ofd_packets/00072848 [13:53:55]NVStorageDeleteData [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:44]accept exits with 10 [13:54:44]New connection [13:54:44]New thread 3067104612 created [13:54:44]Thread 3067247972 joined [13:54:44]Waiting for new connection... [13:54:44] Sock 10.Parse request [13:54:44]Sock 10.Check first char [13:54:44]Sock 10.First char is OK [13:54:44]request: POST /json_proto HTTP/1.0 [13:54:44]Method: POST [13:54:44]URL: /json_proto [13:54:44]Method is POST - this is cgi request [13:54:44]url: /json_proto [13:54:44]query_string will be loaded in cgi processing [13:54:44]execute_cgi json_proto POST (null) [13:54:44]execute_cgi path=json_proto method=POST [13:54:44]POST find Content-Length [13:54:44]Host: 172.17.43.195:8080 [13:54:44]Content-Length: 677 [13:54:44]Content-Type: application/json [13:54:44] [13:54:44]POST finish read [13:54:44]Found Content-Length = 677 [13:54:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:44]execute_script... [13:54: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)952425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:44]POST & json_proto [13:54:44]process_json_proto [13:54:44]json parsed OK: [13:54:44]protocol is kg_v1.0 [13:54:44]action value=close_receipt [13:54:44]process_action close_receipt [13:54:44]cmd_close_receipt [13:54:44]MH_GetDate [13:54:44]Write to MH i2c: F0 00 00 E6 00 D5 [13:54:44]Write i2c OK [13:54:44]MH_I2C_Read... [13:54:44]Read from MH i2c: F0 [13:54:44]MH_I2C_Read... [13:54:44]Read from MH i2c: F0 09 00 [13:54:44]MH_I2C_Read... [13:54:44]Read from MH i2c: F0 09 00 E6 00 00 A5 3A 22 67 74 2C AD 66 F9 [13:54:44]GetLastDocTimeStamp 1730296412 [13:54:44]current date 1730296485 [13:54:44]FM_GetShiftState [13:54:44]SAM_PROTO_GetShiftState [13:54:44]wFMCommunicate request_size=4 [13:54:44]MH_SAM_APDU [13:54:44]CAPDU: 80 13 01 00 [13:54:44]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [13:54:44]Write i2c OK [13:54:44]MH_I2C_Read... [13:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:44]Read from MH i2c: E2 [13:54:44]MH_I2C_Read... [13:54:44]Read from MH i2c: E2 0E 00 [13:54:44]MH_I2C_Read... [13:54:44]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 36 [13:54:44]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:54:44]wFMCommunicate OK [13:54:44]SAM_PROTO_GetShiftState done [13:54:44]FM_GetShiftState done [13:54:44]opened in 1730247109 [13:54:44]opened+sec_in_day 1730333509 [13:54:44]quantity*price = 20003 [13:54:44]sum+1 = 20004 [13:54:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 86 30.10.2024 13:54 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72849 ФПД: 257655111986245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135445&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72849&fm=257655111986245&tin=02508201610067®Number=0000000000091644&sum=20000 [13:54:45]StoreToDocumentArchive [13:54:45]shift 556 fd 72849 [13:54:45]save to /storage/0556/doc_00072849 [13:54:45]save last doc name /storage/0556/doc_00072849 to /storage/kkm_last_doc_name [13:54:45]save OK [13:54:45]Clear old archive folders... [13:54:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:45]tlvbuf is 01D21840 [13:54:45]SAM_PROTO_ClearQueue [13:54:45]wFMCommunicate request_size=4 [13:54:45]MH_SAM_APDU [13:54:45]CAPDU: 80 09 00 00 [13:54:45]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [13:54:45]Write i2c OK [13:54:45]MH_I2C_Read... [13:54:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:45]Read from MH i2c: E2 [13:54:45]MH_I2C_Read... [13:54:45]Read from MH i2c: E2 03 00 [13:54:45]MH_I2C_Read... [13:54:45]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [13:54:45]RAPDU: 90 00 [13:54:45]wFMCommunicate OK [13:54:45]SAM_PROTO_ClearQueue done [13:54:45]KKMCreateOFDPacket [13:54:45]OFDProtocolAddRootSTLVToBuf [13:54:45]FM_MakeSignedData [13:54:45]FM_MakeSignedData [13:54:45]SAM_PROTO_SignData [13:54:45]wFMCommunicate request_size=4 [13:54:45]MH_SAM_APDU [13:54:45]CAPDU: 80 0D 01 02 [13:54:45]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [13:54:45]Write i2c OK [13:54:45]MH_I2C_Read... [13:54:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:45]Read from MH i2c: E2 [13:54:45]MH_I2C_Read... [13:54:45]Read from MH i2c: E2 03 00 [13:54:45]MH_I2C_Read... [13:54:45]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [13:54:45]RAPDU: 90 00 [13:54:45]wFMCommunicate OK [13:54:45]wFMCommunicate request_size=255 [13:54:45]MH_SAM_APDU [13:54:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A5 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1C 01 00 35 04 06 00 EA [13:54:45]Write to MH i2c: E2 02 01 F6 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A5 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1C 01 00 35 04 06 00 EA 00 00 43 [13:54:45]Write i2c OK [13:54:45]MH_I2C_Read... [13:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:46]Read from MH i2c: E2 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: E2 03 00 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [13:54:46]RAPDU: 90 00 [13:54:46]wFMCommunicate OK [13:54:46]wFMCommunicate request_size=10 [13:54:46]MH_SAM_APDU [13:54:46]CAPDU: 80 0D 02 02 05 56 01 6C AC 45 [13:54:46]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 56 01 6C AC 45 00 00 2F [13:54:46]Write i2c OK [13:54:46]MH_I2C_Read... [13:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:46]Read from MH i2c: E2 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: E2 03 00 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [13:54:46]RAPDU: 90 00 [13:54:46]wFMCommunicate OK [13:54:46]wFMCommunicate request_size=4 [13:54:46]MH_SAM_APDU [13:54:46]CAPDU: 80 0D 03 02 [13:54:46]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [13:54:46]Write i2c OK [13:54:46]MH_I2C_Read... [13:54:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:46]Read from MH i2c: E2 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: E2 0B 00 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: E2 0B 00 F8 00 00 88 2A 17 8F E6 AB 26 05 90 00 88 [13:54:46]RAPDU: 88 2A 17 8F E6 AB 26 05 90 00 [13:54:46]wFMCommunicate OK [13:54:46]SAM_PROTO_SignData done [13:54:46]FM_MakeSignedData done [13:54:46]CreateOFDProtocolMessage [13:54:46]wFMCommunicate request_size=4 [13:54:46]MH_SAM_APDU [13:54:46]CAPDU: 80 11 00 00 [13:54:46]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [13:54:46]Write i2c OK [13:54:46]MH_I2C_Read... [13:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:46]Read from MH i2c: E2 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: E2 17 00 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [13:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:54:46]wFMCommunicate OK [13:54:46]CreateOFDProtocolMessage done [13:54:46]OFDSenderStorePacket 72849 [13:54:46]StoreOFDPacket docnum=72849 [13:54:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E0 D3 07 01 6D D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A5 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1C 01 00 35 04 06 00 EA 56 01 6C AC 45 88 2A 17 8F E6 AB 26 05 [13:54:46]CheckFolder [13:54:46]dirname=/storage/ofd_packets [13:54:46]CheckFolder done [13:54:46]ProducePacketName [13:54:46]name=ofd_packets/00072849 [13:54:46]NVStorageSaveData ofd_packets/00072849 [13:54:46]File name is /storage/ofd_packets/00072849 [13:54:46]Write 301 bytes [13:54:46]NVStorageSaveData done [13:54:46]OFDSenderStorePacket done [13:54:46]KKMCreateOFDPacket done [13:54:46]NVStorageSaveData kkm_last_timestamp [13:54:46]File name is /storage/kkm_last_timestamp [13:54:46]Write 4 bytes [13:54:46]NVStorageSaveData done [13:54:46]ExternCall_PrintAddStr [13:54:46]wPrintStart [13:54:46]Write to MH i2c: 01 00 00 FA 00 FA [13:54:46]Write i2c OK [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: 01 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: 01 07 00 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [13:54:46]RasterBufferAndPrint [13:54:46]line Счет N : (1)952425 [13:54:46]line ИНН: 02508201610067 [13:54:46]line Контрольно-Кассовый Чек [13:54:46]line ПРОДАЖА [13:54:46]line ТРК (МРК, ГНК) : 63 [13:54:46]line Товар: 2710124130 [13:54:46]line Аи-92-К-5 [13:54:46]line 2.990 * 66.90 [13:54:46]line = 200.03 [13:54:46]line НДС 12% НСП 1% [13:54:46]line > о реализуемом товаре [13:54:46]line ОКРУГЛЕНИЕ: -0.03 [13:54:46]line ИТОГО: 200.00 [13:54:46]line Внесено: 200.00 [13:54:46]line СДАЧА: 0.00 [13:54:46]line НСП 1% : 1.77 [13:54:46]line НДС 12% : 21.24 [13:54:46]line Наличными: 200.00 [13:54:46]line Безнал.: 0.00 [13:54:46]line Место: АЗС № 113 "Партнер Нефть" [13:54:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:54:46]line СНО: Общий режим [13:54:46]line Чек 86 30.10.2024 13:54 [13:54:46]line Смена: 556 ФФД: 1.0 [13:54:46]line ЗНМ: 0300000087 [13:54:46]line РНМ: 0000000000091644 [13:54:46]line Версия ККМ: 001 [13:54:46]line ФМ: 0000000000874662 [13:54:46]line ФД: 72849 [13:54:46]line ФПД: 257655111986245 [13:54:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135445&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72849&fm=257655111986245&tin=02508201610067®Number=0000000000091644&sum=20000 [13:54:46]OFD Sender: Processing packet 72849 [packets to send 278, broken 277] [13:54:46]ProducePacketName [13:54:46]name=ofd_packets/00072849 [13:54:46]OFD Sender: To server: pG, [13:54:46]CommunicateWithHost lk.salyk.kg:30040 [13:54:46]ConnectInit lk.salyk.kg [13:54:46]written 0, free lines is 4095 [13:54:46]Write to MH i2c: 01 00 00 25 01 26 [13:54:46]Write i2c OK [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: 01 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: 01 07 00 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 CD 0C 06 [13:54:46]RasterBufferAndPrint [13:54:46]line [13:54:46]line [13:54:46]line [13:54:46]line [13:54:46]line [13:54:46]written 0, free lines is 3280 [13:54:46]MH_Cut [13:54:46]Write to MH i2c: D1 01 00 2C 01 01 FF [13:54:46]Write i2c OK [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: D1 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: D1 01 00 [13:54:46]MH_I2C_Read... [13:54:46]Read from MH i2c: D1 01 00 2C 01 00 FE [13:54:46]Write to MH i2c: 01 00 00 2D 01 2E [13:54:46]Write i2c OK [13:54:46]MH_I2C_Read... [13:54:47]*** Cut start [13:54:47]*** Partial cut [13:54:47]*** CUTSNS_PIN = 1 [13:54:47]*** CUTSNS_PIN = 0 [13:54:48]*** Brake cut motor [13:54:48]Read from MH i2c: 01 [13:54:48]MH_I2C_Read... [13:54:48]*** Stop cut motor [13:54:48]*** Cut end [13:54:48]Read from MH i2c: 01 07 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [13:54:48]process_action close_receipt done [13:54:48]requested_data is exist [13:54:48]produce_requested_data [13:54:48]requested_item fm.sn is exist - process it [13:54:48]wFMCommunicate request_size=4 [13:54:48]MH_SAM_APDU [13:54:48]CAPDU: 80 11 00 00 [13:54:48]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:48]Read from MH i2c: E2 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 17 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FD [13:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:54:48]wFMCommunicate OK [13:54:48]requested_item fd.num is exist - process it [13:54:48]SAM_PROTO_GetFieldsCounters [13:54:48]wFMCommunicate request_size=4 [13:54:48]MH_SAM_APDU [13:54:48]CAPDU: 80 13 00 00 [13:54:48]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:48]Read from MH i2c: E2 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 62 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 91 1C 01 00 0E 04 04 00 2C 02 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 AB [13:54:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 91 1C 01 00 0E 04 04 00 2C 02 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 [13:54:48]wFMCommunicate OK [13:54:48]SAM_PROTO_GetFieldsCounters done [13:54:48]requested_item shift.num is exist - process it [13:54:48]requested_item shift.opened is exist - process it [13:54:48]req_shift_opened [13:54:48]FM_GetShiftState [13:54:48]SAM_PROTO_GetShiftState [13:54:48]wFMCommunicate request_size=4 [13:54:48]MH_SAM_APDU [13:54:48]CAPDU: 80 13 01 00 [13:54:48]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [13:54:48]Write i2c OK [13:54:48]MH_I2C_Read... [13:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:48]Read from MH i2c: E2 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 0E 00 [13:54:48]MH_I2C_Read... [13:54:48]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 80 [13:54:48]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [13:54:48]wFMCommunicate OK [13:54:48]SAM_PROTO_GetShiftState done [13:54:48]FM_GetShiftState done [13:54:48]req_shift_opened done [13:54:48]requested_item shift.open_date is exist - process it [13:54:48]req_shift_open_date [13:54:48]req_shift_open_date done [13:54:48]produce_requested_data done [13:54:48]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72849,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [13:54:48]process_action_free close_receipt [13:54:48]json_value_free [13:54:48]json_value_free done [13:54:48]process_json_proto returns [13:54:48]Send response to host [13:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72849,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [13:54:48]free response buf [13:54:48]execute_script done [13:54:48]execute_script returns [13:54:48]free content buf [13:54:48]Sock 10.Close socket [13:54:48]Sock 10.Thread stoped [13:54:51]ConnectInit Can't take IP for lk.salyk.kg [13:54:51]CommunicateWithHost connect error [13:54:51]CommunicateWithHost err = -1 [13:54:51]OFD Sender: Server communicate error [13:54:56]OFD Sender: Processing packet 72849 [packets to send 278, broken 277] [13:54:56]ProducePacketName [13:54:56]name=ofd_packets/00072849 [13:54:56]OFD Sender: To server: pG, [13:54:56]CommunicateWithHost lk.salyk.kg:30040 [13:54:56]ConnectInit lk.salyk.kg [13:54:57]Connected sock=9 [13:54:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E0 D3 07 01 6D D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 A5 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1C 01 00 35 04 06 00 EA 56 01 6C AC 45 88 2A 17 8F E6 AB 26 05 [13:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 59 8B 47 00 FB 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1C 01 00 F4 03 04 00 68 E5 21 67 B6 04 01 00 00 60 62 C8 25 54 10 0A 6C [13:54:57]CommunicateWithHost err = 0 [13:54:57]CheckOFDResponse [13:54:57]1017 (14) - 77093643461234 [13:54:57]1041 (16) - 0000000000874662 [13:54:57]1040 (4) - 72849 [13:54:57]1012 (4) - 30.10.2024 07:51 [13:54:57]1206 (1) - 0 [13:54:57]OFD Sender: Remove packet 72849 [13:54:57]ProducePacketName [13:54:57]name=ofd_packets/00072849 [13:54:57]NVStorageDeleteData [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:06]recv_with_timeout no data received [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:10]recv_with_timeout no data received [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:02]recv_with_timeout no data received [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:20]recv_with_timeout no data received [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]recv_with_timeout no data received [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:29]recv_with_timeout no data received [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:40]recv_with_timeout no data received [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:55]recv_with_timeout no data received [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:06]recv_with_timeout no data received [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:06]accept exits with 7 [14:02:06]New connection [14:02:06]New thread 3067247972 created [14:02:06]Thread 3067104612 joined [14:02:06]Waiting for new connection... [14:02:06] Sock 7.Parse request [14:02:06]Sock 7.Check first char [14:02:06]Sock 7.First char is OK [14:02:06]request: POST /json_proto HTTP/1.0 [14:02:06]Method: POST [14:02:06]URL: /json_proto [14:02:06]Method is POST - this is cgi request [14:02:06]url: /json_proto [14:02:06]query_string will be loaded in cgi processing [14:02:06]execute_cgi json_proto POST (null) [14:02:06]execute_cgi path=json_proto method=POST [14:02:06]POST find Content-Length [14:02:06]Host: 172.17.43.195:8080 [14:02:06]Content-Length: 677 [14:02:06]Content-Type: application/json [14:02:06] [14:02:06]POST finish read [14:02:06]Found Content-Length = 677 [14:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:06]execute_script... [14:02:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:06]POST & json_proto [14:02:06]process_json_proto [14:02:06]json parsed OK: [14:02:06]protocol is kg_v1.0 [14:02:06]action value=close_receipt [14:02:06]process_action close_receipt [14:02:06]cmd_close_receipt [14:02:06]MH_GetDate [14:02:06]Write to MH i2c: F0 00 00 31 01 21 [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: F0 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: F0 09 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: F0 09 00 31 01 00 5F 3C 22 67 74 2C AD 66 01 [14:02:06]GetLastDocTimeStamp 1730296485 [14:02:06]current date 1730296927 [14:02:06]FM_GetShiftState [14:02:06]SAM_PROTO_GetShiftState [14:02:06]wFMCommunicate request_size=4 [14:02:06]MH_SAM_APDU [14:02:06]CAPDU: 80 13 01 00 [14:02:06]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:06]Read from MH i2c: E2 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 0E 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 82 [14:02:06]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:02:06]wFMCommunicate OK [14:02:06]SAM_PROTO_GetShiftState done [14:02:06]FM_GetShiftState done [14:02:06]opened in 1730247109 [14:02:06]opened+sec_in_day 1730333509 [14:02:06]quantity*price = 50041 [14:02:06]sum+1 = 50042 [14:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 87 30.10.2024 14:02 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72850 ФПД: 180704270160600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140207&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72850&fm=180704270160600&tin=02508201610067®Number=0000000000091644&sum=50000 [14:02:07]StoreToDocumentArchive [14:02:07]shift 556 fd 72850 [14:02:07]save to /storage/0556/doc_00072850 [14:02:07]save last doc name /storage/0556/doc_00072850 to /storage/kkm_last_doc_name [14:02:07]save OK [14:02:07]Clear old archive folders... [14:02:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:07]tlvbuf is 01D448E0 [14:02:07]SAM_PROTO_ClearQueue [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 09 00 00 [14:02:07]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [14:02:07]RAPDU: 90 00 [14:02:07]wFMCommunicate OK [14:02:07]SAM_PROTO_ClearQueue done [14:02:07]KKMCreateOFDPacket [14:02:07]OFDProtocolAddRootSTLVToBuf [14:02:07]FM_MakeSignedData [14:02:07]FM_MakeSignedData [14:02:07]SAM_PROTO_SignData [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 0D 01 02 [14:02:07]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [14:02:07]RAPDU: 90 00 [14:02:07]wFMCommunicate OK [14:02:07]wFMCommunicate request_size=255 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5F 3C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1C 01 00 35 04 06 00 A4 [14:02:07]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5F 3C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1C 01 00 35 04 06 00 A4 00 00 45 [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:07]Read from MH i2c: E2 03 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [14:02:07]RAPDU: 90 00 [14:02:07]wFMCommunicate OK [14:02:07]wFMCommunicate request_size=10 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 0D 02 02 05 59 7D D5 12 D8 [14:02:07]Write to MH i2c: E2 0D 00 42 01 80 0D 02 02 05 00 59 7D D5 12 D8 00 00 5C [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [14:02:07]RAPDU: 90 00 [14:02:07]wFMCommunicate OK [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 0D 03 02 [14:02:07]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 0B 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 0B 00 43 01 00 BC DB 79 B6 AE 32 30 C8 90 00 5E [14:02:07]RAPDU: BC DB 79 B6 AE 32 30 C8 90 00 [14:02:07]wFMCommunicate OK [14:02:07]SAM_PROTO_SignData done [14:02:07]FM_MakeSignedData done [14:02:07]CreateOFDProtocolMessage [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 11 00 00 [14:02:07]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 17 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 13 [14:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:02:07]wFMCommunicate OK [14:02:07]CreateOFDProtocolMessage done [14:02:07]OFDSenderStorePacket 72850 [14:02:07]StoreOFDPacket docnum=72850 [14:02:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 80 9B 07 01 D1 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5F 3C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1C 01 00 35 04 06 00 A4 59 7D D5 12 D8 BC DB 79 B6 AE 32 30 C8 [14:02:07]CheckFolder [14:02:07]dirname=/storage/ofd_packets [14:02:07]CheckFolder done [14:02:07]ProducePacketName [14:02:07]name=ofd_packets/00072850 [14:02:07]NVStorageSaveData ofd_packets/00072850 [14:02:07]File name is /storage/ofd_packets/00072850 [14:02:07]Write 301 bytes [14:02:07]NVStorageSaveData done [14:02:07]OFDSenderStorePacket done [14:02:07]KKMCreateOFDPacket done [14:02:07]NVStorageSaveData kkm_last_timestamp [14:02:07]File name is /storage/kkm_last_timestamp [14:02:07]Write 4 bytes [14:02:07]NVStorageSaveData done [14:02:07]ExternCall_PrintAddStr [14:02:07]wPrintStart [14:02:07]Write to MH i2c: 01 00 00 45 01 46 [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: 01 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: 01 07 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [14:02:07]RasterBufferAndPrint [14:02:07]line Счет N : (1)952426 [14:02:07]line ИНН: 02508201610067 [14:02:07]line Контрольно-Кассовый Чек [14:02:07]line ПРОДАЖА [14:02:07]line ТРК (МРК, ГНК) : 53 [14:02:07]line Товар: 2710124130 [14:02:07]line Аи-92-К-5 [14:02:07]line 7.480 * 66.90 [14:02:07]line = 500.41 [14:02:07]line НДС 12% НСП 1% [14:02:07]line > о реализуемом товаре [14:02:07]line ОКРУГЛЕНИЕ: -0.41 [14:02:07]line ИТОГО: 500.00 [14:02:07]line Внесено: 500.00 [14:02:07]line СДАЧА: 0.00 [14:02:07]line НСП 1% : 4.43 [14:02:07]line НДС 12% : 53.14 [14:02:07]line Наличными: 500.00 [14:02:07]line Безнал.: 0.00 [14:02:07]line Место: АЗС № 113 "Партнер Нефть" [14:02:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:02:07]line СНО: Общий режим [14:02:07]line Чек 87 30.10.2024 14:02 [14:02:07]line Смена: 556 ФФД: 1.0 [14:02:07]line ЗНМ: 0300000087 [14:02:07]line РНМ: 0000000000091644 [14:02:07]line Версия ККМ: 001 [14:02:07]line ФМ: 0000000000874662 [14:02:07]line ФД: 72850 [14:02:07]line ФПД: 180704270160600 [14:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140207&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72850&fm=180704270160600&tin=02508201610067®Number=0000000000091644&sum=50000 [14:02:08]OFD Sender: Processing packet 72850 [packets to send 278, broken 277] [14:02:08]ProducePacketName [14:02:08]name=ofd_packets/00072850 [14:02:08]OFD Sender: To server: pG, [14:02:08]CommunicateWithHost lk.salyk.kg:30040 [14:02:08]ConnectInit lk.salyk.kg [14:02:08]written 0, free lines is 4095 [14:02:08]Write to MH i2c: 01 00 00 70 01 71 [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: 01 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: 01 07 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 CA 0C 4E [14:02:08]RasterBufferAndPrint [14:02:08]line [14:02:08]line [14:02:08]line [14:02:08]line [14:02:08]line [14:02:08]written 0, free lines is 3277 [14:02:08]MH_Cut [14:02:08]Write to MH i2c: D1 01 00 77 01 01 4A [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: D1 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: D1 01 00 [14:02:08]MH_I2C_Read... [14:02:08]Read from MH i2c: D1 01 00 77 01 00 49 [14:02:08]Write to MH i2c: 01 00 00 78 01 79 [14:02:08]Write i2c OK [14:02:08]MH_I2C_Read... [14:02:09]*** Cut start [14:02:09]*** Partial cut [14:02:09]*** CUTSNS_PIN = 1 [14:02:09]*** CUTSNS_PIN = 0 [14:02:09]*** Brake cut motor [14:02:10]Connected sock=11 [14:02:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 80 9B 07 01 D1 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5F 3C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1C 01 00 35 04 06 00 A4 59 7D D5 12 D8 BC DB 79 B6 AE 32 30 C8 [14:02:10]Read from MH i2c: 01 [14:02:10]MH_I2C_Read... [14:02:10]*** Stop cut motor [14:02:10]*** Cut end [14:02:10]Read from MH i2c: 01 07 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [14:02:10]process_action close_receipt done [14:02:10]requested_data is exist [14:02:10]produce_requested_data [14:02:10]requested_item fm.sn is exist - process it [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 11 00 00 [14:02:10]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 17 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [14:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:02:10]wFMCommunicate OK [14:02:10]requested_item fd.num is exist - process it [14:02:10]SAM_PROTO_GetFieldsCounters [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 13 00 00 [14:02:10]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 62 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 92 1C 01 00 0E 04 04 00 2C 02 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 FA [14:02:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 92 1C 01 00 0E 04 04 00 2C 02 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 [14:02:10]wFMCommunicate OK [14:02:10]SAM_PROTO_GetFieldsCounters done [14:02:10]requested_item shift.num is exist - process it [14:02:10]requested_item shift.opened is exist - process it [14:02:10]req_shift_opened [14:02:10]FM_GetShiftState [14:02:10]SAM_PROTO_GetShiftState [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 13 01 00 [14:02:10]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 0E 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 CB [14:02:10]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:02:10]wFMCommunicate OK [14:02:10]SAM_PROTO_GetShiftState done [14:02:10]FM_GetShiftState done [14:02:10]req_shift_opened done [14:02:10]requested_item shift.open_date is exist - process it [14:02:10]req_shift_open_date [14:02:10]req_shift_open_date done [14:02:10]produce_requested_data done [14:02:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72850,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [14:02:10]process_action_free close_receipt [14:02:10]json_value_free [14:02:10]json_value_free done [14:02:10]process_json_proto returns [14:02:10]Send response to host [14:02:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72850,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [14:02:10]free response buf [14:02:10]execute_script done [14:02:10]execute_script returns [14:02:10]free content buf [14:02:10]Sock 7.Close socket [14:02:10]Sock 7.Thread stoped [14:02:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D9 85 47 00 6E C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1C 01 00 F4 03 04 00 19 E7 21 67 B6 04 01 00 00 7A C0 AF C3 8B 10 98 96 [14:02:10]CommunicateWithHost err = 0 [14:02:10]CheckOFDResponse [14:02:10]1017 (14) - 77093643461234 [14:02:10]1041 (16) - 0000000000874662 [14:02:10]1040 (4) - 72850 [14:02:10]1012 (4) - 30.10.2024 07:58 [14:02:10]1206 (1) - 0 [14:02:10]OFD Sender: Remove packet 72850 [14:02:10]ProducePacketName [14:02:10]name=ofd_packets/00072850 [14:02:10]NVStorageDeleteData [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:20]recv_with_timeout no data received [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:39]recv_with_timeout no data received [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:40]recv_with_timeout no data received [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:03]recv_with_timeout no data received [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:12]recv_with_timeout no data received [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:42]recv_with_timeout no data received [14:05:46]OFD Sender: No OFD packet to send [14:05:46]accept exits with 9 [14:05:46]New connection [14:05:46]New thread 3067104612 created [14:05:46]Thread 3067247972 joined [14:05:46]Waiting for new connection... [14:05:46] Sock 9.Parse request [14:05:46]Sock 9.Check first char [14:05:46]Sock 9.First char is OK [14:05:46]request: POST /json_proto HTTP/1.0 [14:05:46]Method: POST [14:05:46]URL: /json_proto [14:05:46]Method is POST - this is cgi request [14:05:46]url: /json_proto [14:05:46]query_string will be loaded in cgi processing [14:05:46]execute_cgi json_proto POST (null) [14:05:46]execute_cgi path=json_proto method=POST [14:05:46]POST find Content-Length [14:05:46]Host: 172.17.43.195:8080 [14:05:46]Content-Length: 678 [14:05:46]Content-Type: application/json [14:05:46] [14:05:46]POST finish read [14:05:46]Found Content-Length = 678 [14:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:46]execute_script... [14:05:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:46]POST & json_proto [14:05:46]process_json_proto [14:05:46]json parsed OK: [14:05:46]protocol is kg_v1.0 [14:05:46]action value=close_receipt [14:05:46]process_action close_receipt [14:05:46]cmd_close_receipt [14:05:46]MH_GetDate [14:05:46]Write to MH i2c: F0 00 00 7C 01 6C [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: F0 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: F0 09 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: F0 09 00 7C 01 00 3B 3D 22 67 74 2C AD 66 29 [14:05:46]GetLastDocTimeStamp 1730296927 [14:05:46]current date 1730297147 [14:05:46]FM_GetShiftState [14:05:46]SAM_PROTO_GetShiftState [14:05:46]wFMCommunicate request_size=4 [14:05:46]MH_SAM_APDU [14:05:46]CAPDU: 80 13 01 00 [14:05:46]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:46]Read from MH i2c: E2 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: E2 0E 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 CD [14:05:46]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:05:46]wFMCommunicate OK [14:05:46]SAM_PROTO_GetShiftState done [14:05:46]FM_GetShiftState done [14:05:46]opened in 1730247109 [14:05:46]opened+sec_in_day 1730333509 [14:05:46]quantity*price = 70044 [14:05:46]sum+1 = 70045 [14:05:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 88 30.10.2024 14:05 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72851 ФПД: 6700772467193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140547&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72851&fm=6700772467193&tin=02508201610067®Number=0000000000091644&sum=70000 [14:05:47]StoreToDocumentArchive [14:05:47]shift 556 fd 72851 [14:05:47]save to /storage/0556/doc_00072851 [14:05:47]save last doc name /storage/0556/doc_00072851 to /storage/kkm_last_doc_name [14:05:47]save OK [14:05:47]Clear old archive folders... [14:05:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:47]tlvbuf is 01DA27A0 [14:05:47]SAM_PROTO_ClearQueue [14:05:47]wFMCommunicate request_size=4 [14:05:47]MH_SAM_APDU [14:05:47]CAPDU: 80 09 00 00 [14:05:47]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:47]Read from MH i2c: E2 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 03 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [14:05:47]RAPDU: 90 00 [14:05:47]wFMCommunicate OK [14:05:47]SAM_PROTO_ClearQueue done [14:05:47]KKMCreateOFDPacket [14:05:47]OFDProtocolAddRootSTLVToBuf [14:05:47]FM_MakeSignedData [14:05:47]FM_MakeSignedData [14:05:47]SAM_PROTO_SignData [14:05:47]wFMCommunicate request_size=4 [14:05:47]MH_SAM_APDU [14:05:47]CAPDU: 80 0D 01 02 [14:05:47]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:47]Read from MH i2c: E2 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 03 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [14:05:47]RAPDU: 90 00 [14:05:47]wFMCommunicate OK [14:05:47]wFMCommunicate request_size=255 [14:05:47]MH_SAM_APDU [14:05:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 3B 3D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1C 01 00 35 04 06 00 06 [14:05:47]Write to MH i2c: E2 02 01 8C 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 3B 3D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1C 01 00 35 04 06 00 06 00 00 E1 [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:48]Read from MH i2c: E2 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 03 00 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [14:05:48]RAPDU: 90 00 [14:05:48]wFMCommunicate OK [14:05:48]wFMCommunicate request_size=10 [14:05:48]MH_SAM_APDU [14:05:48]CAPDU: 80 0D 02 02 05 18 25 29 A1 F9 [14:05:48]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 18 25 29 A1 F9 00 00 12 [14:05:48]Write i2c OK [14:05:48]MH_I2C_Read... [14:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:48]Read from MH i2c: E2 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 03 00 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [14:05:48]RAPDU: 90 00 [14:05:48]wFMCommunicate OK [14:05:48]wFMCommunicate request_size=4 [14:05:48]MH_SAM_APDU [14:05:48]CAPDU: 80 0D 03 02 [14:05:48]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [14:05:48]Write i2c OK [14:05:48]MH_I2C_Read... [14:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:48]Read from MH i2c: E2 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 0B 00 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 0B 00 8E 01 00 14 CE D2 7C B3 68 91 AE 90 00 95 [14:05:48]RAPDU: 14 CE D2 7C B3 68 91 AE 90 00 [14:05:48]wFMCommunicate OK [14:05:48]SAM_PROTO_SignData done [14:05:48]FM_MakeSignedData done [14:05:48]CreateOFDProtocolMessage [14:05:48]wFMCommunicate request_size=4 [14:05:48]MH_SAM_APDU [14:05:48]CAPDU: 80 11 00 00 [14:05:48]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [14:05:48]Write i2c OK [14:05:48]MH_I2C_Read... [14:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:48]Read from MH i2c: E2 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 17 00 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5E [14:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:05:48]wFMCommunicate OK [14:05:48]CreateOFDProtocolMessage done [14:05:48]OFDSenderStorePacket 72851 [14:05:48]StoreOFDPacket docnum=72851 [14:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D4 B8 07 01 B5 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 3B 3D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1C 01 00 35 04 06 00 06 18 25 29 A1 F9 14 CE D2 7C B3 68 91 AE [14:05:48]CheckFolder [14:05:48]dirname=/storage/ofd_packets [14:05:48]CheckFolder done [14:05:48]ProducePacketName [14:05:48]name=ofd_packets/00072851 [14:05:48]NVStorageSaveData ofd_packets/00072851 [14:05:48]File name is /storage/ofd_packets/00072851 [14:05:48]Write 301 bytes [14:05:48]NVStorageSaveData done [14:05:48]OFDSenderStorePacket done [14:05:48]KKMCreateOFDPacket done [14:05:48]NVStorageSaveData kkm_last_timestamp [14:05:48]File name is /storage/kkm_last_timestamp [14:05:48]Write 4 bytes [14:05:48]NVStorageSaveData done [14:05:48]ExternCall_PrintAddStr [14:05:48]wPrintStart [14:05:48]Write to MH i2c: 01 00 00 90 01 91 [14:05:48]Write i2c OK [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: 01 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: 01 07 00 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [14:05:48]RasterBufferAndPrint [14:05:48]line Счет N : (1)952427 [14:05:48]line ИНН: 02508201610067 [14:05:48]line Контрольно-Кассовый Чек [14:05:48]line ПРОДАЖА [14:05:48]line ТРК (МРК, ГНК) : 63 [14:05:48]line Товар: 2710124130 [14:05:48]line Аи-92-К-5 [14:05:48]line 10.470 * 66.90 [14:05:48]line = 700.44 [14:05:48]line НДС 12% НСП 1% [14:05:48]line > о реализуемом товаре [14:05:48]line ОКРУГЛЕНИЕ: -0.44 [14:05:48]line ИТОГО: 700.00 [14:05:48]line Внесено: 700.00 [14:05:48]line СДАЧА: 0.00 [14:05:48]line НСП 1% : 6.20 [14:05:48]line НДС 12% : 74.38 [14:05:48]line Наличными: 700.00 [14:05:48]line Безнал.: 0.00 [14:05:48]line Место: АЗС № 113 "Партнер Нефть" [14:05:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:05:48]line СНО: Общий режим [14:05:48]line Чек 88 30.10.2024 14:05 [14:05:48]line Смена: 556 ФФД: 1.0 [14:05:48]line ЗНМ: 0300000087 [14:05:48]line РНМ: 0000000000091644 [14:05:48]line Версия ККМ: 001 [14:05:48]line ФМ: 0000000000874662 [14:05:48]line ФД: 72851 [14:05:48]line ФПД: 6700772467193 [14:05:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140547&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72851&fm=6700772467193&tin=02508201610067®Number=0000000000091644&sum=70000 [14:05:48]OFD Sender: Processing packet 72851 [packets to send 278, broken 277] [14:05:48]ProducePacketName [14:05:48]name=ofd_packets/00072851 [14:05:48]OFD Sender: To server: pG, [14:05:48]CommunicateWithHost lk.salyk.kg:30040 [14:05:48]ConnectInit lk.salyk.kg [14:05:48]written 0, free lines is 4095 [14:05:49]Write to MH i2c: 01 00 00 BB 01 BC [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: 01 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: 01 07 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 CD 0C 9C [14:05:49]RasterBufferAndPrint [14:05:49]line [14:05:49]line [14:05:49]line [14:05:49]line [14:05:49]line [14:05:49]written 0, free lines is 3280 [14:05:49]MH_Cut [14:05:49]Write to MH i2c: D1 01 00 C2 01 01 95 [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: D1 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: D1 01 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: D1 01 00 C2 01 00 94 [14:05:49]Write to MH i2c: 01 00 00 C3 01 C4 [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]*** Cut start [14:05:49]*** Partial cut [14:05:49]*** CUTSNS_PIN = 1 [14:05:49]*** CUTSNS_PIN = 0 [14:05:50]*** Brake cut motor [14:05:50]Read from MH i2c: 01 [14:05:50]MH_I2C_Read... [14:05:50]*** Stop cut motor [14:05:50]*** Cut end [14:05:50]Read from MH i2c: 01 07 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [14:05:50]process_action close_receipt done [14:05:50]requested_data is exist [14:05:50]produce_requested_data [14:05:50]requested_item fm.sn is exist - process it [14:05:50]wFMCommunicate request_size=4 [14:05:50]MH_SAM_APDU [14:05:50]CAPDU: 80 11 00 00 [14:05:50]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:50]Read from MH i2c: E2 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 17 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 93 [14:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:05:50]wFMCommunicate OK [14:05:50]requested_item fd.num is exist - process it [14:05:50]SAM_PROTO_GetFieldsCounters [14:05:50]wFMCommunicate request_size=4 [14:05:50]MH_SAM_APDU [14:05:50]CAPDU: 80 13 00 00 [14:05:50]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:50]Read from MH i2c: E2 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 62 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 93 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [14:05:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 93 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:50]wFMCommunicate OK [14:05:50]SAM_PROTO_GetFieldsCounters done [14:05:50]requested_item shift.num is exist - process it [14:05:50]requested_item shift.opened is exist - process it [14:05:50]req_shift_opened [14:05:50]FM_GetShiftState [14:05:50]SAM_PROTO_GetShiftState [14:05:50]wFMCommunicate request_size=4 [14:05:50]MH_SAM_APDU [14:05:50]CAPDU: 80 13 01 00 [14:05:50]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:50]Read from MH i2c: E2 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 0E 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 16 [14:05:50]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:05:50]wFMCommunicate OK [14:05:50]SAM_PROTO_GetShiftState done [14:05:50]FM_GetShiftState done [14:05:50]req_shift_opened done [14:05:50]requested_item shift.open_date is exist - process it [14:05:50]req_shift_open_date [14:05:50]req_shift_open_date done [14:05:50]produce_requested_data done [14:05:50]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72851,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [14:05:50]process_action_free close_receipt [14:05:50]json_value_free [14:05:50]json_value_free done [14:05:50]process_json_proto returns [14:05:50]Send response to host [14:05:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72851,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [14:05:50]free response buf [14:05:50]execute_script done [14:05:50]execute_script returns [14:05:50]free content buf [14:05:50]Sock 9.Close socket [14:05:50]Sock 9.Thread stoped [14:05:54]recv_with_timeout no data received [14:05:56]Connected sock=11 [14:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D4 B8 07 01 B5 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 3B 3D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1C 01 00 35 04 06 00 06 18 25 29 A1 F9 14 CE D2 7C B3 68 91 AE [14:05:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4F C7 47 00 EC 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1C 01 00 F4 03 04 00 FC E7 21 67 B6 04 01 00 00 3A 66 5E 35 7C 23 11 2F [14:05:57]CommunicateWithHost err = 0 [14:05:57]CheckOFDResponse [14:05:57]1017 (14) - 77093643461234 [14:05:57]1041 (16) - 0000000000874662 [14:05:57]1040 (4) - 72851 [14:05:57]1012 (4) - 30.10.2024 08:02 [14:05:57]1206 (1) - 0 [14:05:57]OFD Sender: Remove packet 72851 [14:05:57]ProducePacketName [14:05:57]name=ofd_packets/00072851 [14:05:57]NVStorageDeleteData [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:08]recv_with_timeout no data received [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:28]recv_with_timeout no data received [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:39]recv_with_timeout no data received [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:56]recv_with_timeout no data received [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:27]recv_with_timeout no data received [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]recv_with_timeout no data received [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:09]recv_with_timeout no data received [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:43]recv_with_timeout no data received [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:00]recv_with_timeout no data received [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:35]recv_with_timeout no data received [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:11]recv_with_timeout no data received [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:22]recv_with_timeout no data received [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:40]recv_with_timeout no data received [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:01]recv_with_timeout no data received [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:37]recv_with_timeout no data received [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:00]recv_with_timeout no data received [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:50]recv_with_timeout no data received [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:17]recv_with_timeout no data received [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:01]recv_with_timeout no data received [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:12]recv_with_timeout no data received [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:22]recv_with_timeout no data received [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:16]recv_with_timeout no data received [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]recv_with_timeout no data received [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:39]recv_with_timeout no data received [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:22]recv_with_timeout no data received [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:38]recv_with_timeout no data received [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:58]recv_with_timeout no data received [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:31]recv_with_timeout no data received [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:22:56]recv_with_timeout no data received [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:18]recv_with_timeout no data received [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:42]recv_with_timeout no data received [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:19]recv_with_timeout no data received [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:08]recv_with_timeout no data received [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:19]recv_with_timeout no data received [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:26:57]recv_with_timeout no data received [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:08]recv_with_timeout no data received [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:34]accept exits with 7 [14:27:34]New connection [14:27:34]New thread 3067247972 created [14:27:34]Thread 3067104612 joined [14:27:34]Waiting for new connection... [14:27:34] Sock 7.Parse request [14:27:34]Sock 7.Check first char [14:27:34]Sock 7.First char is OK [14:27:34]request: POST /json_proto HTTP/1.0 [14:27:34]Method: POST [14:27:34]URL: /json_proto [14:27:34]Method is POST - this is cgi request [14:27:34]url: /json_proto [14:27:34]query_string will be loaded in cgi processing [14:27:34]execute_cgi json_proto POST (null) [14:27:34]execute_cgi path=json_proto method=POST [14:27:34]POST find Content-Length [14:27:34]Host: 172.17.43.195:8080 [14:27:34]Content-Length: 792 [14:27:34]Content-Type: application/json [14:27:34] [14:27:34]POST finish read [14:27:34]Found Content-Length = 792 [14:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:34]execute_script... [14:27:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:34]POST & json_proto [14:27:34]process_json_proto [14:27:34]json parsed OK: [14:27:34]protocol is kg_v1.0 [14:27:34]action value=close_receipt [14:27:34]process_action close_receipt [14:27:34]cmd_close_receipt [14:27:34]MH_GetDate [14:27:34]Write to MH i2c: F0 00 00 C7 01 B7 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: F0 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: F0 09 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: F0 09 00 C7 01 00 57 42 22 67 74 2C AD 66 95 [14:27:34]GetLastDocTimeStamp 1730297147 [14:27:34]current date 1730298455 [14:27:34]FM_GetShiftState [14:27:34]SAM_PROTO_GetShiftState [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 13 01 00 [14:27:34]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0E 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 18 [14:27:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_GetShiftState done [14:27:34]FM_GetShiftState done [14:27:34]opened in 1730247109 [14:27:34]opened+sec_in_day 1730333509 [14:27:34]quantity*price = 0 [14:27:34]sum+1 = 1 [14:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 89 30.10.2024 14:27 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72852 ФПД: 152077399894036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142735&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72852&fm=152077399894036&tin=02508201610067®Number=0000000000091644&sum=0 [14:27:35]StoreToDocumentArchive [14:27:35]shift 556 fd 72852 [14:27:35]save to /storage/0556/doc_00072852 [14:27:35]save last doc name /storage/0556/doc_00072852 to /storage/kkm_last_doc_name [14:27:35]save OK [14:27:35]Clear old archive folders... [14:27:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:35]tlvbuf is 01DA43C0 [14:27:35]SAM_PROTO_ClearQueue [14:27:35]wFMCommunicate request_size=4 [14:27:35]MH_SAM_APDU [14:27:35]CAPDU: 80 09 00 00 [14:27:35]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:35]Read from MH i2c: E2 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 03 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [14:27:35]RAPDU: 90 00 [14:27:35]wFMCommunicate OK [14:27:35]SAM_PROTO_ClearQueue done [14:27:35]KKMCreateOFDPacket [14:27:35]OFDProtocolAddRootSTLVToBuf [14:27:35]FM_MakeSignedData [14:27:35]FM_MakeSignedData [14:27:35]SAM_PROTO_SignData [14:27:35]wFMCommunicate request_size=4 [14:27:35]MH_SAM_APDU [14:27:35]CAPDU: 80 0D 01 02 [14:27:35]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:35]Read from MH i2c: E2 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 03 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [14:27:35]RAPDU: 90 00 [14:27:35]wFMCommunicate OK [14:27:35]wFMCommunicate request_size=255 [14:27:35]MH_SAM_APDU [14:27:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 59 00 00 00 F4 03 04 00 57 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1C 01 00 35 04 06 00 8A [14:27:35]Write to MH i2c: E2 02 01 D7 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 59 00 00 00 F4 03 04 00 57 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1C 01 00 35 04 06 00 8A 00 00 75 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]OFD Sender: No OFD packet to send [14:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:35]Read from MH i2c: E2 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 03 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [14:27:35]RAPDU: 90 00 [14:27:35]wFMCommunicate OK [14:27:35]wFMCommunicate request_size=10 [14:27:35]MH_SAM_APDU [14:27:35]CAPDU: 80 0D 02 02 05 50 47 66 28 14 [14:27:35]Write to MH i2c: E2 0D 00 D8 01 80 0D 02 02 05 00 50 47 66 28 14 00 00 96 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:35]Read from MH i2c: E2 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 03 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [14:27:35]RAPDU: 90 00 [14:27:35]wFMCommunicate OK [14:27:35]wFMCommunicate request_size=4 [14:27:35]MH_SAM_APDU [14:27:35]CAPDU: 80 0D 03 02 [14:27:35]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:35]Read from MH i2c: E2 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 0B 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 0B 00 D9 01 00 91 63 19 E5 60 94 1D 65 90 00 BE [14:27:35]RAPDU: 91 63 19 E5 60 94 1D 65 90 00 [14:27:35]wFMCommunicate OK [14:27:35]SAM_PROTO_SignData done [14:27:35]FM_MakeSignedData done [14:27:35]CreateOFDProtocolMessage [14:27:35]wFMCommunicate request_size=4 [14:27:35]MH_SAM_APDU [14:27:35]CAPDU: 80 11 00 00 [14:27:35]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:35]Read from MH i2c: E2 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 17 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A9 [14:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:27:35]wFMCommunicate OK [14:27:35]CreateOFDProtocolMessage done [14:27:35]OFDSenderStorePacket 72852 [14:27:35]StoreOFDPacket docnum=72852 [14:27:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D0 02 07 01 C7 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 59 00 00 00 F4 03 04 00 57 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1C 01 00 35 04 06 00 8A 50 47 66 28 14 91 63 19 E5 60 94 1D 65 [14:27:35]CheckFolder [14:27:35]dirname=/storage/ofd_packets [14:27:35]CheckFolder done [14:27:35]ProducePacketName [14:27:35]name=ofd_packets/00072852 [14:27:35]NVStorageSaveData ofd_packets/00072852 [14:27:35]File name is /storage/ofd_packets/00072852 [14:27:35]Write 301 bytes [14:27:35]NVStorageSaveData done [14:27:35]OFDSenderStorePacket done [14:27:35]KKMCreateOFDPacket done [14:27:35]NVStorageSaveData kkm_last_timestamp [14:27:35]File name is /storage/kkm_last_timestamp [14:27:35]Write 4 bytes [14:27:35]NVStorageSaveData done [14:27:35]ExternCall_PrintAddStr [14:27:35]wPrintStart [14:27:35]Write to MH i2c: 01 00 00 DB 01 DC [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 07 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [14:27:35]RasterBufferAndPrint [14:27:35]line Счет N : (1)952428 [14:27:35]line ИНН: 02508201610067 [14:27:35]line Контрольно-Кассовый Чек [14:27:35]line ПРОДАЖА [14:27:35]line ТРК (МРК, ГНК) : 63 [14:27:35]line Товар: 2710124130 [14:27:35]line Аи-92-К-5 [14:27:35]line 10.000 * 0.00 [14:27:35]line = 0.00 [14:27:35]line НДС 12% НСП 1% [14:27:35]line > о реализуемом товаре [14:27:35]line ИТОГО: 0.00 [14:27:35]line НСП 1% : 0.00 [14:27:35]line НДС 12% : 0.00 [14:27:35]line Наличными: 0.00 [14:27:35]line Безнал.: 0.00 [14:27:35]line Место: АЗС № 113 "Партнер Нефть" [14:27:35]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:27:35]line СНО: Общий режим [14:27:35]line Чек 89 30.10.2024 14:27 [14:27:35]line Смена: 556 ФФД: 1.0 [14:27:35]line ЗНМ: 0300000087 [14:27:35]line РНМ: 0000000000091644 [14:27:35]line Версия ККМ: 001 [14:27:35]line Талоны: Топливная Карта [14:27:35]line 03047 [14:27:35]line ФМ: 0000000000874662 [14:27:35]line ФД: 72852 [14:27:35]line ФПД: 152077399894036 [14:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142735&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72852&fm=152077399894036&tin=02508201610067®Number=0000000000091644&sum=0 [14:27:36]written 0, free lines is 4095 [14:27:36]OFD Sender: Processing packet 72852 [packets to send 278, broken 277] [14:27:36]ProducePacketName [14:27:36]name=ofd_packets/00072852 [14:27:36]OFD Sender: To server: pG, [14:27:36]CommunicateWithHost lk.salyk.kg:30040 [14:27:36]ConnectInit lk.salyk.kg [14:27:36]Write to MH i2c: 01 00 00 05 02 07 [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: 01 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: 01 07 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: 01 07 00 05 02 00 00 00 00 00 E2 0C FC [14:27:36]RasterBufferAndPrint [14:27:36]line [14:27:36]line [14:27:36]line [14:27:36]line [14:27:36]line [14:27:36]written 0, free lines is 3304 [14:27:36]MH_Cut [14:27:36]Write to MH i2c: D1 01 00 0C 02 01 E0 [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: D1 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: D1 01 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: D1 01 00 0C 02 00 DF [14:27:36]Write to MH i2c: 01 00 00 0D 02 0F [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:37]*** Cut start [14:27:37]*** Partial cut [14:27:37]*** CUTSNS_PIN = 1 [14:27:37]*** CUTSNS_PIN = 0 [14:27:37]*** Brake cut motor [14:27:37]Connected sock=10 [14:27:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D0 02 07 01 C7 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 59 00 00 00 F4 03 04 00 57 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1C 01 00 35 04 06 00 8A 50 47 66 28 14 91 63 19 E5 60 94 1D 65 [14:27:37]Read from MH i2c: 01 [14:27:37]MH_I2C_Read... [14:27:37]*** Stop cut motor [14:27:37]*** Cut end [14:27:37]Read from MH i2c: 01 07 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 FF 0F 24 [14:27:37]process_action close_receipt done [14:27:37]requested_data is exist [14:27:37]produce_requested_data [14:27:37]requested_item fm.sn is exist - process it [14:27:37]wFMCommunicate request_size=4 [14:27:37]MH_SAM_APDU [14:27:37]CAPDU: 80 11 00 00 [14:27:37]Write to MH i2c: E2 08 00 0E 02 80 11 00 00 00 00 00 00 8A [14:27:37]Write i2c OK [14:27:37]MH_I2C_Read... [14:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:37]Read from MH i2c: E2 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 17 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 17 00 0E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [14:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:27:37]wFMCommunicate OK [14:27:37]requested_item fd.num is exist - process it [14:27:37]SAM_PROTO_GetFieldsCounters [14:27:37]wFMCommunicate request_size=4 [14:27:37]MH_SAM_APDU [14:27:37]CAPDU: 80 13 00 00 [14:27:37]Write to MH i2c: E2 08 00 0F 02 80 13 00 00 00 00 00 00 8D [14:27:37]Write i2c OK [14:27:37]MH_I2C_Read... [14:27:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:38]Read from MH i2c: E2 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: E2 62 00 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: E2 62 00 0F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 94 1C 01 00 0E 04 04 00 2C 02 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 98 [14:27:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 94 1C 01 00 0E 04 04 00 2C 02 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 [14:27:38]wFMCommunicate OK [14:27:38]SAM_PROTO_GetFieldsCounters done [14:27:38]requested_item shift.num is exist - process it [14:27:38]requested_item shift.opened is exist - process it [14:27:38]req_shift_opened [14:27:38]FM_GetShiftState [14:27:38]SAM_PROTO_GetShiftState [14:27:38]wFMCommunicate request_size=4 [14:27:38]MH_SAM_APDU [14:27:38]CAPDU: 80 13 01 00 [14:27:38]Write to MH i2c: E2 08 00 10 02 80 13 01 00 00 00 00 00 8F [14:27:38]Write i2c OK [14:27:38]MH_I2C_Read... [14:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:38]Read from MH i2c: E2 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: E2 0E 00 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: E2 0E 00 10 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 61 [14:27:38]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:27:38]wFMCommunicate OK [14:27:38]SAM_PROTO_GetShiftState done [14:27:38]FM_GetShiftState done [14:27:38]req_shift_opened done [14:27:38]requested_item shift.open_date is exist - process it [14:27:38]req_shift_open_date [14:27:38]req_shift_open_date done [14:27:38]produce_requested_data done [14:27:38]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72852,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [14:27:38]process_action_free close_receipt [14:27:38]json_value_free [14:27:38]json_value_free done [14:27:38]process_json_proto returns [14:27:38]Send response to host [14:27:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72852,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [14:27:38]free response buf [14:27:38]execute_script done [14:27:38]execute_script returns [14:27:38]free content buf [14:27:38]Sock 7.Close socket [14:27:38]Sock 7.Thread stoped [14:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CE 01 47 00 FE 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1C 01 00 F4 03 04 00 11 ED 21 67 B6 04 01 00 00 48 8A 88 24 53 F1 F8 2A [14:27:38]CommunicateWithHost err = 0 [14:27:38]CheckOFDResponse [14:27:38]1017 (14) - 77093643461234 [14:27:38]1041 (16) - 0000000000874662 [14:27:38]1040 (4) - 72852 [14:27:38]1012 (4) - 30.10.2024 08:23 [14:27:38]1206 (1) - 0 [14:27:38]OFD Sender: Remove packet 72852 [14:27:38]ProducePacketName [14:27:38]name=ofd_packets/00072852 [14:27:38]NVStorageDeleteData [14:27:39]OFD Sender: No OFD packet to send [14:27:43]recv_with_timeout no data received [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:58]recv_with_timeout no data received [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:13]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:38]recv_with_timeout no data received [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:54]accept exits with 9 [14:31:54]New connection [14:31:54]New thread 3067104612 created [14:31:54]Thread 3067247972 joined [14:31:54]Waiting for new connection... [14:31:54] Sock 9.Parse request [14:31:54]Sock 9.Check first char [14:31:54]Sock 9.First char is OK [14:31:54]request: POST /json_proto HTTP/1.0 [14:31:54]Method: POST [14:31:54]URL: /json_proto [14:31:54]Method is POST - this is cgi request [14:31:54]url: /json_proto [14:31:54]query_string will be loaded in cgi processing [14:31:54]execute_cgi json_proto POST (null) [14:31:54]execute_cgi path=json_proto method=POST [14:31:54]POST find Content-Length [14:31:54]Host: 172.17.43.195:8080 [14:31:54]Content-Length: 659 [14:31:54]Content-Type: application/json [14:31:54] [14:31:54]POST finish read [14:31:54]Found Content-Length = 659 [14:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:54]execute_script... [14:31:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:54]POST & json_proto [14:31:54]process_json_proto [14:31:54]json parsed OK: [14:31:54]protocol is kg_v1.0 [14:31:54]action value=close_receipt [14:31:54]process_action close_receipt [14:31:54]cmd_close_receipt [14:31:54]MH_GetDate [14:31:54]Write to MH i2c: F0 00 00 11 02 02 [14:31:54]Write i2c OK [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: F0 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: F0 09 00 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: F0 09 00 11 02 00 5B 43 22 67 74 2C AD 66 E5 [14:31:54]GetLastDocTimeStamp 1730298455 [14:31:54]current date 1730298715 [14:31:54]FM_GetShiftState [14:31:54]SAM_PROTO_GetShiftState [14:31:54]wFMCommunicate request_size=4 [14:31:54]MH_SAM_APDU [14:31:54]CAPDU: 80 13 01 00 [14:31:54]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [14:31:54]Write i2c OK [14:31:54]MH_I2C_Read... [14:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:54]Read from MH i2c: E2 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 0E 00 [14:31:54]MH_I2C_Read... [14:31:54]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 63 [14:31:54]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:31:54]wFMCommunicate OK [14:31:54]SAM_PROTO_GetShiftState done [14:31:54]FM_GetShiftState done [14:31:54]opened in 1730247109 [14:31:54]opened+sec_in_day 1730333509 [14:31:54]quantity*price = 70041 [14:31:54]sum+1 = 70043 [14:31:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 90 30.10.2024 14:31 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72853 ФПД: 69416580879550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143155&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72853&fm=69416580879550&tin=02508201610067®Number=0000000000091644&sum=70000 [14:31:56]StoreToDocumentArchive [14:31:56]shift 556 fd 72853 [14:31:56]save to /storage/0556/doc_00072853 [14:31:56]save last doc name /storage/0556/doc_00072853 to /storage/kkm_last_doc_name [14:31:56]save OK [14:31:56]Clear old archive folders... [14:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=244 [14:31:56]tlvbuf is 01D49DD0 [14:31:56]SAM_PROTO_ClearQueue [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 09 00 00 [14:31:56]Write to MH i2c: E2 08 00 1F 02 80 09 00 00 00 00 00 00 93 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [14:31:56]RAPDU: 90 00 [14:31:56]wFMCommunicate OK [14:31:56]SAM_PROTO_ClearQueue done [14:31:56]KKMCreateOFDPacket [14:31:56]OFDProtocolAddRootSTLVToBuf [14:31:56]FM_MakeSignedData [14:31:56]FM_MakeSignedData [14:31:56]SAM_PROTO_SignData [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 0D 01 02 [14:31:56]Write to MH i2c: E2 08 00 20 02 80 0D 01 02 00 00 00 00 9B [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [14:31:56]RAPDU: 90 00 [14:31:56]wFMCommunicate OK [14:31:56]wFMCommunicate request_size=253 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B 43 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 95 1C 01 00 35 04 06 00 3F 22 4E A5 14 BE [14:31:56]Write to MH i2c: E2 00 01 21 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B 43 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 95 1C 01 00 35 04 06 00 3F 22 4E A5 14 BE 00 00 D8 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [14:31:56]RAPDU: 90 00 [14:31:56]wFMCommunicate OK [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 0D 03 02 [14:31:56]Write to MH i2c: E2 08 00 22 02 80 0D 03 02 00 00 00 00 9F [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 0B 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 0B 00 22 02 00 5C 1F 61 82 C1 04 7D 1C 90 00 5C [14:31:56]RAPDU: 5C 1F 61 82 C1 04 7D 1C 90 00 [14:31:56]wFMCommunicate OK [14:31:56]SAM_PROTO_SignData done [14:31:56]FM_MakeSignedData done [14:31:56]CreateOFDProtocolMessage [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 11 00 00 [14:31:56]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 17 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F3 [14:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:31:56]wFMCommunicate OK [14:31:56]CreateOFDProtocolMessage done [14:31:56]OFDSenderStorePacket 72853 [14:31:56]StoreOFDPacket docnum=72853 [14:31:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 05 EF 00 01 5D 7C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B 43 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 95 1C 01 00 35 04 06 00 3F 22 4E A5 14 BE 5C 1F 61 82 C1 04 7D 1C [14:31:56]CheckFolder [14:31:56]dirname=/storage/ofd_packets [14:31:56]CheckFolder done [14:31:56]ProducePacketName [14:31:56]name=ofd_packets/00072853 [14:31:56]NVStorageSaveData ofd_packets/00072853 [14:31:56]File name is /storage/ofd_packets/00072853 [14:31:56]Write 294 bytes [14:31:56]NVStorageSaveData done [14:31:56]OFDSenderStorePacket done [14:31:56]KKMCreateOFDPacket done [14:31:56]NVStorageSaveData kkm_last_timestamp [14:31:56]File name is /storage/kkm_last_timestamp [14:31:56]Write 4 bytes [14:31:56]NVStorageSaveData done [14:31:56]ExternCall_PrintAddStr [14:31:56]wPrintStart [14:31:56]Write to MH i2c: 01 00 00 24 02 26 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: 01 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: 01 07 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [14:31:56]RasterBufferAndPrint [14:31:56]line Счет N : (1)952430 [14:31:56]line ИНН: 02508201610067 [14:31:56]line Контрольно-Кассовый Чек [14:31:56]line ПРОДАЖА [14:31:56]line ТРК (МРК, ГНК) : 51 [14:31:56]line Товар: 50.50.0 [14:31:56]line Super 92 [14:31:56]line 10.240 * 68.40 [14:31:56]line = 700.42 [14:31:56]line НДС 12% НСП 1% [14:31:56]line > о реализуемом товаре [14:31:56]line ОКРУГЛЕНИЕ: -0.42 [14:31:56]line ИТОГО: 700.00 [14:31:56]line Внесено: 700.00 [14:31:56]line СДАЧА: 0.00 [14:31:56]line НСП 1% : 6.20 [14:31:56]line НДС 12% : 74.38 [14:31:56]line Наличными: 700.00 [14:31:56]line Безнал.: 0.00 [14:31:56]line Место: АЗС № 113 "Партнер Нефть" [14:31:56]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:31:56]line СНО: Общий режим [14:31:56]line Чек 90 30.10.2024 14:31 [14:31:56]line Смена: 556 ФФД: 1.0 [14:31:56]line ЗНМ: 0300000087 [14:31:56]line РНМ: 0000000000091644 [14:31:56]line Версия ККМ: 001 [14:31:56]line ФМ: 0000000000874662 [14:31:56]line ФД: 72853 [14:31:56]line ФПД: 69416580879550 [14:31:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143155&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72853&fm=69416580879550&tin=02508201610067®Number=0000000000091644&sum=70000 [14:31:56]OFD Sender: Processing packet 72853 [packets to send 278, broken 277] [14:31:56]ProducePacketName [14:31:56]name=ofd_packets/00072853 [14:31:56]OFD Sender: To server: pG, [14:31:56]CommunicateWithHost lk.salyk.kg:30040 [14:31:56]ConnectInit lk.salyk.kg [14:31:56]written 0, free lines is 4095 [14:31:57]Write to MH i2c: 01 00 00 4F 02 51 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 07 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 D7 0C 3B [14:31:57]RasterBufferAndPrint [14:31:57]line [14:31:57]line [14:31:57]line [14:31:57]line [14:31:57]line [14:31:57]written 0, free lines is 3290 [14:31:57]MH_Cut [14:31:57]Write to MH i2c: D1 01 00 56 02 01 2A [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: D1 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: D1 01 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: D1 01 00 56 02 00 29 [14:31:57]Write to MH i2c: 01 00 00 57 02 59 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:58]*** Cut start [14:31:58]*** Partial cut [14:31:58]*** CUTSNS_PIN = 1 [14:31:58]*** CUTSNS_PIN = 0 [14:31:58]*** Brake cut motor [14:31:58]Read from MH i2c: 01 [14:31:58]MH_I2C_Read... [14:31:58]*** Stop cut motor [14:31:58]*** Cut end [14:31:58]Read from MH i2c: 01 07 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [14:31:58]process_action close_receipt done [14:31:58]requested_data is exist [14:31:58]produce_requested_data [14:31:58]requested_item fm.sn is exist - process it [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 11 00 00 [14:31:58]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 17 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [14:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:31:58]wFMCommunicate OK [14:31:58]requested_item fd.num is exist - process it [14:31:58]SAM_PROTO_GetFieldsCounters [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 13 00 00 [14:31:58]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 62 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 62 00 59 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 95 1C 01 00 0E 04 04 00 2C 02 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 E6 [14:31:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 95 1C 01 00 0E 04 04 00 2C 02 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 [14:31:58]wFMCommunicate OK [14:31:58]SAM_PROTO_GetFieldsCounters done [14:31:58]requested_item shift.num is exist - process it [14:31:58]requested_item shift.opened is exist - process it [14:31:58]req_shift_opened [14:31:58]FM_GetShiftState [14:31:58]SAM_PROTO_GetShiftState [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 13 01 00 [14:31:58]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 0E 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 AB [14:31:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:31:58]wFMCommunicate OK [14:31:58]SAM_PROTO_GetShiftState done [14:31:58]FM_GetShiftState done [14:31:58]req_shift_opened done [14:31:58]requested_item shift.open_date is exist - process it [14:31:58]req_shift_open_date [14:31:58]req_shift_open_date done [14:31:58]produce_requested_data done [14:31:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72853,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [14:31:58]process_action_free close_receipt [14:31:58]json_value_free [14:31:58]json_value_free done [14:31:58]process_json_proto returns [14:31:58]Send response to host [14:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72853,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [14:31:58]free response buf [14:31:58]execute_script done [14:31:58]execute_script returns [14:31:58]free content buf [14:31:58]Sock 9.Close socket [14:31:58]Sock 9.Thread stoped [14:31:59]Connected sock=11 [14:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 05 EF 00 01 5D 7C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B 43 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 95 1C 01 00 35 04 06 00 3F 22 4E A5 14 BE 5C 1F 61 82 C1 04 7D 1C [14:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 5F DE 47 00 1B 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 95 1C 01 00 F4 03 04 00 17 EE 21 67 B6 04 01 00 00 F1 9C 55 97 3D 26 B7 F8 [14:32:00]CommunicateWithHost err = 0 [14:32:00]CheckOFDResponse [14:32:00]1017 (14) - 77093643461234 [14:32:00]1041 (16) - 0000000000874662 [14:32:00]1040 (4) - 72853 [14:32:00]1012 (4) - 30.10.2024 08:28 [14:32:00]1206 (1) - 0 [14:32:00]OFD Sender: Remove packet 72853 [14:32:00]ProducePacketName [14:32:00]name=ofd_packets/00072853 [14:32:00]NVStorageDeleteData [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]recv_with_timeout no data received [14:32:10]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:20]recv_with_timeout no data received [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:40]recv_with_timeout no data received [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]recv_with_timeout no data received [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:11]recv_with_timeout no data received [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:40]accept exits with 7 [14:35:40]New connection [14:35:40]New thread 3067247972 created [14:35:40]Thread 3067104612 joined [14:35:40]Waiting for new connection... [14:35:40] Sock 7.Parse request [14:35:40]Sock 7.Check first char [14:35:40]Sock 7.First char is OK [14:35:40]request: POST /json_proto HTTP/1.0 [14:35:40]Method: POST [14:35:40]URL: /json_proto [14:35:40]Method is POST - this is cgi request [14:35:40]url: /json_proto [14:35:40]query_string will be loaded in cgi processing [14:35:40]execute_cgi json_proto POST (null) [14:35:40]execute_cgi path=json_proto method=POST [14:35:40]POST find Content-Length [14:35:40]Host: 172.17.43.195:8080 [14:35:40]Content-Length: 797 [14:35:40]Content-Type: application/json [14:35:40] [14:35:40]POST finish read [14:35:40]Found Content-Length = 797 [14:35:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:40]execute_script... [14:35: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)952431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:40]POST & json_proto [14:35:40]process_json_proto [14:35:40]json parsed OK: [14:35:40]protocol is kg_v1.0 [14:35:40]action value=close_receipt [14:35:40]process_action close_receipt [14:35:40]cmd_close_receipt [14:35:40]MH_GetDate [14:35:40]Write to MH i2c: F0 00 00 5B 02 4C [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: F0 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: F0 09 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: F0 09 00 5B 02 00 3D 44 22 67 74 2C AD 66 12 [14:35:40]GetLastDocTimeStamp 1730298715 [14:35:40]current date 1730298941 [14:35:40]FM_GetShiftState [14:35:40]SAM_PROTO_GetShiftState [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 13 01 00 [14:35:40]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0E 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 AD [14:35:40]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_GetShiftState done [14:35:40]FM_GetShiftState done [14:35:40]opened in 1730247109 [14:35:40]opened+sec_in_day 1730333509 [14:35:40]quantity*price = 0 [14:35:40]sum+1 = 1 [14:35:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 91 30.10.2024 14:35 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 91365 ФМ: 0000000000874662 ФД: 72854 ФПД: 49018693685287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143541&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72854&fm=49018693685287&tin=02508201610067®Number=0000000000091644&sum=0 [14:35:41]StoreToDocumentArchive [14:35:41]shift 556 fd 72854 [14:35:41]save to /storage/0556/doc_00072854 [14:35:41]save last doc name /storage/0556/doc_00072854 to /storage/kkm_last_doc_name [14:35:41]save OK [14:35:41]Clear old archive folders... [14:35:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:35:41]tlvbuf is 01D93D20 [14:35:41]SAM_PROTO_ClearQueue [14:35:41]wFMCommunicate request_size=4 [14:35:41]MH_SAM_APDU [14:35:41]CAPDU: 80 09 00 00 [14:35:41]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:41]Read from MH i2c: E2 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [14:35:41]RAPDU: 90 00 [14:35:41]wFMCommunicate OK [14:35:41]SAM_PROTO_ClearQueue done [14:35:41]KKMCreateOFDPacket [14:35:41]OFDProtocolAddRootSTLVToBuf [14:35:41]FM_MakeSignedData [14:35:41]FM_MakeSignedData [14:35:41]SAM_PROTO_SignData [14:35:41]wFMCommunicate request_size=4 [14:35:41]MH_SAM_APDU [14:35:41]CAPDU: 80 0D 01 02 [14:35:41]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:41]Read from MH i2c: E2 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [14:35:41]RAPDU: 90 00 [14:35:41]wFMCommunicate OK [14:35:41]wFMCommunicate request_size=255 [14:35:41]MH_SAM_APDU [14:35: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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 3D 44 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1C 01 00 35 04 06 00 [14:35:41]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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 3D 44 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1C 01 00 35 04 06 00 00 00 83 [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:41]Read from MH i2c: E2 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [14:35:41]RAPDU: 90 00 [14:35:41]wFMCommunicate OK [14:35:41]wFMCommunicate request_size=11 [14:35:41]MH_SAM_APDU [14:35:41]CAPDU: 80 0D 02 02 06 2C 95 0D D3 10 27 [14:35:41]Write to MH i2c: E2 0E 00 6C 02 80 0D 02 02 06 00 2C 95 0D D3 10 27 00 00 CC [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:41]Read from MH i2c: E2 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 [14:35:41]MH_I2C_Read... [14:35:41]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [14:35:41]RAPDU: 90 00 [14:35:41]wFMCommunicate OK [14:35:41]wFMCommunicate request_size=4 [14:35:41]MH_SAM_APDU [14:35:41]CAPDU: 80 0D 03 02 [14:35:41]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [14:35:41]Write i2c OK [14:35:41]MH_I2C_Read... [14:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:42]Read from MH i2c: E2 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 0B 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 0B 00 6D 02 00 A6 A6 60 21 0D CF 70 B2 90 00 B6 [14:35:42]RAPDU: A6 A6 60 21 0D CF 70 B2 90 00 [14:35:42]wFMCommunicate OK [14:35:42]SAM_PROTO_SignData done [14:35:42]FM_MakeSignedData done [14:35:42]CreateOFDProtocolMessage [14:35:42]wFMCommunicate request_size=4 [14:35:42]MH_SAM_APDU [14:35:42]CAPDU: 80 11 00 00 [14:35:42]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:42]Read from MH i2c: E2 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 17 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3E [14:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:35:42]wFMCommunicate OK [14:35:42]CreateOFDProtocolMessage done [14:35:42]OFDSenderStorePacket 72854 [14:35:42]StoreOFDPacket docnum=72854 [14:35:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 B5 7D 08 01 DA C9 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 3D 44 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1C 01 00 35 04 06 00 2C 95 0D D3 10 27 A6 A6 60 21 0D CF 70 B2 [14:35:42]CheckFolder [14:35:42]dirname=/storage/ofd_packets [14:35:42]CheckFolder done [14:35:42]ProducePacketName [14:35:42]name=ofd_packets/00072854 [14:35:42]NVStorageSaveData ofd_packets/00072854 [14:35:42]File name is /storage/ofd_packets/00072854 [14:35:42]Write 302 bytes [14:35:42]NVStorageSaveData done [14:35:42]OFDSenderStorePacket done [14:35:42]KKMCreateOFDPacket done [14:35:42]NVStorageSaveData kkm_last_timestamp [14:35:42]File name is /storage/kkm_last_timestamp [14:35:42]Write 4 bytes [14:35:42]NVStorageSaveData done [14:35:42]ExternCall_PrintAddStr [14:35:42]wPrintStart [14:35:42]Write to MH i2c: 01 00 00 6F 02 71 [14:35:42]OFD Sender: Processing packet 72854 [packets to send 278, broken 277] [14:35:42]ProducePacketName [14:35:42]name=ofd_packets/00072854 [14:35:42]OFD Sender: To server: pG, [14:35:42]CommunicateWithHost lk.salyk.kg:30040 [14:35:42]ConnectInit lk.salyk.kg [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 07 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [14:35:42]RasterBufferAndPrint [14:35:42]line Счет N : (1)952431 [14:35:42]line ИНН: 02508201610067 [14:35:42]line Контрольно-Кассовый Чек [14:35:42]line ПРОДАЖА [14:35:42]line ТРК (МРК, ГНК) : 22 [14:35:42]line Товар: 2710194210 [14:35:42]line ДТ(л)-К-5 [14:35:42]line 50.000 * 0.00 [14:35:42]line = 0.00 [14:35:42]line НДС 12% НСП 1% [14:35:42]line > о реализуемом товаре [14:35:42]line ИТОГО: 0.00 [14:35:42]line НСП 1% : 0.00 [14:35:42]line НДС 12% : 0.00 [14:35:42]line Наличными: 0.00 [14:35:42]line Безнал.: 0.00 [14:35:42]line Место: АЗС № 113 "Партнер Нефть" [14:35:42]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:35:42]line СНО: Общий режим [14:35:42]line Чек 91 30.10.2024 14:35 [14:35:42]line Смена: 556 ФФД: 1.0 [14:35:42]line ЗНМ: 0300000087 [14:35:42]line РНМ: 0000000000091644 [14:35:42]line Версия ККМ: 001 [14:35:42]line Талоны: Топливная Карта [14:35:42]line 91365 [14:35:42]line ФМ: 0000000000874662 [14:35:42]line ФД: 72854 [14:35:42]line ФПД: 49018693685287 [14:35:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143541&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72854&fm=49018693685287&tin=02508201610067®Number=0000000000091644&sum=0 [14:35:42]written 0, free lines is 4095 [14:35:42]Connected sock=10 [14:35:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 B5 7D 08 01 DA C9 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 3D 44 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1C 01 00 35 04 06 00 2C 95 0D D3 10 27 A6 A6 60 21 0D CF 70 B2 [14:35:42]Write to MH i2c: 01 00 00 99 02 9B [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 07 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: 01 07 00 99 02 00 00 00 00 00 E9 0C 97 [14:35:42]RasterBufferAndPrint [14:35:42]line [14:35:42]line [14:35:42]line [14:35:42]line [14:35:42]line [14:35:42]written 0, free lines is 3312 [14:35:42]MH_Cut [14:35:42]Write to MH i2c: D1 01 00 A0 02 01 74 [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: D1 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: D1 01 00 [14:35:42]MH_I2C_Read... [14:35:42]Read from MH i2c: D1 01 00 A0 02 00 73 [14:35:42]Write to MH i2c: 01 00 00 A1 02 A3 [14:35:42]Write i2c OK [14:35:42]MH_I2C_Read... [14:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 5E 02 47 00 92 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1C 01 00 F4 03 04 00 F6 EE 21 67 B6 04 01 00 00 C8 A2 7C 93 6E BB F0 8E [14:35:43]CommunicateWithHost err = 0 [14:35:43]CheckOFDResponse [14:35:43]1017 (14) - 77093643461234 [14:35:43]1041 (16) - 0000000000874662 [14:35:43]1040 (4) - 72854 [14:35:43]1012 (4) - 30.10.2024 08:31 [14:35:43]1206 (1) - 0 [14:35:43]OFD Sender: Remove packet 72854 [14:35:43]ProducePacketName [14:35:43]name=ofd_packets/00072854 [14:35:43]NVStorageDeleteData [14:35:43]*** Cut start [14:35:43]*** Partial cut [14:35:43]*** CUTSNS_PIN = 1 [14:35:43]*** CUTSNS_PIN = 0 [14:35:43]OFD Sender: No OFD packet to send [14:35:43]*** Brake cut motor [14:35:44]Read from MH i2c: 01 [14:35:44]MH_I2C_Read... [14:35:44]*** Stop cut motor [14:35:44]*** Cut end [14:35:44]Read from MH i2c: 01 07 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: 01 07 00 A1 02 00 00 00 00 00 FF 0F B8 [14:35:44]process_action close_receipt done [14:35:44]requested_data is exist [14:35:44]produce_requested_data [14:35:44]requested_item fm.sn is exist - process it [14:35:44]wFMCommunicate request_size=4 [14:35:44]MH_SAM_APDU [14:35:44]CAPDU: 80 11 00 00 [14:35:44]Write to MH i2c: E2 08 00 A2 02 80 11 00 00 00 00 00 00 1E [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 17 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 17 00 A2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 72 [14:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:35:44]wFMCommunicate OK [14:35:44]requested_item fd.num is exist - process it [14:35:44]SAM_PROTO_GetFieldsCounters [14:35:44]wFMCommunicate request_size=4 [14:35:44]MH_SAM_APDU [14:35:44]CAPDU: 80 13 00 00 [14:35:44]Write to MH i2c: E2 08 00 A3 02 80 13 00 00 00 00 00 00 21 [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 62 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 62 00 A3 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 96 1C 01 00 0E 04 04 00 2C 02 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 34 [14:35:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 96 1C 01 00 0E 04 04 00 2C 02 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 [14:35:44]wFMCommunicate OK [14:35:44]SAM_PROTO_GetFieldsCounters done [14:35:44]requested_item shift.num is exist - process it [14:35:44]requested_item shift.opened is exist - process it [14:35:44]req_shift_opened [14:35:44]FM_GetShiftState [14:35:44]SAM_PROTO_GetShiftState [14:35:44]wFMCommunicate request_size=4 [14:35:44]MH_SAM_APDU [14:35:44]CAPDU: 80 13 01 00 [14:35:44]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 0E 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 F5 [14:35:44]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:35:44]wFMCommunicate OK [14:35:44]SAM_PROTO_GetShiftState done [14:35:44]FM_GetShiftState done [14:35:44]req_shift_opened done [14:35:44]requested_item shift.open_date is exist - process it [14:35:44]req_shift_open_date [14:35:44]req_shift_open_date done [14:35:44]produce_requested_data done [14:35:44]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72854,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [14:35:44]process_action_free close_receipt [14:35:44]json_value_free [14:35:44]json_value_free done [14:35:44]process_json_proto returns [14:35:44]Send response to host [14:35:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72854,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [14:35:44]free response buf [14:35:44]execute_script done [14:35:44]execute_script returns [14:35:44]free content buf [14:35:44]Sock 7.Close socket [14:35:44]Sock 7.Thread stoped [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:22]recv_with_timeout no data received [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:40]recv_with_timeout no data received [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:18]recv_with_timeout no data received [14:37:23]OFD Sender: No OFD packet to send [14:37:24]accept exits with 9 [14:37:24]New connection [14:37:24]New thread 3067104612 created [14:37:24]Thread 3067247972 joined [14:37:24]Waiting for new connection... [14:37:24] Sock 9.Parse request [14:37:24]Sock 9.Check first char [14:37:24]Sock 9.First char is OK [14:37:24]request: POST /json_proto HTTP/1.0 [14:37:24]Method: POST [14:37:24]URL: /json_proto [14:37:24]Method is POST - this is cgi request [14:37:24]url: /json_proto [14:37:24]query_string will be loaded in cgi processing [14:37:24]execute_cgi json_proto POST (null) [14:37:24]execute_cgi path=json_proto method=POST [14:37:24]POST find Content-Length [14:37:24]Host: 172.17.43.195:8080 [14:37:24]Content-Length: 846 [14:37:24]Content-Type: application/json [14:37:24] [14:37:24]POST finish read [14:37:24]Found Content-Length = 846 [14:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:24]execute_script... [14:37:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:24]POST & json_proto [14:37:24]process_json_proto [14:37:24]json parsed OK: [14:37:24]protocol is kg_v1.0 [14:37:24]action value=close_receipt [14:37:24]process_action close_receipt [14:37:24]cmd_close_receipt [14:37:24]MH_GetDate [14:37:24]Write to MH i2c: F0 00 00 A5 02 96 [14:37:24]Write i2c OK [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: F0 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: F0 09 00 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: F0 09 00 A5 02 00 A5 44 22 67 74 2C AD 66 C4 [14:37:24]GetLastDocTimeStamp 1730298941 [14:37:24]current date 1730299045 [14:37:24]FM_GetShiftState [14:37:24]SAM_PROTO_GetShiftState [14:37:24]wFMCommunicate request_size=4 [14:37:24]MH_SAM_APDU [14:37:24]CAPDU: 80 13 01 00 [14:37:24]Write to MH i2c: E2 08 00 A6 02 80 13 01 00 00 00 00 00 25 [14:37:24]Write i2c OK [14:37:24]MH_I2C_Read... [14:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:24]Read from MH i2c: E2 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: E2 0E 00 [14:37:24]MH_I2C_Read... [14:37:24]Read from MH i2c: E2 0E 00 A6 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 F7 [14:37:24]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:37:24]wFMCommunicate OK [14:37:24]SAM_PROTO_GetShiftState done [14:37:24]FM_GetShiftState done [14:37:24]opened in 1730247109 [14:37:24]opened+sec_in_day 1730333509 [14:37:24]quantity*price = 100011 [14:37:24]sum+1 = 100013 [14:37:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 92 30.10.2024 14:37 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72855 ФПД: 188889216588010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143725&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72855&fm=188889216588010&tin=02508201610067®Number=0000000000091644&sum=100012 [14:37:25]StoreToDocumentArchive [14:37:25]shift 556 fd 72855 [14:37:25]save to /storage/0556/doc_00072855 [14:37:25]save last doc name /storage/0556/doc_00072855 to /storage/kkm_last_doc_name [14:37:25]save OK [14:37:25]Clear old archive folders... [14:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:37:25]tlvbuf is 01D3B5A0 [14:37:25]SAM_PROTO_ClearQueue [14:37:25]wFMCommunicate request_size=4 [14:37:25]MH_SAM_APDU [14:37:25]CAPDU: 80 09 00 00 [14:37:25]Write to MH i2c: E2 08 00 B3 02 80 09 00 00 00 00 00 00 27 [14:37:25]Write i2c OK [14:37:25]MH_I2C_Read... [14:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:25]Read from MH i2c: E2 [14:37:25]MH_I2C_Read... [14:37:25]Read from MH i2c: E2 03 00 [14:37:25]MH_I2C_Read... [14:37:25]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [14:37:25]RAPDU: 90 00 [14:37:25]wFMCommunicate OK [14:37:25]SAM_PROTO_ClearQueue done [14:37:25]KKMCreateOFDPacket [14:37:25]OFDProtocolAddRootSTLVToBuf [14:37:25]FM_MakeSignedData [14:37:25]FM_MakeSignedData [14:37:25]SAM_PROTO_SignData [14:37:25]wFMCommunicate request_size=4 [14:37:25]MH_SAM_APDU [14:37:25]CAPDU: 80 0D 01 02 [14:37:25]Write to MH i2c: E2 08 00 B4 02 80 0D 01 02 00 00 00 00 2F [14:37:25]Write i2c OK [14:37:25]MH_I2C_Read... [14:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:25]Read from MH i2c: E2 [14:37:25]MH_I2C_Read... [14:37:25]Read from MH i2c: E2 03 00 [14:37:25]MH_I2C_Read... [14:37:25]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [14:37:25]RAPDU: 90 00 [14:37:25]wFMCommunicate OK [14:37:25]wFMCommunicate request_size=255 [14:37:25]MH_SAM_APDU [14:37:25]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A5 44 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1C 01 00 35 04 06 00 AB CB [14:37:25]Write to MH i2c: E2 02 01 B5 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A5 44 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1C 01 00 35 04 06 00 AB CB 00 00 CE [14:37:25]Write i2c OK [14:37:25]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [14:37:26]RAPDU: 90 00 [14:37:26]wFMCommunicate OK [14:37:26]wFMCommunicate request_size=9 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 0D 02 02 04 32 A8 18 EA [14:37:26]Write to MH i2c: E2 0C 00 B6 02 80 0D 02 02 04 00 32 A8 18 EA 00 00 16 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [14:37:26]RAPDU: 90 00 [14:37:26]wFMCommunicate OK [14:37:26]wFMCommunicate request_size=4 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 0D 03 02 [14:37:26]Write to MH i2c: E2 08 00 B7 02 80 0D 03 02 00 00 00 00 34 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 0B 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 0B 00 B7 02 00 4D 4D D3 A4 04 99 DF 12 90 00 D4 [14:37:26]RAPDU: 4D 4D D3 A4 04 99 DF 12 90 00 [14:37:26]wFMCommunicate OK [14:37:26]SAM_PROTO_SignData done [14:37:26]FM_MakeSignedData done [14:37:26]CreateOFDProtocolMessage [14:37:26]wFMCommunicate request_size=4 [14:37:26]MH_SAM_APDU [14:37:26]CAPDU: 80 11 00 00 [14:37:26]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:26]Read from MH i2c: E2 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 17 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 88 [14:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:37:26]wFMCommunicate OK [14:37:26]CreateOFDProtocolMessage done [14:37:26]OFDSenderStorePacket 72855 [14:37:26]StoreOFDPacket docnum=72855 [14:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 52 0A 06 01 09 EB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A5 44 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1C 01 00 35 04 06 00 AB CB 32 A8 18 EA 4D 4D D3 A4 04 99 DF 12 [14:37:26]CheckFolder [14:37:26]dirname=/storage/ofd_packets [14:37:26]CheckFolder done [14:37:26]ProducePacketName [14:37:26]name=ofd_packets/00072855 [14:37:26]NVStorageSaveData ofd_packets/00072855 [14:37:26]File name is /storage/ofd_packets/00072855 [14:37:26]Write 300 bytes [14:37:26]NVStorageSaveData done [14:37:26]OFDSenderStorePacket done [14:37:26]KKMCreateOFDPacket done [14:37:26]NVStorageSaveData kkm_last_timestamp [14:37:26]File name is /storage/kkm_last_timestamp [14:37:26]Write 4 bytes [14:37:26]NVStorageSaveData done [14:37:26]ExternCall_PrintAddStr [14:37:26]wPrintStart [14:37:26]Write to MH i2c: 01 00 00 B9 02 BB [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 07 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [14:37:26]RasterBufferAndPrint [14:37:26]line Счет N : (1)952432 [14:37:26]line ИНН: 02508201610067 [14:37:26]line Контрольно-Кассовый Чек [14:37:26]line ПРОДАЖА [14:37:26]line ТРК (МРК, ГНК) : 71 [14:37:26]line Товар: 2711190000 [14:37:26]line ГАЗ-К-3 [14:37:26]line 25.710 * 38.90 [14:37:26]line = 1000.12 [14:37:26]line НДС 12% НСП 1% [14:37:26]line > о реализуемом товаре [14:37:26]line ИТОГО: 1000.12 [14:37:26]line НСП 1% : 8.85 [14:37:26]line НДС 12% : 106.21 [14:37:26]line Наличными: 0.00 [14:37:26]line Безнал.: 1000.12 [14:37:26]line Место: АЗС № 113 "Партнер Нефть" [14:37:26]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:37:26]line СНО: Общий режим [14:37:26]line Чек 92 30.10.2024 14:37 [14:37:26]line Смена: 556 ФФД: 1.0 [14:37:26]line ЗНМ: 0300000087 [14:37:26]line РНМ: 0000000000091644 [14:37:26]line Версия ККМ: 001 [14:37:26]line Платежная система: АКБ Кыргызстан [14:37:26]line ФМ: 0000000000874662 [14:37:26]line ФД: 72855 [14:37:26]line ФПД: 188889216588010 [14:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T143725&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72855&fm=188889216588010&tin=02508201610067®Number=0000000000091644&sum=100012 [14:37:26]written 0, free lines is 4095 [14:37:26]OFD Sender: Processing packet 72855 [packets to send 278, broken 277] [14:37:26]ProducePacketName [14:37:26]name=ofd_packets/00072855 [14:37:26]OFD Sender: To server: pG, [14:37:26]CommunicateWithHost lk.salyk.kg:30040 [14:37:26]ConnectInit lk.salyk.kg [14:37:26]Write to MH i2c: 01 00 00 E3 02 E5 [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 07 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: 01 07 00 E3 02 00 00 00 00 00 EC 0C E4 [14:37:26]RasterBufferAndPrint [14:37:26]line [14:37:26]line [14:37:26]line [14:37:26]line [14:37:26]line [14:37:26]written 0, free lines is 3315 [14:37:26]MH_Cut [14:37:26]Write to MH i2c: D1 01 00 EA 02 01 BE [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: D1 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: D1 01 00 [14:37:26]MH_I2C_Read... [14:37:26]Read from MH i2c: D1 01 00 EA 02 00 BD [14:37:26]Write to MH i2c: 01 00 00 EB 02 ED [14:37:26]Write i2c OK [14:37:26]MH_I2C_Read... [14:37:27]Connected sock=10 [14:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 52 0A 06 01 09 EB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A5 44 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1C 01 00 35 04 06 00 AB CB 32 A8 18 EA 4D 4D D3 A4 04 99 DF 12 [14:37:27]*** Cut start [14:37:27]*** Partial cut [14:37:27]*** CUTSNS_PIN = 1 [14:37:27]*** CUTSNS_PIN = 0 [14:37:27]*** Brake cut motor [14:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 01 6B 47 00 B8 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 38 37 34 36 36 32 10 04 04 00 97 1C 01 00 F4 03 04 00 5E EF 21 67 B6 04 01 00 00 9B E1 8A 0F D0 CA 1F 1B [14:37:27]CommunicateWithHost err = 0 [14:37:27]CheckOFDResponse [14:37:27]1017 (14) - 77093643461234 [14:37:27]1041 (16) - 0000000000874662 [14:37:27]1040 (4) - 72855 [14:37:27]1012 (4) - 30.10.2024 08:33 [14:37:27]1206 (1) - 0 [14:37:27]OFD Sender: Remove packet 72855 [14:37:27]ProducePacketName [14:37:27]name=ofd_packets/00072855 [14:37:27]NVStorageDeleteData [14:37:28]Read from MH i2c: 01 [14:37:28]MH_I2C_Read... [14:37:28]*** Stop cut motor [14:37:28]*** Cut end [14:37:28]Read from MH i2c: 01 07 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: 01 07 00 EB 02 00 00 00 00 00 FF 0F 02 [14:37:28]process_action close_receipt done [14:37:28]requested_data is exist [14:37:28]produce_requested_data [14:37:28]requested_item fm.sn is exist - process it [14:37:28]wFMCommunicate request_size=4 [14:37:28]MH_SAM_APDU [14:37:28]CAPDU: 80 11 00 00 [14:37:28]Write to MH i2c: E2 08 00 EC 02 80 11 00 00 00 00 00 00 68 [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:28]Read from MH i2c: E2 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 17 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 17 00 EC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BC [14:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:37:28]wFMCommunicate OK [14:37:28]requested_item fd.num is exist - process it [14:37:28]SAM_PROTO_GetFieldsCounters [14:37:28]wFMCommunicate request_size=4 [14:37:28]MH_SAM_APDU [14:37:28]CAPDU: 80 13 00 00 [14:37:28]Write to MH i2c: E2 08 00 ED 02 80 13 00 00 00 00 00 00 6B [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:28]Read from MH i2c: E2 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 62 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 62 00 ED 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 97 1C 01 00 0E 04 04 00 2C 02 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 82 [14:37:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 97 1C 01 00 0E 04 04 00 2C 02 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 [14:37:28]wFMCommunicate OK [14:37:28]SAM_PROTO_GetFieldsCounters done [14:37:28]requested_item shift.num is exist - process it [14:37:28]requested_item shift.opened is exist - process it [14:37:28]req_shift_opened [14:37:28]FM_GetShiftState [14:37:28]SAM_PROTO_GetShiftState [14:37:28]wFMCommunicate request_size=4 [14:37:28]MH_SAM_APDU [14:37:28]CAPDU: 80 13 01 00 [14:37:28]Write to MH i2c: E2 08 00 EE 02 80 13 01 00 00 00 00 00 6D [14:37:28]Write i2c OK [14:37:28]MH_I2C_Read... [14:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:28]Read from MH i2c: E2 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 0E 00 [14:37:28]MH_I2C_Read... [14:37:28]Read from MH i2c: E2 0E 00 EE 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 3F [14:37:28]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [14:37:28]wFMCommunicate OK [14:37:28]SAM_PROTO_GetShiftState done [14:37:28]FM_GetShiftState done [14:37:28]req_shift_opened done [14:37:28]requested_item shift.open_date is exist - process it [14:37:28]req_shift_open_date [14:37:28]req_shift_open_date done [14:37:28]produce_requested_data done [14:37:28]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72855,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [14:37:28]process_action_free close_receipt [14:37:28]json_value_free [14:37:28]json_value_free done [14:37:28]process_json_proto returns [14:37:28]Send response to host [14:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72855,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [14:37:28]free response buf [14:37:28]execute_script done [14:37:28]execute_script returns [14:37:28]free content buf [14:37:28]Sock 9.Close socket [14:37:28]Sock 9.Thread stoped [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:27]recv_with_timeout no data received [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:50]recv_with_timeout no data received [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:07]recv_with_timeout no data received [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]recv_with_timeout no data received [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:39]recv_with_timeout no data received [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:11]recv_with_timeout no data received [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:29]recv_with_timeout no data received [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:27]recv_with_timeout no data received [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:00]recv_with_timeout no data received [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:30]recv_with_timeout no data received [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:01]recv_with_timeout no data received [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:23]recv_with_timeout no data received [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:50]recv_with_timeout no data received [14:46:54]OFD Sender: No OFD packet to send [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:49]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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]recv_with_timeout no data received [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:40]recv_with_timeout no data received [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:52]recv_with_timeout no data received [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:03]recv_with_timeout no data received [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:56]recv_with_timeout no data received [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]recv_with_timeout no data received [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]recv_with_timeout no data received [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:50]recv_with_timeout no data received [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:01]recv_with_timeout no data received [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:11]recv_with_timeout no data received [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:26]recv_with_timeout no data received [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:36]recv_with_timeout no data received [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:03]recv_with_timeout no data received [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]recv_with_timeout no data received [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:20]recv_with_timeout no data received [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:52]recv_with_timeout no data received [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:11]recv_with_timeout no data received [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:50]recv_with_timeout no data received [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:21]recv_with_timeout no data received [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [14:59:58]recv_with_timeout no data received [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:26]recv_with_timeout no data received [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:36]recv_with_timeout no data received [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:01]recv_with_timeout no data received [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:14]recv_with_timeout no data received [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:32]recv_with_timeout no data received [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:27]recv_with_timeout no data received [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:37]recv_with_timeout no data received [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:30]recv_with_timeout no data received [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]recv_with_timeout no data received [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:35]recv_with_timeout no data received [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:32]recv_with_timeout no data received [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:04]recv_with_timeout no data received [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]recv_with_timeout no data received [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:01]recv_with_timeout no data received [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:29]accept exits with 7 [15:12:29]New connection [15:12:29]New thread 3067247972 created [15:12:29]Thread 3067104612 joined [15:12:29]Waiting for new connection... [15:12:29] Sock 7.Parse request [15:12:29]Sock 7.Check first char [15:12:29]Sock 7.First char is OK [15:12:29]request: POST /json_proto HTTP/1.0 [15:12:29]Method: POST [15:12:29]URL: /json_proto [15:12:29]Method is POST - this is cgi request [15:12:29]url: /json_proto [15:12:29]query_string will be loaded in cgi processing [15:12:29]execute_cgi json_proto POST (null) [15:12:29]execute_cgi path=json_proto method=POST [15:12:29]POST find Content-Length [15:12:29]Host: 172.17.43.195:8080 [15:12:29]Content-Length: 792 [15:12:29]Content-Type: application/json [15:12:29] [15:12:29]POST finish read [15:12:29]Found Content-Length = 792 [15:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952435", "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" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:29]execute_script... [15:12:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952435", "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" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:29]POST & json_proto [15:12:29]process_json_proto [15:12:29]json parsed OK: [15:12:29]protocol is kg_v1.0 [15:12:29]action value=close_receipt [15:12:29]process_action close_receipt [15:12:29]cmd_close_receipt [15:12:29]MH_GetDate [15:12:29]Write to MH i2c: F0 00 00 EF 02 E0 [15:12:29]Write i2c OK [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: F0 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: F0 09 00 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: F0 09 00 EF 02 00 DE 4C 22 67 74 2C AD 66 4F [15:12:29]GetLastDocTimeStamp 1730299045 [15:12:29]current date 1730301150 [15:12:29]FM_GetShiftState [15:12:29]SAM_PROTO_GetShiftState [15:12:29]wFMCommunicate request_size=4 [15:12:29]MH_SAM_APDU [15:12:29]CAPDU: 80 13 01 00 [15:12:29]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [15:12:29]Write i2c OK [15:12:29]MH_I2C_Read... [15:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:29]Read from MH i2c: E2 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: E2 0E 00 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 41 [15:12:29]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:12:29]wFMCommunicate OK [15:12:29]SAM_PROTO_GetShiftState done [15:12:29]FM_GetShiftState done [15:12:29]opened in 1730247109 [15:12:29]opened+sec_in_day 1730333509 [15:12:29]quantity*price = 0 [15:12:29]sum+1 = 1 [15:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 93 30.10.2024 15:12 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72856 ФПД: 167129387099046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T151230&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72856&fm=167129387099046&tin=02508201610067®Number=0000000000091644&sum=0 [15:12:30]StoreToDocumentArchive [15:12:30]shift 556 fd 72856 [15:12:30]save to /storage/0556/doc_00072856 [15:12:30]save last doc name /storage/0556/doc_00072856 to /storage/kkm_last_doc_name [15:12:30]save OK [15:12:30]Clear old archive folders... [15:12:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:30]tlvbuf is 01D42AA0 [15:12:30]SAM_PROTO_ClearQueue [15:12:30]wFMCommunicate request_size=4 [15:12:30]MH_SAM_APDU [15:12:30]CAPDU: 80 09 00 00 [15:12:30]Write to MH i2c: E2 08 00 FD 02 80 09 00 00 00 00 00 00 71 [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:30]Read from MH i2c: E2 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [15:12:30]RAPDU: 90 00 [15:12:30]wFMCommunicate OK [15:12:30]SAM_PROTO_ClearQueue done [15:12:30]KKMCreateOFDPacket [15:12:30]OFDProtocolAddRootSTLVToBuf [15:12:30]FM_MakeSignedData [15:12:30]FM_MakeSignedData [15:12:30]SAM_PROTO_SignData [15:12:30]wFMCommunicate request_size=4 [15:12:30]MH_SAM_APDU [15:12:30]CAPDU: 80 0D 01 02 [15:12:30]Write to MH i2c: E2 08 00 FE 02 80 0D 01 02 00 00 00 00 79 [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:30]Read from MH i2c: E2 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [15:12:30]RAPDU: 90 00 [15:12:30]wFMCommunicate OK [15:12:30]wFMCommunicate request_size=255 [15:12:30]MH_SAM_APDU [15:12:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 5D 00 00 00 F4 03 04 00 DE 4C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1C 01 00 35 04 06 00 98 [15:12:30]Write to MH i2c: E2 02 01 FF 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 66 3A 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 5D 00 00 00 F4 03 04 00 DE 4C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1C 01 00 35 04 06 00 98 00 00 AE [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]recv_with_timeout no data received [15:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:30]Read from MH i2c: E2 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [15:12:30]RAPDU: 90 00 [15:12:30]wFMCommunicate OK [15:12:30]wFMCommunicate request_size=10 [15:12:30]MH_SAM_APDU [15:12:30]CAPDU: 80 0D 02 02 05 00 D7 BF E3 A6 [15:12:30]Write to MH i2c: E2 0D 00 00 03 80 0D 02 02 05 00 00 D7 BF E3 A6 00 00 A6 [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:30]Read from MH i2c: E2 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 [15:12:30]MH_I2C_Read... [15:12:30]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [15:12:30]RAPDU: 90 00 [15:12:30]wFMCommunicate OK [15:12:30]wFMCommunicate request_size=4 [15:12:30]MH_SAM_APDU [15:12:30]CAPDU: 80 0D 03 02 [15:12:30]Write to MH i2c: E2 08 00 01 03 80 0D 03 02 00 00 00 00 7F [15:12:30]Write i2c OK [15:12:30]MH_I2C_Read... [15:12:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 0B 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 0B 00 01 03 00 D7 CE D3 C1 FC 49 15 EA 90 00 FD [15:12:31]RAPDU: D7 CE D3 C1 FC 49 15 EA 90 00 [15:12:31]wFMCommunicate OK [15:12:31]SAM_PROTO_SignData done [15:12:31]FM_MakeSignedData done [15:12:31]CreateOFDProtocolMessage [15:12:31]wFMCommunicate request_size=4 [15:12:31]MH_SAM_APDU [15:12:31]CAPDU: 80 11 00 00 [15:12:31]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 17 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D3 [15:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:12:31]wFMCommunicate OK [15:12:31]CreateOFDProtocolMessage done [15:12:31]OFDSenderStorePacket 72856 [15:12:31]StoreOFDPacket docnum=72856 [15:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1C 2F 07 01 14 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 5D 00 00 00 F4 03 04 00 DE 4C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1C 01 00 35 04 06 00 98 00 D7 BF E3 A6 D7 CE D3 C1 FC 49 15 EA [15:12:31]CheckFolder [15:12:31]dirname=/storage/ofd_packets [15:12:31]CheckFolder done [15:12:31]ProducePacketName [15:12:31]name=ofd_packets/00072856 [15:12:31]NVStorageSaveData ofd_packets/00072856 [15:12:31]File name is /storage/ofd_packets/00072856 [15:12:31]Write 301 bytes [15:12:31]NVStorageSaveData done [15:12:31]OFDSenderStorePacket done [15:12:31]KKMCreateOFDPacket done [15:12:31]NVStorageSaveData kkm_last_timestamp [15:12:31]File name is /storage/kkm_last_timestamp [15:12:31]Write 4 bytes [15:12:31]NVStorageSaveData done [15:12:31]ExternCall_PrintAddStr [15:12:31]wPrintStart [15:12:31]Write to MH i2c: 01 00 00 03 03 06 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 07 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 FF 0F 1B [15:12:31]RasterBufferAndPrint [15:12:31]line Счет N : (1)952435 [15:12:31]line ИНН: 02508201610067 [15:12:31]line Контрольно-Кассовый Чек [15:12:31]line ПРОДАЖА [15:12:31]line ТРК (МРК, ГНК) : 42 [15:12:31]line Товар: 2710124130 [15:12:31]line Аи-92-К-5 [15:12:31]line 14.950 * 0.00 [15:12:31]line = 0.00 [15:12:31]line НДС 12% НСП 1% [15:12:31]line > о реализуемом товаре [15:12:31]line ИТОГО: 0.00 [15:12:31]line НСП 1% : 0.00 [15:12:31]line НДС 12% : 0.00 [15:12:31]line Наличными: 0.00 [15:12:31]line Безнал.: 0.00 [15:12:31]line Место: АЗС № 113 "Партнер Нефть" [15:12:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:12:31]line СНО: Общий режим [15:12:31]line Чек 93 30.10.2024 15:12 [15:12:31]line Смена: 556 ФФД: 1.0 [15:12:31]line ЗНМ: 0300000087 [15:12:31]line РНМ: 0000000000091644 [15:12:31]line Версия ККМ: 001 [15:12:31]line Талоны: Топливная Карта [15:12:31]line 03047 [15:12:31]line ФМ: 0000000000874662 [15:12:31]line ФД: 72856 [15:12:31]line ФПД: 167129387099046 [15:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T151230&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72856&fm=167129387099046&tin=02508201610067®Number=0000000000091644&sum=0 [15:12:31]OFD Sender: Processing packet 72856 [packets to send 278, broken 277] [15:12:31]ProducePacketName [15:12:31]name=ofd_packets/00072856 [15:12:31]OFD Sender: To server: pG, [15:12:31]CommunicateWithHost lk.salyk.kg:30040 [15:12:31]ConnectInit lk.salyk.kg [15:12:31]written 0, free lines is 4095 [15:12:31]Write to MH i2c: 01 00 00 2D 03 30 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 07 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 EF 0C 32 [15:12:31]RasterBufferAndPrint [15:12:31]line [15:12:31]line [15:12:31]line [15:12:31]line [15:12:31]line [15:12:31]written 0, free lines is 3318 [15:12:31]MH_Cut [15:12:31]Write to MH i2c: D1 01 00 34 03 01 09 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: D1 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: D1 01 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: D1 01 00 34 03 00 08 [15:12:31]Write to MH i2c: 01 00 00 35 03 38 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:32]*** Cut start [15:12:32]*** Partial cut [15:12:32]*** CUTSNS_PIN = 1 [15:12:32]*** CUTSNS_PIN = 0 [15:12:32]*** Brake cut motor [15:12:33]Connected sock=9 [15:12:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1C 2F 07 01 14 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 5D 00 00 00 F4 03 04 00 DE 4C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1C 01 00 35 04 06 00 98 00 D7 BF E3 A6 D7 CE D3 C1 FC 49 15 EA [15:12:33]Read from MH i2c: 01 [15:12:33]MH_I2C_Read... [15:12:33]*** Stop cut motor [15:12:33]*** Cut end [15:12:33]Read from MH i2c: 01 07 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: 01 07 00 35 03 00 00 00 00 00 FF 0F 4D [15:12:33]process_action close_receipt done [15:12:33]requested_data is exist [15:12:33]produce_requested_data [15:12:33]requested_item fm.sn is exist - process it [15:12:33]wFMCommunicate request_size=4 [15:12:33]MH_SAM_APDU [15:12:33]CAPDU: 80 11 00 00 [15:12:33]Write to MH i2c: E2 08 00 36 03 80 11 00 00 00 00 00 00 B3 [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:33]Read from MH i2c: E2 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 17 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 17 00 36 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 07 [15:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:12:33]wFMCommunicate OK [15:12:33]requested_item fd.num is exist - process it [15:12:33]SAM_PROTO_GetFieldsCounters [15:12:33]wFMCommunicate request_size=4 [15:12:33]MH_SAM_APDU [15:12:33]CAPDU: 80 13 00 00 [15:12:33]Write to MH i2c: E2 08 00 37 03 80 13 00 00 00 00 00 00 B6 [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:33]Read from MH i2c: E2 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 62 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 62 00 37 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 98 1C 01 00 0E 04 04 00 2C 02 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 D1 [15:12:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 98 1C 01 00 0E 04 04 00 2C 02 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 [15:12:33]wFMCommunicate OK [15:12:33]SAM_PROTO_GetFieldsCounters done [15:12:33]requested_item shift.num is exist - process it [15:12:33]requested_item shift.opened is exist - process it [15:12:33]req_shift_opened [15:12:33]FM_GetShiftState [15:12:33]SAM_PROTO_GetShiftState [15:12:33]wFMCommunicate request_size=4 [15:12:33]MH_SAM_APDU [15:12:33]CAPDU: 80 13 01 00 [15:12:33]Write to MH i2c: E2 08 00 38 03 80 13 01 00 00 00 00 00 B8 [15:12:33]Write i2c OK [15:12:33]MH_I2C_Read... [15:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:33]Read from MH i2c: E2 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 0E 00 [15:12:33]MH_I2C_Read... [15:12:33]Read from MH i2c: E2 0E 00 38 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 8A [15:12:33]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:12:33]wFMCommunicate OK [15:12:33]SAM_PROTO_GetShiftState done [15:12:33]FM_GetShiftState done [15:12:33]req_shift_opened done [15:12:33]requested_item shift.open_date is exist - process it [15:12:33]req_shift_open_date [15:12:33]req_shift_open_date done [15:12:33]produce_requested_data done [15:12:33]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72856,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [15:12:33]process_action_free close_receipt [15:12:33]json_value_free [15:12:33]json_value_free done [15:12:33]process_json_proto returns [15:12:33]Send response to host [15:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72856,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [15:12:33]free response buf [15:12:33]execute_script done [15:12:33]execute_script returns [15:12:33]free content buf [15:12:33]Sock 7.Close socket [15:12:33]Sock 7.Thread stoped [15:12:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8A 54 47 00 A8 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1C 01 00 F4 03 04 00 98 F7 21 67 B6 04 01 00 00 BA 0C D6 BC 20 72 20 5E [15:12:35]CommunicateWithHost err = 0 [15:12:35]CheckOFDResponse [15:12:35]1017 (14) - 77093643461234 [15:12:35]1041 (16) - 0000000000874662 [15:12:35]1040 (4) - 72856 [15:12:35]1012 (4) - 30.10.2024 09:08 [15:12:35]1206 (1) - 0 [15:12:35]OFD Sender: Remove packet 72856 [15:12:35]ProducePacketName [15:12:35]name=ofd_packets/00072856 [15:12:35]NVStorageDeleteData [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:54]recv_with_timeout no data received [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:00]recv_with_timeout no data received [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:13]recv_with_timeout no data received [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:34]recv_with_timeout no data received [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:52]recv_with_timeout no data received [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:32]recv_with_timeout no data received [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:50]recv_with_timeout no data received [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:42]accept exits with 10 [15:17:42]New connection [15:17:42]New thread 3067104612 created [15:17:42]Thread 3067247972 joined [15:17:42]Waiting for new connection... [15:17:42] Sock 10.Parse request [15:17:42]Sock 10.Check first char [15:17:42]Sock 10.First char is OK [15:17:42]request: POST /json_proto HTTP/1.0 [15:17:42]Method: POST [15:17:42]URL: /json_proto [15:17:42]Method is POST - this is cgi request [15:17:42]url: /json_proto [15:17:42]query_string will be loaded in cgi processing [15:17:42]execute_cgi json_proto POST (null) [15:17:42]execute_cgi path=json_proto method=POST [15:17:42]POST find Content-Length [15:17:42]Host: 172.17.43.195:8080 [15:17:42]Content-Length: 846 [15:17:42]Content-Type: application/json [15:17:42] [15:17:42]POST finish read [15:17:42]Found Content-Length = 846 [15:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:42]execute_script... [15:17:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:42]POST & json_proto [15:17:42]process_json_proto [15:17:42]json parsed OK: [15:17:42]protocol is kg_v1.0 [15:17:42]action value=close_receipt [15:17:42]process_action close_receipt [15:17:42]cmd_close_receipt [15:17:42]MH_GetDate [15:17:42]Write to MH i2c: F0 00 00 39 03 2B [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: F0 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: F0 09 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: F0 09 00 39 03 00 17 4E 22 67 74 2C AD 66 D5 [15:17:42]GetLastDocTimeStamp 1730301150 [15:17:42]current date 1730301463 [15:17:42]FM_GetShiftState [15:17:42]SAM_PROTO_GetShiftState [15:17:42]wFMCommunicate request_size=4 [15:17:42]MH_SAM_APDU [15:17:42]CAPDU: 80 13 01 00 [15:17:42]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [15:17:42]Write i2c OK [15:17:42]MH_I2C_Read... [15:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:42]Read from MH i2c: E2 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 0E 00 [15:17:42]MH_I2C_Read... [15:17:42]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 8C [15:17:42]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:17:42]wFMCommunicate OK [15:17:42]SAM_PROTO_GetShiftState done [15:17:42]FM_GetShiftState done [15:17:42]opened in 1730247109 [15:17:42]opened+sec_in_day 1730333509 [15:17:42]quantity*price = 100011 [15:17:42]sum+1 = 100013 [15:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 94 30.10.2024 15:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72857 ФПД: 180049597298190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T151743&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72857&fm=180049597298190&tin=02508201610067®Number=0000000000091644&sum=100012 [15:17:43]StoreToDocumentArchive [15:17:43]shift 556 fd 72857 [15:17:43]save to /storage/0556/doc_00072857 [15:17:43]save last doc name /storage/0556/doc_00072857 to /storage/kkm_last_doc_name [15:17:43]save OK [15:17:43]Clear old archive folders... [15:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:17:43]tlvbuf is 01D446D0 [15:17:43]SAM_PROTO_ClearQueue [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 09 00 00 [15:17:43]Write to MH i2c: E2 08 00 47 03 80 09 00 00 00 00 00 00 BC [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 47 03 00 90 00 BE [15:17:43]RAPDU: 90 00 [15:17:43]wFMCommunicate OK [15:17:43]SAM_PROTO_ClearQueue done [15:17:43]KKMCreateOFDPacket [15:17:43]OFDProtocolAddRootSTLVToBuf [15:17:43]FM_MakeSignedData [15:17:43]FM_MakeSignedData [15:17:43]SAM_PROTO_SignData [15:17:43]wFMCommunicate request_size=4 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 0D 01 02 [15:17:43]Write to MH i2c: E2 08 00 48 03 80 0D 01 02 00 00 00 00 C4 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:43]Read from MH i2c: E2 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 [15:17:43]MH_I2C_Read... [15:17:43]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [15:17:43]RAPDU: 90 00 [15:17:43]wFMCommunicate OK [15:17:43]wFMCommunicate request_size=255 [15:17:43]MH_SAM_APDU [15:17:43]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 17 4E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1C 01 00 35 04 06 00 A3 C1 [15:17:43]Write to MH i2c: E2 02 01 49 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 17 4E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1C 01 00 35 04 06 00 A3 C1 00 00 D1 [15:17:43]Write i2c OK [15:17:43]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [15:17:44]RAPDU: 90 00 [15:17:44]wFMCommunicate OK [15:17:44]wFMCommunicate request_size=9 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 0D 02 02 04 10 49 F6 0E [15:17:44]Write to MH i2c: E2 0C 00 4A 03 80 0D 02 02 04 00 10 49 F6 0E 00 00 2C [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [15:17:44]RAPDU: 90 00 [15:17:44]wFMCommunicate OK [15:17:44]wFMCommunicate request_size=4 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 0D 03 02 [15:17:44]Write to MH i2c: E2 08 00 4B 03 80 0D 03 02 00 00 00 00 C9 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 0B 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 0B 00 4B 03 00 8E 62 D7 A2 46 11 72 C0 90 00 BC [15:17:44]RAPDU: 8E 62 D7 A2 46 11 72 C0 90 00 [15:17:44]wFMCommunicate OK [15:17:44]SAM_PROTO_SignData done [15:17:44]FM_MakeSignedData done [15:17:44]CreateOFDProtocolMessage [15:17:44]wFMCommunicate request_size=4 [15:17:44]MH_SAM_APDU [15:17:44]CAPDU: 80 11 00 00 [15:17:44]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:44]Read from MH i2c: E2 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 17 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1D [15:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:17:44]wFMCommunicate OK [15:17:44]CreateOFDProtocolMessage done [15:17:44]OFDSenderStorePacket 72857 [15:17:44]StoreOFDPacket docnum=72857 [15:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 00 43 06 01 F5 ED 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 17 4E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1C 01 00 35 04 06 00 A3 C1 10 49 F6 0E 8E 62 D7 A2 46 11 72 C0 [15:17:44]CheckFolder [15:17:44]dirname=/storage/ofd_packets [15:17:44]CheckFolder done [15:17:44]ProducePacketName [15:17:44]name=ofd_packets/00072857 [15:17:44]NVStorageSaveData ofd_packets/00072857 [15:17:44]File name is /storage/ofd_packets/00072857 [15:17:44]Write 300 bytes [15:17:44]NVStorageSaveData done [15:17:44]OFDSenderStorePacket done [15:17:44]KKMCreateOFDPacket done [15:17:44]NVStorageSaveData kkm_last_timestamp [15:17:44]File name is /storage/kkm_last_timestamp [15:17:44]Write 4 bytes [15:17:44]NVStorageSaveData done [15:17:44]ExternCall_PrintAddStr [15:17:44]wPrintStart [15:17:44]Write to MH i2c: 01 00 00 4D 03 50 [15:17:44]Write i2c OK [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 07 00 [15:17:44]MH_I2C_Read... [15:17:44]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 FF 0F 65 [15:17:44]RasterBufferAndPrint [15:17:44]line Счет N : (1)952436 [15:17:44]line ИНН: 02508201610067 [15:17:44]line Контрольно-Кассовый Чек [15:17:44]line ПРОДАЖА [15:17:44]line ТРК (МРК, ГНК) : 71 [15:17:44]line Товар: 2711190000 [15:17:44]line ГАЗ-К-3 [15:17:44]line 25.710 * 38.90 [15:17:44]line = 1000.12 [15:17:44]line НДС 12% НСП 1% [15:17:44]line > о реализуемом товаре [15:17:44]line ИТОГО: 1000.12 [15:17:44]line НСП 1% : 8.85 [15:17:44]line НДС 12% : 106.21 [15:17:44]line Наличными: 0.00 [15:17:44]line Безнал.: 1000.12 [15:17:44]line Место: АЗС № 113 "Партнер Нефть" [15:17:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:17:44]line СНО: Общий режим [15:17:44]line Чек 94 30.10.2024 15:17 [15:17:44]line Смена: 556 ФФД: 1.0 [15:17:44]line ЗНМ: 0300000087 [15:17:44]line РНМ: 0000000000091644 [15:17:44]line Версия ККМ: 001 [15:17:44]line Платежная система: АКБ Кыргызстан [15:17:44]line ФМ: 0000000000874662 [15:17:44]line ФД: 72857 [15:17:44]line ФПД: 180049597298190 [15:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T151743&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72857&fm=180049597298190&tin=02508201610067®Number=0000000000091644&sum=100012 [15:17:44]OFD Sender: Processing packet 72857 [packets to send 278, broken 277] [15:17:44]ProducePacketName [15:17:44]name=ofd_packets/00072857 [15:17:44]OFD Sender: To server: pG, [15:17:44]CommunicateWithHost lk.salyk.kg:30040 [15:17:44]ConnectInit lk.salyk.kg [15:17:44]written 0, free lines is 4095 [15:17:45]Write to MH i2c: 01 00 00 77 03 7A [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: 01 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: 01 07 00 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: 01 07 00 77 03 00 00 00 00 00 F3 0C 80 [15:17:45]RasterBufferAndPrint [15:17:45]line [15:17:45]line [15:17:45]line [15:17:45]line [15:17:45]line [15:17:45]written 0, free lines is 3321 [15:17:45]MH_Cut [15:17:45]Write to MH i2c: D1 01 00 7E 03 01 53 [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: D1 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: D1 01 00 [15:17:45]MH_I2C_Read... [15:17:45]Read from MH i2c: D1 01 00 7E 03 00 52 [15:17:45]Write to MH i2c: 01 00 00 7F 03 82 [15:17:45]Write i2c OK [15:17:45]MH_I2C_Read... [15:17:45]Connected sock=7 [15:17:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 00 43 06 01 F5 ED 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 17 4E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1C 01 00 35 04 06 00 A3 C1 10 49 F6 0E 8E 62 D7 A2 46 11 72 C0 [15:17:45]*** Cut start [15:17:45]*** Partial cut [15:17:45]*** CUTSNS_PIN = 1 [15:17:45]*** CUTSNS_PIN = 0 [15:17:46]*** Brake cut motor [15:17:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 89 64 47 00 05 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1C 01 00 F4 03 04 00 D1 F8 21 67 B6 04 01 00 00 2C 7A 81 40 B5 CB 80 DB [15:17:46]CommunicateWithHost err = 0 [15:17:46]CheckOFDResponse [15:17:46]1017 (14) - 77093643461234 [15:17:46]1041 (16) - 0000000000874662 [15:17:46]1040 (4) - 72857 [15:17:46]1012 (4) - 30.10.2024 09:13 [15:17:46]1206 (1) - 0 [15:17:46]OFD Sender: Remove packet 72857 [15:17:46]ProducePacketName [15:17:46]name=ofd_packets/00072857 [15:17:46]NVStorageDeleteData [15:17:46]Read from MH i2c: 01 [15:17:46]MH_I2C_Read... [15:17:46]*** Stop cut motor [15:17:46]*** Cut end [15:17:46]Read from MH i2c: 01 07 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: 01 07 00 7F 03 00 00 00 00 00 FF 0F 97 [15:17:46]process_action close_receipt done [15:17:46]requested_data is exist [15:17:46]produce_requested_data [15:17:46]requested_item fm.sn is exist - process it [15:17:46]wFMCommunicate request_size=4 [15:17:46]MH_SAM_APDU [15:17:46]CAPDU: 80 11 00 00 [15:17:46]Write to MH i2c: E2 08 00 80 03 80 11 00 00 00 00 00 00 FD [15:17:46]Write i2c OK [15:17:46]MH_I2C_Read... [15:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:46]Read from MH i2c: E2 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 17 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 17 00 80 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 51 [15:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:17:46]wFMCommunicate OK [15:17:46]requested_item fd.num is exist - process it [15:17:46]SAM_PROTO_GetFieldsCounters [15:17:46]wFMCommunicate request_size=4 [15:17:46]MH_SAM_APDU [15:17:46]CAPDU: 80 13 00 00 [15:17:46]Write to MH i2c: E2 08 00 81 03 80 13 00 00 00 00 00 00 00 [15:17:46]Write i2c OK [15:17:46]MH_I2C_Read... [15:17:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:46]Read from MH i2c: E2 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 62 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 62 00 81 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 99 1C 01 00 0E 04 04 00 2C 02 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 1F [15:17:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 99 1C 01 00 0E 04 04 00 2C 02 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 [15:17:46]wFMCommunicate OK [15:17:46]SAM_PROTO_GetFieldsCounters done [15:17:46]requested_item shift.num is exist - process it [15:17:46]requested_item shift.opened is exist - process it [15:17:46]req_shift_opened [15:17:46]FM_GetShiftState [15:17:46]SAM_PROTO_GetShiftState [15:17:46]wFMCommunicate request_size=4 [15:17:46]MH_SAM_APDU [15:17:46]CAPDU: 80 13 01 00 [15:17:46]Write to MH i2c: E2 08 00 82 03 80 13 01 00 00 00 00 00 02 [15:17:46]Write i2c OK [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 [15:17:46]MH_I2C_Read... [15:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:46]Read from MH i2c: E2 0E 00 [15:17:46]MH_I2C_Read... [15:17:46]Read from MH i2c: E2 0E 00 82 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 D4 [15:17:46]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:17:46]wFMCommunicate OK [15:17:46]SAM_PROTO_GetShiftState done [15:17:46]FM_GetShiftState done [15:17:46]req_shift_opened done [15:17:46]requested_item shift.open_date is exist - process it [15:17:46]req_shift_open_date [15:17:46]req_shift_open_date done [15:17:46]produce_requested_data done [15:17:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72857,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [15:17:46]process_action_free close_receipt [15:17:46]json_value_free [15:17:46]json_value_free done [15:17:46]process_json_proto returns [15:17:46]Send response to host [15:17:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72857,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [15:17:46]free response buf [15:17:46]execute_script done [15:17:46]execute_script returns [15:17:46]free content buf [15:17:46]Sock 10.Close socket [15:17:46]Sock 10.Thread stoped [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:15]recv_with_timeout no data received [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:19:57]recv_with_timeout no data received [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:19]recv_with_timeout no data received [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:20:57]recv_with_timeout no data received [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:26]recv_with_timeout no data received [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:36]accept exits with 9 [15:21:36]New connection [15:21:36]New thread 3067247972 created [15:21:36]Thread 3067104612 joined [15:21:36]Waiting for new connection... [15:21:36] Sock 9.Parse request [15:21:36]Sock 9.Check first char [15:21:36]Sock 9.First char is OK [15:21:36]request: POST /json_proto HTTP/1.0 [15:21:36]Method: POST [15:21:36]URL: /json_proto [15:21:36]Method is POST - this is cgi request [15:21:36]url: /json_proto [15:21:36]query_string will be loaded in cgi processing [15:21:36]execute_cgi json_proto POST (null) [15:21:36]execute_cgi path=json_proto method=POST [15:21:36]POST find Content-Length [15:21:36]Host: 172.17.43.195:8080 [15:21:36]Content-Length: 685 [15:21:36]Content-Type: application/json [15:21:36] [15:21:36]POST finish read [15:21:36]Found Content-Length = 685 [15:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.830, "sum" : 1510.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1510.00, "payments": [ { "type": 0, "sum" : 1510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:36]execute_script... [15:21:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.830, "sum" : 1510.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1510.00, "payments": [ { "type": 0, "sum" : 1510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:36]POST & json_proto [15:21:36]process_json_proto [15:21:36]json parsed OK: [15:21:36]protocol is kg_v1.0 [15:21:36]action value=close_receipt [15:21:36]process_action close_receipt [15:21:36]cmd_close_receipt [15:21:36]MH_GetDate [15:21:36]Write to MH i2c: F0 00 00 83 03 75 [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: F0 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: F0 09 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: F0 09 00 83 03 00 01 4F 22 67 74 2C AD 66 0A [15:21:36]GetLastDocTimeStamp 1730301463 [15:21:36]current date 1730301697 [15:21:36]FM_GetShiftState [15:21:36]SAM_PROTO_GetShiftState [15:21:36]wFMCommunicate request_size=4 [15:21:36]MH_SAM_APDU [15:21:36]CAPDU: 80 13 01 00 [15:21:36]Write to MH i2c: E2 08 00 84 03 80 13 01 00 00 00 00 00 04 [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:36]Read from MH i2c: E2 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 0E 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 0E 00 84 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 D6 [15:21:36]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:21:36]wFMCommunicate OK [15:21:36]SAM_PROTO_GetShiftState done [15:21:36]FM_GetShiftState done [15:21:36]opened in 1730247109 [15:21:36]opened+sec_in_day 1730333509 [15:21:36]quantity*price = 151048 [15:21:36]sum+1 = 151050 [15:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1510.00 Внесено: 2000.00 СДАЧА: 490.00 НСП 1% : 13.37 НДС 12% : 160.41 Наличными: 1510.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 95 30.10.2024 15:21 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72858 ФПД: 263215319508746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T152137&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72858&fm=263215319508746&tin=02508201610067®Number=0000000000091644&sum=151000 [15:21:37]StoreToDocumentArchive [15:21:37]shift 556 fd 72858 [15:21:37]save to /storage/0556/doc_00072858 [15:21:37]save last doc name /storage/0556/doc_00072858 to /storage/kkm_last_doc_name [15:21:37]save OK [15:21:37]Clear old archive folders... [15:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:21:37]tlvbuf is 01D9F290 [15:21:37]SAM_PROTO_ClearQueue [15:21:37]wFMCommunicate request_size=4 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 09 00 00 [15:21:37]Write to MH i2c: E2 08 00 91 03 80 09 00 00 00 00 00 00 06 [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 03 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [15:21:37]RAPDU: 90 00 [15:21:37]wFMCommunicate OK [15:21:37]SAM_PROTO_ClearQueue done [15:21:37]KKMCreateOFDPacket [15:21:37]OFDProtocolAddRootSTLVToBuf [15:21:37]FM_MakeSignedData [15:21:37]FM_MakeSignedData [15:21:37]SAM_PROTO_SignData [15:21:37]wFMCommunicate request_size=4 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 0D 01 02 [15:21:37]Write to MH i2c: E2 08 00 92 03 80 0D 01 02 00 00 00 00 0E [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 03 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 03 00 92 03 00 90 00 09 [15:21:37]RAPDU: 90 00 [15:21:37]wFMCommunicate OK [15:21:37]wFMCommunicate request_size=255 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AE 97 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 09 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 3E 00 00 00 00 07 04 06 00 D8 4D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 01 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9A 1C 01 00 35 04 06 00 EF 64 [15:21:37]Write to MH i2c: E2 02 01 93 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AE 97 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 09 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 3E 00 00 00 00 07 04 06 00 D8 4D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 01 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9A 1C 01 00 35 04 06 00 EF 64 00 00 7F [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 03 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [15:21:37]RAPDU: 90 00 [15:21:37]wFMCommunicate OK [15:21:37]wFMCommunicate request_size=9 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 0D 02 02 04 97 9E 67 0A [15:21:37]Write to MH i2c: E2 0C 00 94 03 80 0D 02 02 04 00 97 9E 67 0A 00 00 BF [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 03 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [15:21:37]RAPDU: 90 00 [15:21:37]wFMCommunicate OK [15:21:37]wFMCommunicate request_size=4 [15:21:37]MH_SAM_APDU [15:21:37]CAPDU: 80 0D 03 02 [15:21:37]Write to MH i2c: E2 08 00 95 03 80 0D 03 02 00 00 00 00 13 [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:37]Read from MH i2c: E2 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 0B 00 [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: E2 0B 00 95 03 00 C7 CC E8 CC DF 57 A5 4D 90 00 83 [15:21:37]RAPDU: C7 CC E8 CC DF 57 A5 4D 90 00 [15:21:37]wFMCommunicate OK [15:21:37]SAM_PROTO_SignData done [15:21:37]FM_MakeSignedData done [15:21:37]CreateOFDProtocolMessage [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 96 03 80 11 00 00 00 00 00 00 13 [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 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 67 [15:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:21:37]wFMCommunicate OK [15:21:37]CreateOFDProtocolMessage done [15:21:37]OFDSenderStorePacket 72858 [15:21:37]StoreOFDPacket docnum=72858 [15:21:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C5 5D 06 01 2C 61 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AE 97 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 09 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 3E 00 00 00 00 07 04 06 00 D8 4D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 01 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9A 1C 01 00 35 04 06 00 EF 64 97 9E 67 0A C7 CC E8 CC DF 57 A5 4D [15:21:37]CheckFolder [15:21:37]dirname=/storage/ofd_packets [15:21:37]CheckFolder done [15:21:37]ProducePacketName [15:21:37]name=ofd_packets/00072858 [15:21:37]NVStorageSaveData ofd_packets/00072858 [15:21:37]File name is /storage/ofd_packets/00072858 [15:21:37]Write 300 bytes [15:21:37]NVStorageSaveData done [15:21:37]OFDSenderStorePacket done [15:21:37]KKMCreateOFDPacket done [15:21:37]NVStorageSaveData kkm_last_timestamp [15:21:37]File name is /storage/kkm_last_timestamp [15:21:37]Write 4 bytes [15:21:37]NVStorageSaveData done [15:21:37]ExternCall_PrintAddStr [15:21:37]wPrintStart [15:21:37]Write to MH i2c: 01 00 00 97 03 9A [15:21:37]Write i2c OK [15:21:37]MH_I2C_Read... [15:21:37]Read from MH i2c: 01 [15:21:37]MH_I2C_Read... [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 97 03 00 00 00 00 00 FF 0F AF [15:21:37]RasterBufferAndPrint [15:21:37]line Счет N : (1)952437 [15:21:37]line ИНН: 02508201610067 [15:21:37]line Контрольно-Кассовый Чек [15:21:37]line ПРОДАЖА [15:21:37]line ТРК (МРК, ГНК) : 71 [15:21:37]line Товар: 2711190000 [15:21:37]line ГАЗ-К-3 [15:21:37]line 38.830 * 38.90 [15:21:37]line = 1510.49 [15:21:37]line НДС 12% НСП 1% [15:21:37]line > о реализуемом товаре [15:21:37]line ОКРУГЛЕНИЕ: -0.49 [15:21:37]line ИТОГО: 1510.00 [15:21:37]line Внесено: 2000.00 [15:21:37]line СДАЧА: 490.00 [15:21:37]line НСП 1% : 13.37 [15:21:37]line НДС 12% : 160.41 [15:21:37]line Наличными: 1510.00 [15:21:37]line Безнал.: 0.00 [15:21:37]line Место: АЗС № 113 "Партнер Нефть" [15:21:37]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:21:37]line СНО: Общий режим [15:21:37]line Чек 95 30.10.2024 15:21 [15:21:37]line Смена: 556 ФФД: 1.0 [15:21:37]line ЗНМ: 0300000087 [15:21:37]line РНМ: 0000000000091644 [15:21:37]line Версия ККМ: 001 [15:21:37]line ФМ: 0000000000874662 [15:21:37]line ФД: 72858 [15:21:37]line ФПД: 263215319508746 [15:21:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T152137&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72858&fm=263215319508746&tin=02508201610067®Number=0000000000091644&sum=151000 [15:21:38]OFD Sender: Processing packet 72858 [packets to send 278, broken 277] [15:21:38]ProducePacketName [15:21:38]name=ofd_packets/00072858 [15:21:38]OFD Sender: To server: pG, [15:21:38]CommunicateWithHost lk.salyk.kg:30040 [15:21:38]ConnectInit lk.salyk.kg [15:21:38]written 0, free lines is 4095 [15:21:38]Write to MH i2c: 01 00 00 C2 03 C5 [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: 01 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: 01 07 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: 01 07 00 C2 03 00 00 00 00 00 E0 0C B8 [15:21:38]RasterBufferAndPrint [15:21:38]line [15:21:38]line [15:21:38]line [15:21:38]line [15:21:38]line [15:21:38]written 0, free lines is 3302 [15:21:38]MH_Cut [15:21:38]Write to MH i2c: D1 01 00 C9 03 01 9E [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: D1 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: D1 01 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: D1 01 00 C9 03 00 9D [15:21:38]Write to MH i2c: 01 00 00 CA 03 CD [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:39]*** Cut start [15:21:39]*** Partial cut [15:21:39]*** CUTSNS_PIN = 1 [15:21:39]*** CUTSNS_PIN = 0 [15:21:39]*** Brake cut motor [15:21:40]Read from MH i2c: 01 [15:21:40]MH_I2C_Read... [15:21:40]*** Stop cut motor [15:21:40]*** Cut end [15:21:40]Read from MH i2c: 01 07 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 07 00 CA 03 00 00 00 00 00 FF 0F E2 [15:21:40]process_action close_receipt done [15:21:40]requested_data is exist [15:21:40]produce_requested_data [15:21:40]requested_item fm.sn is exist - process it [15:21:40]wFMCommunicate request_size=4 [15:21:40]MH_SAM_APDU [15:21:40]CAPDU: 80 11 00 00 [15:21:40]Write to MH i2c: E2 08 00 CB 03 80 11 00 00 00 00 00 00 48 [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:40]Read from MH i2c: E2 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: E2 17 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: E2 17 00 CB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9C [15:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:21:40]wFMCommunicate OK [15:21:40]requested_item fd.num is exist - process it [15:21:40]SAM_PROTO_GetFieldsCounters [15:21:40]wFMCommunicate request_size=4 [15:21:40]MH_SAM_APDU [15:21:40]CAPDU: 80 13 00 00 [15:21:40]Write to MH i2c: E2 08 00 CC 03 80 13 00 00 00 00 00 00 4B [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:40]Read from MH i2c: E2 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: E2 62 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: E2 62 00 CC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9A 1C 01 00 0E 04 04 00 2C 02 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 6E [15:21:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9A 1C 01 00 0E 04 04 00 2C 02 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 [15:21:40]wFMCommunicate OK [15:21:40]SAM_PROTO_GetFieldsCounters done [15:21:40]requested_item shift.num is exist - process it [15:21:40]requested_item shift.opened is exist - process it [15:21:40]req_shift_opened [15:21:40]FM_GetShiftState [15:21:40]SAM_PROTO_GetShiftState [15:21:40]wFMCommunicate request_size=4 [15:21:40]MH_SAM_APDU [15:21:40]CAPDU: 80 13 01 00 [15:21:40]Write to MH i2c: E2 08 00 CD 03 80 13 01 00 00 00 00 00 4D [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:40]Read from MH i2c: E2 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: E2 0E 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: E2 0E 00 CD 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 1F [15:21:40]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:21:40]wFMCommunicate OK [15:21:40]SAM_PROTO_GetShiftState done [15:21:40]FM_GetShiftState done [15:21:40]req_shift_opened done [15:21:40]requested_item shift.open_date is exist - process it [15:21:40]req_shift_open_date [15:21:40]req_shift_open_date done [15:21:40]produce_requested_data done [15:21:40]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72858,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [15:21:40]process_action_free close_receipt [15:21:40]json_value_free [15:21:40]json_value_free done [15:21:40]process_json_proto returns [15:21:40]Send response to host [15:21:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72858,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [15:21:40]free response buf [15:21:40]execute_script done [15:21:40]execute_script returns [15:21:40]free content buf [15:21:40]Sock 9.Close socket [15:21:40]Sock 9.Thread stoped [15:23:50]ConnectInit Can't connect to host [15:23:50]CommunicateWithHost connect error [15:23:50]CommunicateWithHost err = -1 [15:23:50]OFD Sender: Server communicate error [15:23:55]OFD Sender: Processing packet 72858 [packets to send 278, broken 277] [15:23:55]ProducePacketName [15:23:55]name=ofd_packets/00072858 [15:23:55]OFD Sender: To server: pG, [15:23:55]CommunicateWithHost lk.salyk.kg:30040 [15:23:55]ConnectInit lk.salyk.kg [15:23:57]Connected sock=9 [15:23:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C5 5D 06 01 2C 61 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AE 97 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 09 4E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 4D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 3E 00 00 00 00 07 04 06 00 D8 4D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 01 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9A 1C 01 00 35 04 06 00 EF 64 97 9E 67 0A C7 CC E8 CC DF 57 A5 4D [15:23:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 37 9D 47 00 DC 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 38 37 34 36 36 32 10 04 04 00 9A 1C 01 00 F4 03 04 00 45 FA 21 67 B6 04 01 00 00 40 80 F4 BB 9C A6 97 DC [15:23:58]CommunicateWithHost err = 0 [15:23:58]CheckOFDResponse [15:23:58]1017 (14) - 77093643461234 [15:23:58]1041 (16) - 0000000000874662 [15:23:58]1040 (4) - 72858 [15:23:58]1012 (4) - 30.10.2024 09:20 [15:23:58]1206 (1) - 0 [15:23:58]OFD Sender: Remove packet 72858 [15:23:58]ProducePacketName [15:23:58]name=ofd_packets/00072858 [15:23:58]NVStorageDeleteData [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:37]recv_with_timeout no data received [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:24]recv_with_timeout no data received [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:49]recv_with_timeout no data received [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:58]recv_with_timeout no data received [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:15]recv_with_timeout no data received [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:19]recv_with_timeout no data received [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:20]recv_with_timeout no data received [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:57]recv_with_timeout no data received [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]recv_with_timeout no data received [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:31]recv_with_timeout no data received [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:18]recv_with_timeout no data received [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [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:47]recv_with_timeout no data received [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:35:58]recv_with_timeout no data received [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:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:38]recv_with_timeout no data received [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:47]recv_with_timeout no data received [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:40:59]accept exits with 7 [15:40:59]New connection [15:40:59]New thread 3067104612 created [15:40:59]Thread 3067247972 joined [15:40:59]Waiting for new connection... [15:40:59] Sock 7.Parse request [15:40:59]Sock 7.Check first char [15:40:59]Sock 7.First char is OK [15:40:59]request: POST /json_proto HTTP/1.0 [15:40:59]Method: POST [15:40:59]URL: /json_proto [15:40:59]Method is POST - this is cgi request [15:40:59]url: /json_proto [15:40:59]query_string will be loaded in cgi processing [15:40:59]execute_cgi json_proto POST (null) [15:40:59]execute_cgi path=json_proto method=POST [15:40:59]POST find Content-Length [15:40:59]Host: 172.17.43.195:8080 [15:40:59]Content-Length: 792 [15:40:59]Content-Type: application/json [15:40:59] [15:40:59]POST finish read [15:40:59]Found Content-Length = 792 [15:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952438", "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" : 31.130, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:59]execute_script... [15:40: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)952438", "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" : 31.130, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:59]POST & json_proto [15:40:59]process_json_proto [15:40:59]json parsed OK: [15:40:59]protocol is kg_v1.0 [15:40:59]action value=close_receipt [15:40:59]process_action close_receipt [15:40:59]cmd_close_receipt [15:40:59]MH_GetDate [15:40:59]Write to MH i2c: F0 00 00 CE 03 C0 [15:40:59]Write i2c OK [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: F0 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: F0 09 00 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: F0 09 00 CE 03 00 8C 53 22 67 74 2C AD 66 E4 [15:40:59]GetLastDocTimeStamp 1730301697 [15:40:59]current date 1730302860 [15:40:59]FM_GetShiftState [15:40:59]SAM_PROTO_GetShiftState [15:40:59]wFMCommunicate request_size=4 [15:40:59]MH_SAM_APDU [15:40:59]CAPDU: 80 13 01 00 [15:40:59]Write to MH i2c: E2 08 00 CF 03 80 13 01 00 00 00 00 00 4F [15:40:59]Write i2c OK [15:40:59]MH_I2C_Read... [15:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:59]Read from MH i2c: E2 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 0E 00 [15:40:59]MH_I2C_Read... [15:40:59]Read from MH i2c: E2 0E 00 CF 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 21 [15:40:59]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:40:59]wFMCommunicate OK [15:40:59]SAM_PROTO_GetShiftState done [15:40:59]FM_GetShiftState done [15:40:59]opened in 1730247109 [15:40:59]opened+sec_in_day 1730333509 [15:40:59]quantity*price = 0 [15:40:59]sum+1 = 1 [15:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 96 30.10.2024 15:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72859 ФПД: 47855886591508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154100&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72859&fm=47855886591508&tin=02508201610067®Number=0000000000091644&sum=0 [15:41:00]StoreToDocumentArchive [15:41:00]shift 556 fd 72859 [15:41:00]save to /storage/0556/doc_00072859 [15:41:00]save last doc name /storage/0556/doc_00072859 to /storage/kkm_last_doc_name [15:41:00]save OK [15:41:00]Clear old archive folders... [15:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:00]tlvbuf is 01D44190 [15:41:00]SAM_PROTO_ClearQueue [15:41:00]wFMCommunicate request_size=4 [15:41:00]MH_SAM_APDU [15:41:00]CAPDU: 80 09 00 00 [15:41:00]Write to MH i2c: E2 08 00 DC 03 80 09 00 00 00 00 00 00 51 [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]OFD Sender: No OFD packet to send [15:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:00]Read from MH i2c: E2 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [15:41:00]RAPDU: 90 00 [15:41:00]wFMCommunicate OK [15:41:00]SAM_PROTO_ClearQueue done [15:41:00]KKMCreateOFDPacket [15:41:00]OFDProtocolAddRootSTLVToBuf [15:41:00]FM_MakeSignedData [15:41:00]FM_MakeSignedData [15:41:00]SAM_PROTO_SignData [15:41:00]wFMCommunicate request_size=4 [15:41:00]MH_SAM_APDU [15:41:00]CAPDU: 80 0D 01 02 [15:41:00]Write to MH i2c: E2 08 00 DD 03 80 0D 01 02 00 00 00 00 59 [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:00]Read from MH i2c: E2 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [15:41:00]RAPDU: 90 00 [15:41:00]wFMCommunicate OK [15:41:00]wFMCommunicate request_size=255 [15:41:00]MH_SAM_APDU [15:41: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 9A 79 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 60 00 00 00 F4 03 04 00 8C 53 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1C 01 00 35 04 06 00 2B [15:41:00]Write to MH i2c: E2 02 01 DE 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 9A 79 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 60 00 00 00 F4 03 04 00 8C 53 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1C 01 00 35 04 06 00 2B 00 00 4F [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:00]Read from MH i2c: E2 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 [15:41:00]MH_I2C_Read... [15:41:00]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [15:41:00]RAPDU: 90 00 [15:41:00]wFMCommunicate OK [15:41:00]wFMCommunicate request_size=10 [15:41:00]MH_SAM_APDU [15:41:00]CAPDU: 80 0D 02 02 05 86 51 1E E6 14 [15:41:00]Write to MH i2c: E2 0D 00 DF 03 80 0D 02 02 05 00 86 51 1E E6 14 00 00 55 [15:41:00]Write i2c OK [15:41:00]MH_I2C_Read... [15:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:00]Read from MH i2c: E2 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 03 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [15:41:01]RAPDU: 90 00 [15:41:01]wFMCommunicate OK [15:41:01]wFMCommunicate request_size=4 [15:41:01]MH_SAM_APDU [15:41:01]CAPDU: 80 0D 03 02 [15:41:01]Write to MH i2c: E2 08 00 E0 03 80 0D 03 02 00 00 00 00 5E [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:01]Read from MH i2c: E2 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 0B 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 0B 00 E0 03 00 12 F6 4A 7E 5C BD AC 88 90 00 7C [15:41:01]RAPDU: 12 F6 4A 7E 5C BD AC 88 90 00 [15:41:01]wFMCommunicate OK [15:41:01]SAM_PROTO_SignData done [15:41:01]FM_MakeSignedData done [15:41:01]CreateOFDProtocolMessage [15:41:01]wFMCommunicate request_size=4 [15:41:01]MH_SAM_APDU [15:41:01]CAPDU: 80 11 00 00 [15:41:01]Write to MH i2c: E2 08 00 E1 03 80 11 00 00 00 00 00 00 5E [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:01]Read from MH i2c: E2 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 17 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: E2 17 00 E1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B2 [15:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:41:01]wFMCommunicate OK [15:41:01]CreateOFDProtocolMessage done [15:41:01]OFDSenderStorePacket 72859 [15:41:01]StoreOFDPacket docnum=72859 [15:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1C 4A 07 01 79 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 79 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 60 00 00 00 F4 03 04 00 8C 53 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1C 01 00 35 04 06 00 2B 86 51 1E E6 14 12 F6 4A 7E 5C BD AC 88 [15:41:01]CheckFolder [15:41:01]dirname=/storage/ofd_packets [15:41:01]CheckFolder done [15:41:01]ProducePacketName [15:41:01]name=ofd_packets/00072859 [15:41:01]NVStorageSaveData ofd_packets/00072859 [15:41:01]File name is /storage/ofd_packets/00072859 [15:41:01]Write 301 bytes [15:41:01]NVStorageSaveData done [15:41:01]OFDSenderStorePacket done [15:41:01]KKMCreateOFDPacket done [15:41:01]NVStorageSaveData kkm_last_timestamp [15:41:01]File name is /storage/kkm_last_timestamp [15:41:01]Write 4 bytes [15:41:01]NVStorageSaveData done [15:41:01]ExternCall_PrintAddStr [15:41:01]wPrintStart [15:41:01]Write to MH i2c: 01 00 00 E2 03 E5 [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 07 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 FF 0F FA [15:41:01]RasterBufferAndPrint [15:41:01]line Счет N : (1)952438 [15:41:01]line ИНН: 02508201610067 [15:41:01]line Контрольно-Кассовый Чек [15:41:01]line ПРОДАЖА [15:41:01]line ТРК (МРК, ГНК) : 42 [15:41:01]line Товар: 2710124130 [15:41:01]line Аи-92-К-5 [15:41:01]line 31.130 * 0.00 [15:41:01]line = 0.00 [15:41:01]line НДС 12% НСП 1% [15:41:01]line > о реализуемом товаре [15:41:01]line ИТОГО: 0.00 [15:41:01]line НСП 1% : 0.00 [15:41:01]line НДС 12% : 0.00 [15:41:01]line Наличными: 0.00 [15:41:01]line Безнал.: 0.00 [15:41:01]line Место: АЗС № 113 "Партнер Нефть" [15:41:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:41:01]line СНО: Общий режим [15:41:01]line Чек 96 30.10.2024 15:41 [15:41:01]line Смена: 556 ФФД: 1.0 [15:41:01]line ЗНМ: 0300000087 [15:41:01]line РНМ: 0000000000091644 [15:41:01]line Версия ККМ: 001 [15:41:01]line Талоны: Топливная Карта [15:41:01]line 03047 [15:41:01]line ФМ: 0000000000874662 [15:41:01]line ФД: 72859 [15:41:01]line ФПД: 47855886591508 [15:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154100&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72859&fm=47855886591508&tin=02508201610067®Number=0000000000091644&sum=0 [15:41:01]OFD Sender: Processing packet 72859 [packets to send 278, broken 277] [15:41:01]ProducePacketName [15:41:01]name=ofd_packets/00072859 [15:41:01]OFD Sender: To server: pG, [15:41:01]CommunicateWithHost lk.salyk.kg:30040 [15:41:01]ConnectInit lk.salyk.kg [15:41:01]written 0, free lines is 4095 [15:41:01]Write to MH i2c: 01 00 00 0C 04 10 [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 07 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: 01 07 00 0C 04 00 00 00 00 00 EC 0C 0F [15:41:01]RasterBufferAndPrint [15:41:01]line [15:41:01]line [15:41:01]line [15:41:01]line [15:41:01]line [15:41:01]written 0, free lines is 3314 [15:41:01]MH_Cut [15:41:01]Write to MH i2c: D1 01 00 13 04 01 E9 [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: D1 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: D1 01 00 [15:41:01]MH_I2C_Read... [15:41:01]Read from MH i2c: D1 01 00 13 04 00 E8 [15:41:01]Write to MH i2c: 01 00 00 14 04 18 [15:41:01]Write i2c OK [15:41:01]MH_I2C_Read... [15:41:02]*** Cut start [15:41:02]*** Partial cut [15:41:02]*** CUTSNS_PIN = 1 [15:41:02]*** CUTSNS_PIN = 0 [15:41:02]*** Brake cut motor [15:41:02]Connected sock=11 [15:41:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1C 4A 07 01 79 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 79 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 60 00 00 00 F4 03 04 00 8C 53 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1C 01 00 35 04 06 00 2B 86 51 1E E6 14 12 F6 4A 7E 5C BD AC 88 [15:41:03]Read from MH i2c: 01 [15:41:03]MH_I2C_Read... [15:41:03]*** Stop cut motor [15:41:03]*** Cut end [15:41:03]Read from MH i2c: 01 07 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: 01 07 00 14 04 00 00 00 00 00 FF 0F 2D [15:41:03]process_action close_receipt done [15:41:03]requested_data is exist [15:41:03]produce_requested_data [15:41:03]requested_item fm.sn is exist - process it [15:41:03]wFMCommunicate request_size=4 [15:41:03]MH_SAM_APDU [15:41:03]CAPDU: 80 11 00 00 [15:41:03]Write to MH i2c: E2 08 00 15 04 80 11 00 00 00 00 00 00 93 [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:03]Read from MH i2c: E2 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 17 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 17 00 15 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E7 [15:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:41:03]wFMCommunicate OK [15:41:03]requested_item fd.num is exist - process it [15:41:03]SAM_PROTO_GetFieldsCounters [15:41:03]wFMCommunicate request_size=4 [15:41:03]MH_SAM_APDU [15:41:03]CAPDU: 80 13 00 00 [15:41:03]Write to MH i2c: E2 08 00 16 04 80 13 00 00 00 00 00 00 96 [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 30 A6 47 00 3B 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 38 37 34 36 36 32 10 04 04 00 9B 1C 01 00 F4 03 04 00 46 FE 21 67 B6 04 01 00 00 74 1C 08 5A 34 02 BE F4 [15:41:03]CommunicateWithHost err = 0 [15:41:03]CheckOFDResponse [15:41:03]1017 (14) - 77093643461234 [15:41:03]1041 (16) - 0000000000874662 [15:41:03]1040 (4) - 72859 [15:41:03]1012 (4) - 30.10.2024 09:37 [15:41:03]1206 (1) - 0 [15:41:03]OFD Sender: Remove packet 72859 [15:41:03]ProducePacketName [15:41:03]name=ofd_packets/00072859 [15:41:03]NVStorageDeleteData [15:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:03]Read from MH i2c: E2 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 62 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 62 00 16 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9B 1C 01 00 0E 04 04 00 2C 02 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 BD [15:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9B 1C 01 00 0E 04 04 00 2C 02 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 [15:41:03]wFMCommunicate OK [15:41:03]SAM_PROTO_GetFieldsCounters done [15:41:03]requested_item shift.num is exist - process it [15:41:03]requested_item shift.opened is exist - process it [15:41:03]req_shift_opened [15:41:03]FM_GetShiftState [15:41:03]SAM_PROTO_GetShiftState [15:41:03]wFMCommunicate request_size=4 [15:41:03]MH_SAM_APDU [15:41:03]CAPDU: 80 13 01 00 [15:41:03]Write to MH i2c: E2 08 00 17 04 80 13 01 00 00 00 00 00 98 [15:41:03]Write i2c OK [15:41:03]MH_I2C_Read... [15:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:03]Read from MH i2c: E2 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 0E 00 [15:41:03]MH_I2C_Read... [15:41:03]Read from MH i2c: E2 0E 00 17 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 6A [15:41:03]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:41:03]wFMCommunicate OK [15:41:03]SAM_PROTO_GetShiftState done [15:41:03]FM_GetShiftState done [15:41:03]req_shift_opened done [15:41:03]requested_item shift.open_date is exist - process it [15:41:03]req_shift_open_date [15:41:03]req_shift_open_date done [15:41:03]produce_requested_data done [15:41:03]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72859,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [15:41:03]process_action_free close_receipt [15:41:03]json_value_free [15:41:03]json_value_free done [15:41:03]process_json_proto returns [15:41:03]Send response to host [15:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72859,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [15:41:03]free response buf [15:41:03]execute_script done [15:41:03]execute_script returns [15:41:03]free content buf [15:41:03]Sock 7.Close socket [15:41:03]Sock 7.Thread stoped [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]recv_with_timeout no data received [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:23]recv_with_timeout no data received [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:34]recv_with_timeout no data received [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:57]recv_with_timeout no data received [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:20]recv_with_timeout no data received [15:42:23]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:30]recv_with_timeout no data received [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:17]recv_with_timeout no data received [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:47]recv_with_timeout no data received [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:10]accept exits with 10 [15:44:10]New connection [15:44:10]New thread 3067247972 created [15:44:10]Thread 3067104612 joined [15:44:10]Waiting for new connection... [15:44:10] Sock 10.Parse request [15:44:10]Sock 10.Check first char [15:44:10]Sock 10.First char is OK [15:44:10]request: POST /json_proto HTTP/1.0 [15:44:10]Method: POST [15:44:10]URL: /json_proto [15:44:10]Method is POST - this is cgi request [15:44:10]url: /json_proto [15:44:10]query_string will be loaded in cgi processing [15:44:10]execute_cgi json_proto POST (null) [15:44:10]execute_cgi path=json_proto method=POST [15:44:10]POST find Content-Length [15:44:10]Host: 172.17.43.195:8080 [15:44:10]Content-Length: 843 [15:44:10]Content-Type: application/json [15:44:10] [15:44:10]POST finish read [15:44:10]Found Content-Length = 843 [15:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:10]execute_script... [15:44: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)952439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:10]POST & json_proto [15:44:10]process_json_proto [15:44:10]json parsed OK: [15:44:10]protocol is kg_v1.0 [15:44:10]action value=close_receipt [15:44:10]process_action close_receipt [15:44:10]cmd_close_receipt [15:44:10]MH_GetDate [15:44:10]Write to MH i2c: F0 00 00 18 04 0B [15:44:10]Write i2c OK [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: F0 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: F0 09 00 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: F0 09 00 18 04 00 4B 54 22 67 74 2C AD 66 EF [15:44:10]GetLastDocTimeStamp 1730302860 [15:44:10]current date 1730303051 [15:44:10]FM_GetShiftState [15:44:10]SAM_PROTO_GetShiftState [15:44:10]wFMCommunicate request_size=4 [15:44:10]MH_SAM_APDU [15:44:10]CAPDU: 80 13 01 00 [15:44:10]Write to MH i2c: E2 08 00 19 04 80 13 01 00 00 00 00 00 9A [15:44:10]Write i2c OK [15:44:10]MH_I2C_Read... [15:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:10]Read from MH i2c: E2 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: E2 0E 00 [15:44:10]MH_I2C_Read... [15:44:10]Read from MH i2c: E2 0E 00 19 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 6C [15:44:10]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:44:10]wFMCommunicate OK [15:44:10]SAM_PROTO_GetShiftState done [15:44:10]FM_GetShiftState done [15:44:10]opened in 1730247109 [15:44:10]opened+sec_in_day 1730333509 [15:44:10]quantity*price = 250005 [15:44:10]sum+1 = 250006 [15:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.05 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.05 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 97 30.10.2024 15:44 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72860 ФПД: 240430629045594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154411&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72860&fm=240430629045594&tin=02508201610067®Number=0000000000091644&sum=250005 [15:44:11]StoreToDocumentArchive [15:44:11]shift 556 fd 72860 [15:44:11]save to /storage/0556/doc_00072860 [15:44:11]save last doc name /storage/0556/doc_00072860 to /storage/kkm_last_doc_name [15:44:11]save OK [15:44:11]Clear old archive folders... [15:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:11]tlvbuf is 01D9EBF0 [15:44:11]SAM_PROTO_ClearQueue [15:44:11]wFMCommunicate request_size=4 [15:44:11]MH_SAM_APDU [15:44:11]CAPDU: 80 09 00 00 [15:44:11]Write to MH i2c: E2 08 00 26 04 80 09 00 00 00 00 00 00 9C [15:44:11]Write i2c OK [15:44:11]MH_I2C_Read... [15:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:11]Read from MH i2c: E2 [15:44:11]MH_I2C_Read... [15:44:11]Read from MH i2c: E2 03 00 [15:44:11]MH_I2C_Read... [15:44:11]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [15:44:11]RAPDU: 90 00 [15:44:11]wFMCommunicate OK [15:44:11]SAM_PROTO_ClearQueue done [15:44:11]KKMCreateOFDPacket [15:44:11]OFDProtocolAddRootSTLVToBuf [15:44:11]FM_MakeSignedData [15:44:11]FM_MakeSignedData [15:44:11]SAM_PROTO_SignData [15:44:11]wFMCommunicate request_size=4 [15:44:11]MH_SAM_APDU [15:44:11]CAPDU: 80 0D 01 02 [15:44:11]Write to MH i2c: E2 08 00 27 04 80 0D 01 02 00 00 00 00 A4 [15:44:11]Write i2c OK [15:44:11]MH_I2C_Read... [15:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:11]Read from MH i2c: E2 [15:44:11]MH_I2C_Read... [15:44:11]Read from MH i2c: E2 03 00 [15:44:11]MH_I2C_Read... [15:44:11]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [15:44:11]RAPDU: 90 00 [15:44:11]wFMCommunicate OK [15:44:11]wFMCommunicate request_size=255 [15:44:11]MH_SAM_APDU [15:44:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 4B 54 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1C 01 00 35 04 06 00 DA [15:44:12]Write to MH i2c: E2 02 01 28 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 4B 54 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1C 01 00 35 04 06 00 DA 00 00 BF [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:12]Read from MH i2c: E2 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 03 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 03 00 28 04 00 90 00 A0 [15:44:12]RAPDU: 90 00 [15:44:12]wFMCommunicate OK [15:44:12]wFMCommunicate request_size=10 [15:44:12]MH_SAM_APDU [15:44:12]CAPDU: 80 0D 02 02 05 AB 9E 3C C5 5A [15:44:12]Write to MH i2c: E2 0D 00 29 04 80 0D 02 02 05 00 AB 9E 3C C5 5A 00 00 55 [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:12]Read from MH i2c: E2 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 03 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 03 00 29 04 00 90 00 A1 [15:44:12]RAPDU: 90 00 [15:44:12]wFMCommunicate OK [15:44:12]wFMCommunicate request_size=4 [15:44:12]MH_SAM_APDU [15:44:12]CAPDU: 80 0D 03 02 [15:44:12]Write to MH i2c: E2 08 00 2A 04 80 0D 03 02 00 00 00 00 A9 [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:12]Read from MH i2c: E2 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 0B 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 0B 00 2A 04 00 46 E9 30 C9 36 17 51 41 90 00 B1 [15:44:12]RAPDU: 46 E9 30 C9 36 17 51 41 90 00 [15:44:12]wFMCommunicate OK [15:44:12]SAM_PROTO_SignData done [15:44:12]FM_MakeSignedData done [15:44:12]CreateOFDProtocolMessage [15:44:12]wFMCommunicate request_size=4 [15:44:12]MH_SAM_APDU [15:44:12]CAPDU: 80 11 00 00 [15:44:12]Write to MH i2c: E2 08 00 2B 04 80 11 00 00 00 00 00 00 A9 [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:12]Read from MH i2c: E2 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 17 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: E2 17 00 2B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FD [15:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:44:12]wFMCommunicate OK [15:44:12]CreateOFDProtocolMessage done [15:44:12]OFDSenderStorePacket 72860 [15:44:12]StoreOFDPacket docnum=72860 [15:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 52 68 07 01 A9 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 4B 54 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1C 01 00 35 04 06 00 DA AB 9E 3C C5 5A 46 E9 30 C9 36 17 51 41 [15:44:12]CheckFolder [15:44:12]dirname=/storage/ofd_packets [15:44:12]CheckFolder done [15:44:12]ProducePacketName [15:44:12]name=ofd_packets/00072860 [15:44:12]NVStorageSaveData ofd_packets/00072860 [15:44:12]File name is /storage/ofd_packets/00072860 [15:44:12]Write 301 bytes [15:44:12]NVStorageSaveData done [15:44:12]OFDSenderStorePacket done [15:44:12]KKMCreateOFDPacket done [15:44:12]NVStorageSaveData kkm_last_timestamp [15:44:12]File name is /storage/kkm_last_timestamp [15:44:12]Write 4 bytes [15:44:12]NVStorageSaveData done [15:44:12]ExternCall_PrintAddStr [15:44:12]wPrintStart [15:44:12]Write to MH i2c: 01 00 00 2C 04 30 [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: 01 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: 01 07 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 FF 0F 45 [15:44:12]RasterBufferAndPrint [15:44:12]line Счет N : (1)952439 [15:44:12]line ИНН: 02508201610067 [15:44:12]line Контрольно-Кассовый Чек [15:44:12]line ПРОДАЖА [15:44:12]line ТРК (МРК, ГНК) : 63 [15:44:12]line Товар: 2710124130 [15:44:12]line Аи-92-К-5 [15:44:12]line 37.370 * 66.90 [15:44:12]line = 2500.05 [15:44:12]line НДС 12% НСП 1% [15:44:12]line > о реализуемом товаре [15:44:12]line ИТОГО: 2500.05 [15:44:12]line НСП 1% : 22.12 [15:44:12]line НДС 12% : 265.49 [15:44:12]line Наличными: 0.00 [15:44:12]line Безнал.: 2500.05 [15:44:12]line Место: АЗС № 113 "Партнер Нефть" [15:44:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:44:12]line СНО: Общий режим [15:44:12]line Чек 97 30.10.2024 15:44 [15:44:12]line Смена: 556 ФФД: 1.0 [15:44:12]line ЗНМ: 0300000087 [15:44:12]line РНМ: 0000000000091644 [15:44:12]line Версия ККМ: 001 [15:44:12]line Платежная система: АКБ Кыргызстан [15:44:12]line ФМ: 0000000000874662 [15:44:12]line ФД: 72860 [15:44:12]line ФПД: 240430629045594 [15:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154411&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72860&fm=240430629045594&tin=02508201610067®Number=0000000000091644&sum=250005 [15:44:12]written 0, free lines is 4095 [15:44:12]OFD Sender: Processing packet 72860 [packets to send 278, broken 277] [15:44:12]ProducePacketName [15:44:12]name=ofd_packets/00072860 [15:44:12]OFD Sender: To server: pG, [15:44:12]CommunicateWithHost lk.salyk.kg:30040 [15:44:12]ConnectInit lk.salyk.kg [15:44:12]Write to MH i2c: 01 00 00 56 04 5A [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: 01 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: 01 07 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: 01 07 00 56 04 00 00 00 00 00 FA 0C 67 [15:44:12]RasterBufferAndPrint [15:44:12]line [15:44:12]line [15:44:12]line [15:44:12]line [15:44:12]line [15:44:12]written 0, free lines is 3328 [15:44:12]MH_Cut [15:44:12]Write to MH i2c: D1 01 00 5D 04 01 33 [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: D1 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: D1 01 00 [15:44:12]MH_I2C_Read... [15:44:12]Read from MH i2c: D1 01 00 5D 04 00 32 [15:44:12]Write to MH i2c: 01 00 00 5E 04 62 [15:44:12]Write i2c OK [15:44:12]MH_I2C_Read... [15:44:13]Connected sock=9 [15:44:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 52 68 07 01 A9 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 4B 54 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1C 01 00 35 04 06 00 DA AB 9E 3C C5 5A 46 E9 30 C9 36 17 51 41 [15:44:13]*** Cut start [15:44:13]*** Partial cut [15:44:13]*** CUTSNS_PIN = 1 [15:44:13]*** CUTSNS_PIN = 0 [15:44:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DC 98 47 00 8B B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1C 01 00 F4 03 04 00 04 FF 21 67 B6 04 01 00 00 96 83 D3 65 9A 1C 19 BB [15:44:13]CommunicateWithHost err = 0 [15:44:13]CheckOFDResponse [15:44:13]1017 (14) - 77093643461234 [15:44:13]1041 (16) - 0000000000874662 [15:44:13]1040 (4) - 72860 [15:44:13]1012 (4) - 30.10.2024 09:40 [15:44:13]1206 (1) - 0 [15:44:13]OFD Sender: Remove packet 72860 [15:44:13]ProducePacketName [15:44:13]name=ofd_packets/00072860 [15:44:13]NVStorageDeleteData [15:44:13]*** Brake cut motor [15:44:14]Read from MH i2c: 01 [15:44:14]MH_I2C_Read... [15:44:14]*** Stop cut motor [15:44:14]*** Cut end [15:44:14]Read from MH i2c: 01 07 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: 01 07 00 5E 04 00 00 00 00 00 FF 0F 77 [15:44:14]process_action close_receipt done [15:44:14]requested_data is exist [15:44:14]produce_requested_data [15:44:14]requested_item fm.sn is exist - process it [15:44:14]wFMCommunicate request_size=4 [15:44:14]MH_SAM_APDU [15:44:14]CAPDU: 80 11 00 00 [15:44:14]Write to MH i2c: E2 08 00 5F 04 80 11 00 00 00 00 00 00 DD [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 17 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 17 00 5F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [15:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:44:14]wFMCommunicate OK [15:44:14]requested_item fd.num is exist - process it [15:44:14]SAM_PROTO_GetFieldsCounters [15:44:14]wFMCommunicate request_size=4 [15:44:14]MH_SAM_APDU [15:44:14]CAPDU: 80 13 00 00 [15:44:14]Write to MH i2c: E2 08 00 60 04 80 13 00 00 00 00 00 00 E0 [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]OFD Sender: No OFD packet to send [15:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 62 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 62 00 60 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9C 1C 01 00 0E 04 04 00 2C 02 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 0B [15:44:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9C 1C 01 00 0E 04 04 00 2C 02 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 [15:44:14]wFMCommunicate OK [15:44:14]SAM_PROTO_GetFieldsCounters done [15:44:14]requested_item shift.num is exist - process it [15:44:14]requested_item shift.opened is exist - process it [15:44:14]req_shift_opened [15:44:14]FM_GetShiftState [15:44:14]SAM_PROTO_GetShiftState [15:44:14]wFMCommunicate request_size=4 [15:44:14]MH_SAM_APDU [15:44:14]CAPDU: 80 13 01 00 [15:44:14]Write to MH i2c: E2 08 00 61 04 80 13 01 00 00 00 00 00 E2 [15:44:14]Write i2c OK [15:44:14]MH_I2C_Read... [15:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:14]Read from MH i2c: E2 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 0E 00 [15:44:14]MH_I2C_Read... [15:44:14]Read from MH i2c: E2 0E 00 61 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B4 [15:44:14]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:44:14]wFMCommunicate OK [15:44:14]SAM_PROTO_GetShiftState done [15:44:14]FM_GetShiftState done [15:44:14]req_shift_opened done [15:44:14]requested_item shift.open_date is exist - process it [15:44:14]req_shift_open_date [15:44:14]req_shift_open_date done [15:44:14]produce_requested_data done [15:44:14]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72860,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [15:44:14]process_action_free close_receipt [15:44:14]json_value_free [15:44:14]json_value_free done [15:44:14]process_json_proto returns [15:44:14]Send response to host [15:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72860,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [15:44:14]free response buf [15:44:14]execute_script done [15:44:14]execute_script returns [15:44:14]free content buf [15:44:14]Sock 10.Close socket [15:44:14]Sock 10.Thread stoped [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]recv_with_timeout no data received [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:50]recv_with_timeout no data received [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:38]recv_with_timeout no data received [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:20]recv_with_timeout no data received [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:31]recv_with_timeout no data received [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:56]recv_with_timeout no data received [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:11]recv_with_timeout no data received [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:36]recv_with_timeout no data received [15:49:39]OFD Sender: No OFD packet to send [15:49:44]OFD Sender: No OFD packet to send [15:49:49]OFD Sender: No OFD packet to send [15:49:50]accept exits with 7 [15:49:50]New connection [15:49:50]New thread 3067104612 created [15:49:50]Thread 3067247972 joined [15:49:50]Waiting for new connection... [15:49:50] Sock 7.Parse request [15:49:50]Sock 7.Check first char [15:49:50]Sock 7.First char is OK [15:49:50]request: POST /json_proto HTTP/1.0 [15:49:50]Method: POST [15:49:50]URL: /json_proto [15:49:50]Method is POST - this is cgi request [15:49:50]url: /json_proto [15:49:50]query_string will be loaded in cgi processing [15:49:50]execute_cgi json_proto POST (null) [15:49:50]execute_cgi path=json_proto method=POST [15:49:50]POST find Content-Length [15:49:50]Host: 172.17.43.195:8080 [15:49:50]Content-Length: 824 [15:49:50]Content-Type: application/json [15:49:50] [15:49:50]POST finish read [15:49:50]Found Content-Length = 824 [15:49:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952440", "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" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:50]execute_script... [15:49:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952440", "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" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:50]POST & json_proto [15:49:50]process_json_proto [15:49:50]json parsed OK: [15:49:50]protocol is kg_v1.0 [15:49:50]action value=close_receipt [15:49:50]process_action close_receipt [15:49:50]cmd_close_receipt [15:49:50]MH_GetDate [15:49:50]Write to MH i2c: F0 00 00 62 04 55 [15:49:50]Write i2c OK [15:49:50]MH_I2C_Read... [15:49:50]Read from MH i2c: F0 [15:49:50]MH_I2C_Read... [15:49:50]Read from MH i2c: F0 09 00 [15:49:50]MH_I2C_Read... [15:49:50]Read from MH i2c: F0 09 00 62 04 00 A0 55 22 67 74 2C AD 66 8F [15:49:50]GetLastDocTimeStamp 1730303051 [15:49:50]current date 1730303392 [15:49:50]FM_GetShiftState [15:49:50]SAM_PROTO_GetShiftState [15:49:50]wFMCommunicate request_size=4 [15:49:50]MH_SAM_APDU [15:49:50]CAPDU: 80 13 01 00 [15:49:50]Write to MH i2c: E2 08 00 63 04 80 13 01 00 00 00 00 00 E4 [15:49:50]Write i2c OK [15:49:50]MH_I2C_Read... [15:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:50]Read from MH i2c: E2 [15:49:50]MH_I2C_Read... [15:49:50]Read from MH i2c: E2 0E 00 [15:49:50]MH_I2C_Read... [15:49:50]Read from MH i2c: E2 0E 00 63 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B6 [15:49:50]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:49:50]wFMCommunicate OK [15:49:50]SAM_PROTO_GetShiftState done [15:49:50]FM_GetShiftState done [15:49:50]opened in 1730247109 [15:49:50]opened+sec_in_day 1730333509 [15:49:50]quantity*price = 400050 [15:49:50]sum+1 = 400051 [15:49:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 98 30.10.2024 15:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 72861 ФПД: 82304825220924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154952&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72861&fm=82304825220924&tin=02508201610067®Number=0000000000091644&sum=400050 [15:49:52]StoreToDocumentArchive [15:49:52]shift 556 fd 72861 [15:49:52]save to /storage/0556/doc_00072861 [15:49:52]save last doc name /storage/0556/doc_00072861 to /storage/kkm_last_doc_name [15:49:52]save OK [15:49:52]Clear old archive folders... [15:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:49:52]tlvbuf is 01D3D6C0 [15:49:52]SAM_PROTO_ClearQueue [15:49:52]wFMCommunicate request_size=4 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 09 00 00 [15:49:52]Write to MH i2c: E2 08 00 70 04 80 09 00 00 00 00 00 00 E6 [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [15:49:52]RAPDU: 90 00 [15:49:52]wFMCommunicate OK [15:49:52]SAM_PROTO_ClearQueue done [15:49:52]KKMCreateOFDPacket [15:49:52]OFDProtocolAddRootSTLVToBuf [15:49:52]FM_MakeSignedData [15:49:52]FM_MakeSignedData [15:49:52]SAM_PROTO_SignData [15:49:52]wFMCommunicate request_size=4 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 0D 01 02 [15:49:52]Write to MH i2c: E2 08 00 71 04 80 0D 01 02 00 00 00 00 EE [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 71 04 00 90 00 E9 [15:49:52]RAPDU: 90 00 [15:49:52]wFMCommunicate OK [15:49:52]wFMCommunicate request_size=255 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A0 55 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1C 01 00 35 04 06 00 [15:49:52]Write to MH i2c: E2 02 01 72 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A0 55 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1C 01 00 35 04 06 00 00 00 AC [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 72 04 00 90 00 EA [15:49:52]RAPDU: 90 00 [15:49:52]wFMCommunicate OK [15:49:52]wFMCommunicate request_size=11 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 0D 02 02 06 4A DB 15 DE DF 3C [15:49:52]Write to MH i2c: E2 0E 00 73 04 80 0D 02 02 06 00 4A DB 15 DE DF 3C 00 00 30 [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 03 00 73 04 00 90 00 EB [15:49:52]RAPDU: 90 00 [15:49:52]wFMCommunicate OK [15:49:52]wFMCommunicate request_size=4 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 0D 03 02 [15:49:52]Write to MH i2c: E2 08 00 74 04 80 0D 03 02 00 00 00 00 F3 [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 0B 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 0B 00 74 04 00 3B B0 D8 1E 0A 3C A4 80 90 00 3F [15:49:52]RAPDU: 3B B0 D8 1E 0A 3C A4 80 90 00 [15:49:52]wFMCommunicate OK [15:49:52]SAM_PROTO_SignData done [15:49:52]FM_MakeSignedData done [15:49:52]CreateOFDProtocolMessage [15:49:52]wFMCommunicate request_size=4 [15:49:52]MH_SAM_APDU [15:49:52]CAPDU: 80 11 00 00 [15:49:52]Write to MH i2c: E2 08 00 75 04 80 11 00 00 00 00 00 00 F3 [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:52]Read from MH i2c: E2 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 17 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: E2 17 00 75 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 47 [15:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:49:52]wFMCommunicate OK [15:49:52]CreateOFDProtocolMessage done [15:49:52]OFDSenderStorePacket 72861 [15:49:52]StoreOFDPacket docnum=72861 [15:49:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 7D C8 08 01 10 29 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A0 55 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1C 01 00 35 04 06 00 4A DB 15 DE DF 3C 3B B0 D8 1E 0A 3C A4 80 [15:49:52]CheckFolder [15:49:52]dirname=/storage/ofd_packets [15:49:52]CheckFolder done [15:49:52]ProducePacketName [15:49:52]name=ofd_packets/00072861 [15:49:52]NVStorageSaveData ofd_packets/00072861 [15:49:52]File name is /storage/ofd_packets/00072861 [15:49:52]Write 302 bytes [15:49:52]NVStorageSaveData done [15:49:52]OFDSenderStorePacket done [15:49:52]KKMCreateOFDPacket done [15:49:52]NVStorageSaveData kkm_last_timestamp [15:49:52]File name is /storage/kkm_last_timestamp [15:49:52]Write 4 bytes [15:49:52]NVStorageSaveData done [15:49:52]ExternCall_PrintAddStr [15:49:52]wPrintStart [15:49:52]Write to MH i2c: 01 00 00 76 04 7A [15:49:52]Write i2c OK [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: 01 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: 01 07 00 [15:49:52]MH_I2C_Read... [15:49:52]Read from MH i2c: 01 07 00 76 04 00 00 00 00 00 FF 0F 8F [15:49:52]RasterBufferAndPrint [15:49:52]line Счет N : (1)952440 [15:49:52]line ИНН: 02508201610067 [15:49:52]line Контрольно-Кассовый Чек [15:49:52]line ПРОДАЖА [15:49:52]line ТРК (МРК, ГНК) : 33 [15:49:52]line Товар: 2710194210 [15:49:52]line ДТ(л)-К-5 [15:49:52]line 52.500 * 76.20 [15:49:52]line = 4000.50 [15:49:52]line НДС 12% НСП 1% [15:49:52]line > о реализуемом товаре [15:49:52]line ИТОГО: 4000.50 [15:49:52]line НСП 1% : 35.40 [15:49:52]line НДС 12% : 424.83 [15:49:52]line Наличными: 0.00 [15:49:52]line Безнал.: 4000.50 [15:49:52]line Место: АЗС № 113 "Партнер Нефть" [15:49:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:49:52]line СНО: Общий режим [15:49:52]line Чек 98 30.10.2024 15:49 [15:49:52]line Смена: 556 ФФД: 1.0 [15:49:52]line ЗНМ: 0300000087 [15:49:52]line РНМ: 0000000000091644 [15:49:52]line Версия ККМ: 001 [15:49:52]line Платежная система: Бакай банк [15:49:52]line ФМ: 0000000000874662 [15:49:52]line ФД: 72861 [15:49:52]line ФПД: 82304825220924 [15:49:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T154952&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72861&fm=82304825220924&tin=02508201610067®Number=0000000000091644&sum=400050 [15:49:52]written 0, free lines is 4095 [15:49:52]OFD Sender: Processing packet 72861 [packets to send 278, broken 277] [15:49:52]ProducePacketName [15:49:52]name=ofd_packets/00072861 [15:49:52]OFD Sender: To server: pG, [15:49:52]CommunicateWithHost lk.salyk.kg:30040 [15:49:52]ConnectInit lk.salyk.kg [15:49:53]Write to MH i2c: 01 00 00 A0 04 A4 [15:49:53]Write i2c OK [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: 01 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: 01 07 00 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: 01 07 00 A0 04 00 00 00 00 00 F2 0C A9 [15:49:53]RasterBufferAndPrint [15:49:53]line [15:49:53]line [15:49:53]line [15:49:53]line [15:49:53]line [15:49:53]written 0, free lines is 3321 [15:49:53]MH_Cut [15:49:53]Write to MH i2c: D1 01 00 A7 04 01 7D [15:49:53]Write i2c OK [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: D1 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: D1 01 00 [15:49:53]MH_I2C_Read... [15:49:53]Read from MH i2c: D1 01 00 A7 04 00 7C [15:49:53]Write to MH i2c: 01 00 00 A8 04 AC [15:49:53]Write i2c OK [15:49:53]MH_I2C_Read... [15:49:53]Connected sock=10 [15:49:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 7D C8 08 01 10 29 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 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A0 55 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1C 01 00 35 04 06 00 4A DB 15 DE DF 3C 3B B0 D8 1E 0A 3C A4 80 [15:49:53]*** Cut start [15:49:53]*** Partial cut [15:49:53]*** CUTSNS_PIN = 1 [15:49:53]*** CUTSNS_PIN = 0 [15:49:54]*** Brake cut motor [15:49:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6C DB 47 00 98 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1C 01 00 F4 03 04 00 59 00 22 67 B6 04 01 00 00 21 54 40 09 2D D5 5D 97 [15:49:54]CommunicateWithHost err = 0 [15:49:54]CheckOFDResponse [15:49:54]1017 (14) - 77093643461234 [15:49:54]1041 (16) - 0000000000874662 [15:49:54]1040 (4) - 72861 [15:49:54]1012 (4) - 30.10.2024 09:46 [15:49:54]1206 (1) - 0 [15:49:54]OFD Sender: Remove packet 72861 [15:49:54]ProducePacketName [15:49:54]name=ofd_packets/00072861 [15:49:54]NVStorageDeleteData [15:49:54]Read from MH i2c: 01 [15:49:54]MH_I2C_Read... [15:49:54]*** Stop cut motor [15:49:54]*** Cut end [15:49:54]Read from MH i2c: 01 07 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 FF 0F C1 [15:49:54]process_action close_receipt done [15:49:54]requested_data is exist [15:49:54]produce_requested_data [15:49:54]requested_item fm.sn is exist - process it [15:49:54]wFMCommunicate request_size=4 [15:49:54]MH_SAM_APDU [15:49:54]CAPDU: 80 11 00 00 [15:49:54]Write to MH i2c: E2 08 00 A9 04 80 11 00 00 00 00 00 00 27 [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:54]Read from MH i2c: E2 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 17 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 17 00 A9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7B [15:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:49:54]wFMCommunicate OK [15:49:54]requested_item fd.num is exist - process it [15:49:54]SAM_PROTO_GetFieldsCounters [15:49:54]wFMCommunicate request_size=4 [15:49:54]MH_SAM_APDU [15:49:54]CAPDU: 80 13 00 00 [15:49:54]Write to MH i2c: E2 08 00 AA 04 80 13 00 00 00 00 00 00 2A [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:54]Read from MH i2c: E2 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 62 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 62 00 AA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9D 1C 01 00 0E 04 04 00 2C 02 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 59 [15:49:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9D 1C 01 00 0E 04 04 00 2C 02 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 [15:49:54]wFMCommunicate OK [15:49:54]SAM_PROTO_GetFieldsCounters done [15:49:54]requested_item shift.num is exist - process it [15:49:54]requested_item shift.opened is exist - process it [15:49:54]req_shift_opened [15:49:54]FM_GetShiftState [15:49:54]SAM_PROTO_GetShiftState [15:49:54]wFMCommunicate request_size=4 [15:49:54]MH_SAM_APDU [15:49:54]CAPDU: 80 13 01 00 [15:49:54]Write to MH i2c: E2 08 00 AB 04 80 13 01 00 00 00 00 00 2C [15:49:54]Write i2c OK [15:49:54]MH_I2C_Read... [15:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:54]Read from MH i2c: E2 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 0E 00 [15:49:54]MH_I2C_Read... [15:49:54]Read from MH i2c: E2 0E 00 AB 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 FE [15:49:54]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [15:49:54]wFMCommunicate OK [15:49:54]SAM_PROTO_GetShiftState done [15:49:54]FM_GetShiftState done [15:49:54]req_shift_opened done [15:49:54]requested_item shift.open_date is exist - process it [15:49:54]req_shift_open_date [15:49:54]req_shift_open_date done [15:49:54]produce_requested_data done [15:49:54]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72861,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [15:49:54]process_action_free close_receipt [15:49:54]json_value_free [15:49:54]json_value_free done [15:49:54]process_json_proto returns [15:49:54]Send response to host [15:49:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72861,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [15:49:54]free response buf [15:49:54]execute_script done [15:49:54]execute_script returns [15:49:54]free content buf [15:49:54]Sock 7.Close socket [15:49:54]Sock 7.Thread stoped [15:49:54]OFD Sender: No OFD packet to send [15:49:59]recv_with_timeout no data received [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:10]recv_with_timeout no data received [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:21]recv_with_timeout no data received [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:36]recv_with_timeout no data received [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:06]recv_with_timeout no data received [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:56]recv_with_timeout no data received [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:20]recv_with_timeout no data received [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:33]recv_with_timeout no data received [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:19]recv_with_timeout no data received [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:28]recv_with_timeout no data received [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:38]recv_with_timeout no data received [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:08]recv_with_timeout no data received [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:01]recv_with_timeout no data received [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:12]recv_with_timeout no data received [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]recv_with_timeout no data received [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:03]recv_with_timeout no data received [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:52]recv_with_timeout no data received [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [15:59:57]recv_with_timeout no data received [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]recv_with_timeout no data received [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:43]recv_with_timeout no data received [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:18]recv_with_timeout no data received [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:38]recv_with_timeout no data received [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:54]recv_with_timeout no data received [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:53]recv_with_timeout no data received [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]recv_with_timeout no data received [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:37]recv_with_timeout no data received [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:07]recv_with_timeout no data received [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:47]recv_with_timeout no data received [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:09:59]recv_with_timeout no data received [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:09]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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]recv_with_timeout no data received [16:11:31]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:42]accept exits with 9 [16:11:42]New connection [16:11:42]New thread 3067247972 created [16:11:42]Thread 3067104612 joined [16:11:42]Waiting for new connection... [16:11:42] Sock 9.Parse request [16:11:42]Sock 9.Check first char [16:11:42]Sock 9.First char is OK [16:11:42]request: POST /json_proto HTTP/1.0 [16:11:42]Method: POST [16:11:42]URL: /json_proto [16:11:42]Method is POST - this is cgi request [16:11:42]url: /json_proto [16:11:42]query_string will be loaded in cgi processing [16:11:42]execute_cgi json_proto POST (null) [16:11:42]execute_cgi path=json_proto method=POST [16:11:42]POST find Content-Length [16:11:42]Host: 172.17.43.195:8080 [16:11:42]Content-Length: 843 [16:11:42]Content-Type: application/json [16:11:42] [16:11:42]POST finish read [16:11:42]Found Content-Length = 843 [16:11:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:42]execute_script... [16:11:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:42]POST & json_proto [16:11:42]process_json_proto [16:11:42]json parsed OK: [16:11:42]protocol is kg_v1.0 [16:11:42]action value=close_receipt [16:11:42]process_action close_receipt [16:11:42]cmd_close_receipt [16:11:42]MH_GetDate [16:11:42]Write to MH i2c: F0 00 00 AC 04 9F [16:11:42]Write i2c OK [16:11:42]MH_I2C_Read... [16:11:42]Read from MH i2c: F0 [16:11:42]MH_I2C_Read... [16:11:42]Read from MH i2c: F0 09 00 [16:11:42]MH_I2C_Read... [16:11:42]Read from MH i2c: F0 09 00 AC 04 00 BF 5A 22 67 74 2C AD 66 FD [16:11:42]GetLastDocTimeStamp 1730303392 [16:11:42]current date 1730304703 [16:11:42]FM_GetShiftState [16:11:42]SAM_PROTO_GetShiftState [16:11:42]wFMCommunicate request_size=4 [16:11:42]MH_SAM_APDU [16:11:42]CAPDU: 80 13 01 00 [16:11:42]Write to MH i2c: E2 08 00 AD 04 80 13 01 00 00 00 00 00 2E [16:11:42]Write i2c OK [16:11:42]MH_I2C_Read... [16:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:42]Read from MH i2c: E2 [16:11:42]MH_I2C_Read... [16:11:42]Read from MH i2c: E2 0E 00 [16:11:42]MH_I2C_Read... [16:11:42]Read from MH i2c: E2 0E 00 AD 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 00 [16:11:42]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:11:42]wFMCommunicate OK [16:11:42]SAM_PROTO_GetShiftState done [16:11:42]FM_GetShiftState done [16:11:42]opened in 1730247109 [16:11:42]opened+sec_in_day 1730333509 [16:11:42]quantity*price = 120055 [16:11:42]sum+1 = 120057 [16:11:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.56 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.56 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 99 30.10.2024 16:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72862 ФПД: 79099846795474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161143&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72862&fm=79099846795474&tin=02508201610067®Number=0000000000091644&sum=120056 [16:11:43]StoreToDocumentArchive [16:11:43]shift 556 fd 72862 [16:11:43]save to /storage/0556/doc_00072862 [16:11:43]save last doc name /storage/0556/doc_00072862 to /storage/kkm_last_doc_name [16:11:43]save OK [16:11:43]Clear old archive folders... [16:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:43]tlvbuf is 01D43400 [16:11:43]SAM_PROTO_ClearQueue [16:11:43]wFMCommunicate request_size=4 [16:11:43]MH_SAM_APDU [16:11:43]CAPDU: 80 09 00 00 [16:11:43]Write to MH i2c: E2 08 00 BA 04 80 09 00 00 00 00 00 00 30 [16:11:43]Write i2c OK [16:11:43]MH_I2C_Read... [16:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:43]Read from MH i2c: E2 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: E2 03 00 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [16:11:43]RAPDU: 90 00 [16:11:43]wFMCommunicate OK [16:11:43]SAM_PROTO_ClearQueue done [16:11:43]KKMCreateOFDPacket [16:11:43]OFDProtocolAddRootSTLVToBuf [16:11:43]FM_MakeSignedData [16:11:43]FM_MakeSignedData [16:11:43]SAM_PROTO_SignData [16:11:43]wFMCommunicate request_size=4 [16:11:43]MH_SAM_APDU [16:11:43]CAPDU: 80 0D 01 02 [16:11:43]Write to MH i2c: E2 08 00 BB 04 80 0D 01 02 00 00 00 00 38 [16:11:43]Write i2c OK [16:11:43]MH_I2C_Read... [16:11:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:43]Read from MH i2c: E2 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: E2 03 00 [16:11:43]MH_I2C_Read... [16:11:43]Read from MH i2c: E2 03 00 BB 04 00 90 00 33 [16:11:43]RAPDU: 90 00 [16:11:43]wFMCommunicate OK [16:11:43]wFMCommunicate request_size=255 [16:11:43]MH_SAM_APDU [16:11:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 BF 5A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1C 01 00 35 04 06 00 47 [16:11:43]Write to MH i2c: E2 02 01 BC 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 BF 5A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1C 01 00 35 04 06 00 47 00 00 93 [16:11:43]Write i2c OK [16:11:43]MH_I2C_Read... [16:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:44]Read from MH i2c: E2 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: E2 03 00 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: E2 03 00 BC 04 00 90 00 34 [16:11:44]RAPDU: 90 00 [16:11:44]wFMCommunicate OK [16:11:44]wFMCommunicate request_size=10 [16:11:44]MH_SAM_APDU [16:11:44]CAPDU: 80 0D 02 02 05 F0 DE 45 20 D2 [16:11:44]Write to MH i2c: E2 0D 00 BD 04 80 0D 02 02 05 00 F0 DE 45 20 D2 00 00 4A [16:11:44]Write i2c OK [16:11:44]MH_I2C_Read... [16:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:44]Read from MH i2c: E2 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: E2 03 00 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: E2 03 00 BD 04 00 90 00 35 [16:11:44]RAPDU: 90 00 [16:11:44]wFMCommunicate OK [16:11:44]wFMCommunicate request_size=4 [16:11:44]MH_SAM_APDU [16:11:44]CAPDU: 80 0D 03 02 [16:11:44]Write to MH i2c: E2 08 00 BE 04 80 0D 03 02 00 00 00 00 3D [16:11:44]Write i2c OK [16:11:44]MH_I2C_Read... [16:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:44]Read from MH i2c: E2 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: E2 0B 00 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: E2 0B 00 BE 04 00 DE 05 8F 71 E4 74 72 B5 90 00 A0 [16:11:44]RAPDU: DE 05 8F 71 E4 74 72 B5 90 00 [16:11:44]wFMCommunicate OK [16:11:44]SAM_PROTO_SignData done [16:11:44]FM_MakeSignedData done [16:11:44]CreateOFDProtocolMessage [16:11:44]wFMCommunicate request_size=4 [16:11:44]MH_SAM_APDU [16:11:44]CAPDU: 80 11 00 00 [16:11:44]Write to MH i2c: E2 08 00 BF 04 80 11 00 00 00 00 00 00 3D [16:11:44]Write i2c OK [16:11:44]MH_I2C_Read... [16:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:44]Read from MH i2c: E2 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: E2 17 00 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: E2 17 00 BF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 91 [16:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:11:44]wFMCommunicate OK [16:11:44]CreateOFDProtocolMessage done [16:11:44]OFDSenderStorePacket 72862 [16:11:44]StoreOFDPacket docnum=72862 [16:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D1 F5 07 01 01 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 BF 5A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1C 01 00 35 04 06 00 47 F0 DE 45 20 D2 DE 05 8F 71 E4 74 72 B5 [16:11:44]CheckFolder [16:11:44]dirname=/storage/ofd_packets [16:11:44]CheckFolder done [16:11:44]ProducePacketName [16:11:44]name=ofd_packets/00072862 [16:11:44]NVStorageSaveData ofd_packets/00072862 [16:11:44]File name is /storage/ofd_packets/00072862 [16:11:44]Write 301 bytes [16:11:44]NVStorageSaveData done [16:11:44]OFDSenderStorePacket done [16:11:44]KKMCreateOFDPacket done [16:11:44]NVStorageSaveData kkm_last_timestamp [16:11:44]File name is /storage/kkm_last_timestamp [16:11:44]Write 4 bytes [16:11:44]NVStorageSaveData done [16:11:44]ExternCall_PrintAddStr [16:11:44]wPrintStart [16:11:44]Write to MH i2c: 01 00 00 C0 04 C4 [16:11:44]Write i2c OK [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: 01 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: 01 07 00 [16:11:44]MH_I2C_Read... [16:11:44]Read from MH i2c: 01 07 00 C0 04 00 00 00 00 00 FF 0F D9 [16:11:44]RasterBufferAndPrint [16:11:44]line Счет N : (1)952446 [16:11:44]line ИНН: 02508201610067 [16:11:44]line Контрольно-Кассовый Чек [16:11:44]line ПРОДАЖА [16:11:44]line ТРК (МРК, ГНК) : 41 [16:11:44]line Товар: 2710124500 [16:11:44]line Аи-95-К-3 [16:11:44]line 16.180 * 74.20 [16:11:44]line = 1200.56 [16:11:44]line НДС 12% НСП 1% [16:11:44]line > о реализуемом товаре [16:11:44]line ИТОГО: 1200.56 [16:11:44]line НСП 1% : 10.62 [16:11:44]line НДС 12% : 127.49 [16:11:44]line Наличными: 0.00 [16:11:44]line Безнал.: 1200.56 [16:11:44]line Место: АЗС № 113 "Партнер Нефть" [16:11:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:11:44]line СНО: Общий режим [16:11:44]line Чек 99 30.10.2024 16:11 [16:11:44]line Смена: 556 ФФД: 1.0 [16:11:44]line ЗНМ: 0300000087 [16:11:44]line РНМ: 0000000000091644 [16:11:44]line Версия ККМ: 001 [16:11:44]line Платежная система: АКБ Кыргызстан [16:11:44]line ФМ: 0000000000874662 [16:11:44]line ФД: 72862 [16:11:44]line ФПД: 79099846795474 [16:11:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161143&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72862&fm=79099846795474&tin=02508201610067®Number=0000000000091644&sum=120056 [16:11:44]written 0, free lines is 4095 [16:11:44]OFD Sender: Processing packet 72862 [packets to send 278, broken 277] [16:11:44]ProducePacketName [16:11:44]name=ofd_packets/00072862 [16:11:44]OFD Sender: To server: pG, [16:11:44]CommunicateWithHost lk.salyk.kg:30040 [16:11:44]ConnectInit lk.salyk.kg [16:11:45]Write to MH i2c: 01 00 00 EA 04 EE [16:11:45]Write i2c OK [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: 01 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: 01 07 00 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 F2 0C F3 [16:11:45]RasterBufferAndPrint [16:11:45]line [16:11:45]line [16:11:45]line [16:11:45]line [16:11:45]line [16:11:45]written 0, free lines is 3320 [16:11:45]MH_Cut [16:11:45]Write to MH i2c: D1 01 00 F1 04 01 C7 [16:11:45]Write i2c OK [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: D1 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: D1 01 00 [16:11:45]MH_I2C_Read... [16:11:45]Read from MH i2c: D1 01 00 F1 04 00 C6 [16:11:45]Write to MH i2c: 01 00 00 F2 04 F6 [16:11:45]Write i2c OK [16:11:45]MH_I2C_Read... [16:11:45]*** Cut start [16:11:45]*** Partial cut [16:11:45]*** CUTSNS_PIN = 1 [16:11:45]*** CUTSNS_PIN = 0 [16:11:46]*** Brake cut motor [16:11:46]Read from MH i2c: 01 [16:11:46]MH_I2C_Read... [16:11:46]*** Stop cut motor [16:11:46]*** Cut end [16:11:46]Read from MH i2c: 01 07 00 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: 01 07 00 F2 04 00 00 00 00 00 FF 0F 0B [16:11:46]process_action close_receipt done [16:11:46]requested_data is exist [16:11:46]produce_requested_data [16:11:46]requested_item fm.sn is exist - process it [16:11:46]wFMCommunicate request_size=4 [16:11:46]MH_SAM_APDU [16:11:46]CAPDU: 80 11 00 00 [16:11:46]Write to MH i2c: E2 08 00 F3 04 80 11 00 00 00 00 00 00 71 [16:11:46]Write i2c OK [16:11:46]MH_I2C_Read... [16:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:46]Read from MH i2c: E2 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: E2 17 00 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: E2 17 00 F3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [16:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:11:46]wFMCommunicate OK [16:11:46]requested_item fd.num is exist - process it [16:11:46]SAM_PROTO_GetFieldsCounters [16:11:46]wFMCommunicate request_size=4 [16:11:46]MH_SAM_APDU [16:11:46]CAPDU: 80 13 00 00 [16:11:46]Write to MH i2c: E2 08 00 F4 04 80 13 00 00 00 00 00 00 74 [16:11:46]Write i2c OK [16:11:46]MH_I2C_Read... [16:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:46]Read from MH i2c: E2 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: E2 62 00 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: E2 62 00 F4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9E 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [16:11:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9E 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:46]wFMCommunicate OK [16:11:46]SAM_PROTO_GetFieldsCounters done [16:11:46]requested_item shift.num is exist - process it [16:11:46]requested_item shift.opened is exist - process it [16:11:46]req_shift_opened [16:11:46]FM_GetShiftState [16:11:46]SAM_PROTO_GetShiftState [16:11:46]wFMCommunicate request_size=4 [16:11:46]MH_SAM_APDU [16:11:46]CAPDU: 80 13 01 00 [16:11:46]Write to MH i2c: E2 08 00 F5 04 80 13 01 00 00 00 00 00 76 [16:11:46]Write i2c OK [16:11:46]MH_I2C_Read... [16:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:46]Read from MH i2c: E2 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: E2 0E 00 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: E2 0E 00 F5 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 48 [16:11:46]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:11:46]wFMCommunicate OK [16:11:46]SAM_PROTO_GetShiftState done [16:11:46]FM_GetShiftState done [16:11:46]req_shift_opened done [16:11:46]requested_item shift.open_date is exist - process it [16:11:46]req_shift_open_date [16:11:46]req_shift_open_date done [16:11:46]produce_requested_data done [16:11:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72862,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [16:11:46]process_action_free close_receipt [16:11:46]json_value_free [16:11:46]json_value_free done [16:11:46]process_json_proto returns [16:11:46]Send response to host [16:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72862,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [16:11:46]free response buf [16:11:46]execute_script done [16:11:46]execute_script returns [16:11:46]free content buf [16:11:46]Sock 9.Close socket [16:11:46]Sock 9.Thread stoped [16:11:48]recv_with_timeout no data received [16:11:49]ConnectInit Can't take IP for lk.salyk.kg [16:11:49]CommunicateWithHost connect error [16:11:49]CommunicateWithHost err = -1 [16:11:49]OFD Sender: Server communicate error [16:11:52]accept exits with 7 [16:11:52]New connection [16:11:52]New thread 3067104612 created [16:11:52]Thread 3067247972 joined [16:11:52]Waiting for new connection... [16:11:52] Sock 7.Parse request [16:11:52]Sock 7.Check first char [16:11:52]Sock 7.First char is OK [16:11:52]request: POST /json_proto HTTP/1.0 [16:11:52]Method: POST [16:11:52]URL: /json_proto [16:11:52]Method is POST - this is cgi request [16:11:52]url: /json_proto [16:11:52]query_string will be loaded in cgi processing [16:11:52]execute_cgi json_proto POST (null) [16:11:52]execute_cgi path=json_proto method=POST [16:11:52]POST find Content-Length [16:11:52]Host: 172.17.43.195:8080 [16:11:52]Content-Length: 792 [16:11:52]Content-Type: application/json [16:11:52] [16:11:52]POST finish read [16:11:52]Found Content-Length = 792 [16:11:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:52]execute_script... [16: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 : (1)952447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:52]POST & json_proto [16:11:52]process_json_proto [16:11:52]json parsed OK: [16:11:52]protocol is kg_v1.0 [16:11:52]action value=close_receipt [16:11:52]process_action close_receipt [16:11:52]cmd_close_receipt [16:11:52]MH_GetDate [16:11:52]Write to MH i2c: F0 00 00 F6 04 E9 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: F0 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: F0 09 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: F0 09 00 F6 04 00 CA 5A 22 67 74 2C AD 66 52 [16:11:52]GetLastDocTimeStamp 1730304703 [16:11:52]current date 1730304714 [16:11:52]FM_GetShiftState [16:11:52]SAM_PROTO_GetShiftState [16:11:52]wFMCommunicate request_size=4 [16:11:52]MH_SAM_APDU [16:11:52]CAPDU: 80 13 01 00 [16:11:52]Write to MH i2c: E2 08 00 F7 04 80 13 01 00 00 00 00 00 78 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:52]Read from MH i2c: E2 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 0E 00 [16:11:52]MH_I2C_Read... [16:11:52]Read from MH i2c: E2 0E 00 F7 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4A [16:11:52]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:11:52]wFMCommunicate OK [16:11:52]SAM_PROTO_GetShiftState done [16:11:52]FM_GetShiftState done [16:11:52]opened in 1730247109 [16:11:52]opened+sec_in_day 1730333509 [16:11:52]quantity*price = 0 [16:11:52]sum+1 = 1 [16:11:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 100 30.10.2024 16:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72863 ФПД: 35877167033940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161154&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72863&fm=35877167033940&tin=02508201610067®Number=0000000000091644&sum=0 [16:11:53]StoreToDocumentArchive [16:11:53]shift 556 fd 72863 [16:11:53]save to /storage/0556/doc_00072863 [16:11:53]save last doc name /storage/0556/doc_00072863 to /storage/kkm_last_doc_name [16:11:53]save OK [16:11:53]Clear old archive folders... [16:11:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:53]tlvbuf is 01D4D040 [16:11:53]SAM_PROTO_ClearQueue [16:11:53]wFMCommunicate request_size=4 [16:11:53]MH_SAM_APDU [16:11:53]CAPDU: 80 09 00 00 [16:11:53]Write to MH i2c: E2 08 00 04 05 80 09 00 00 00 00 00 00 7B [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [16:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:54]Read from MH i2c: E2 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 03 00 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [16:11:54]RAPDU: 90 00 [16:11:54]wFMCommunicate OK [16:11:54]SAM_PROTO_ClearQueue done [16:11:54]KKMCreateOFDPacket [16:11:54]OFDProtocolAddRootSTLVToBuf [16:11:54]FM_MakeSignedData [16:11:54]FM_MakeSignedData [16:11:54]SAM_PROTO_SignData [16:11:54]wFMCommunicate request_size=4 [16:11:54]MH_SAM_APDU [16:11:54]CAPDU: 80 0D 01 02 [16:11:54]Write to MH i2c: E2 08 00 05 05 80 0D 01 02 00 00 00 00 83 [16:11:54]Write i2c OK [16:11:54]MH_I2C_Read... [16:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:54]Read from MH i2c: E2 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 03 00 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [16:11:54]RAPDU: 90 00 [16:11:54]wFMCommunicate OK [16:11:54]wFMCommunicate request_size=255 [16:11:54]MH_SAM_APDU [16:11:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CA 5A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1C 01 00 35 04 06 00 20 [16:11:54]Write to MH i2c: E2 02 01 06 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CA 5A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1C 01 00 35 04 06 00 20 00 00 16 [16:11:54]Write i2c OK [16:11:54]MH_I2C_Read... [16:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:54]Read from MH i2c: E2 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 03 00 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [16:11:54]RAPDU: 90 00 [16:11:54]wFMCommunicate OK [16:11:54]wFMCommunicate request_size=10 [16:11:54]MH_SAM_APDU [16:11:54]CAPDU: 80 0D 02 02 05 A1 4D CB EE 54 [16:11:54]Write to MH i2c: E2 0D 00 07 05 80 0D 02 02 05 00 A1 4D CB EE 54 00 00 8B [16:11:54]Write i2c OK [16:11:54]MH_I2C_Read... [16:11:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:54]Read from MH i2c: E2 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 03 00 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [16:11:54]RAPDU: 90 00 [16:11:54]wFMCommunicate OK [16:11:54]wFMCommunicate request_size=4 [16:11:54]MH_SAM_APDU [16:11:54]CAPDU: 80 0D 03 02 [16:11:54]Write to MH i2c: E2 08 00 08 05 80 0D 03 02 00 00 00 00 88 [16:11:54]Write i2c OK [16:11:54]MH_I2C_Read... [16:11:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:54]Read from MH i2c: E2 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 0B 00 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 0B 00 08 05 00 1A F3 90 FB 6C 13 3E 28 90 00 06 [16:11:54]RAPDU: 1A F3 90 FB 6C 13 3E 28 90 00 [16:11:54]wFMCommunicate OK [16:11:54]SAM_PROTO_SignData done [16:11:54]FM_MakeSignedData done [16:11:54]CreateOFDProtocolMessage [16:11:54]wFMCommunicate request_size=4 [16:11:54]MH_SAM_APDU [16:11:54]CAPDU: 80 11 00 00 [16:11:54]Write to MH i2c: E2 08 00 09 05 80 11 00 00 00 00 00 00 88 [16:11:54]Write i2c OK [16:11:54]MH_I2C_Read... [16:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:54]Read from MH i2c: E2 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 17 00 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 17 00 09 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [16:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:11:54]wFMCommunicate OK [16:11:54]CreateOFDProtocolMessage done [16:11:54]OFDSenderStorePacket 72863 [16:11:54]StoreOFDPacket docnum=72863 [16:11:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5B 16 07 01 08 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 64 00 00 00 F4 03 04 00 CA 5A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1C 01 00 35 04 06 00 20 A1 4D CB EE 54 1A F3 90 FB 6C 13 3E 28 [16:11:54]CheckFolder [16:11:54]dirname=/storage/ofd_packets [16:11:54]CheckFolder done [16:11:54]ProducePacketName [16:11:54]name=ofd_packets/00072863 [16:11:54]NVStorageSaveData ofd_packets/00072863 [16:11:54]File name is /storage/ofd_packets/00072863 [16:11:54]Write 301 bytes [16:11:54]NVStorageSaveData done [16:11:54]OFDSenderStorePacket done [16:11:54]KKMCreateOFDPacket done [16:11:54]NVStorageSaveData kkm_last_timestamp [16:11:54]File name is /storage/kkm_last_timestamp [16:11:54]Write 4 bytes [16:11:54]NVStorageSaveData done [16:11:54]ExternCall_PrintAddStr [16:11:54]wPrintStart [16:11:54]Write to MH i2c: 01 00 00 0A 05 0F [16:11:54]Write i2c OK [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: 01 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: 01 07 00 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 FF 0F 24 [16:11:54]RasterBufferAndPrint [16:11:54]line Счет N : (1)952447 [16:11:54]line ИНН: 02508201610067 [16:11:54]line Контрольно-Кассовый Чек [16:11:54]line ПРОДАЖА [16:11:54]line ТРК (МРК, ГНК) : 63 [16:11:54]line Товар: 2710124130 [16:11:54]line Аи-92-К-5 [16:11:54]line 20.000 * 0.00 [16:11:54]line = 0.00 [16:11:54]line НДС 12% НСП 1% [16:11:54]line > о реализуемом товаре [16:11:54]line ИТОГО: 0.00 [16:11:54]line НСП 1% : 0.00 [16:11:54]line НДС 12% : 0.00 [16:11:54]line Наличными: 0.00 [16:11:54]line Безнал.: 0.00 [16:11:54]line Место: АЗС № 113 "Партнер Нефть" [16:11:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:11:54]line СНО: Общий режим [16:11:54]line Чек 100 30.10.2024 16:11 [16:11:54]line Смена: 556 ФФД: 1.0 [16:11:54]line ЗНМ: 0300000087 [16:11:54]line РНМ: 0000000000091644 [16:11:54]line Версия ККМ: 001 [16:11:54]line Талоны: Топливная Карта [16:11:54]line 03047 [16:11:54]line ФМ: 0000000000874662 [16:11:54]line ФД: 72863 [16:11:54]line ФПД: 35877167033940 [16:11:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161154&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72863&fm=35877167033940&tin=02508201610067®Number=0000000000091644&sum=0 [16:11:54]written 0, free lines is 4095 [16:11:54]OFD Sender: Processing packet 72862 [packets to send 279, broken 277] [16:11:54]ProducePacketName [16:11:54]name=ofd_packets/00072862 [16:11:54]OFD Sender: To server: pG, [16:11:54]CommunicateWithHost lk.salyk.kg:30040 [16:11:54]ConnectInit lk.salyk.kg [16:11:54]Write to MH i2c: 01 00 00 34 05 39 [16:11:54]Write i2c OK [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: 01 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: 01 07 00 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: 01 07 00 34 05 00 00 00 00 00 F6 0C 42 [16:11:54]RasterBufferAndPrint [16:11:54]line [16:11:54]line [16:11:54]line [16:11:54]line [16:11:54]line [16:11:54]written 0, free lines is 3326 [16:11:54]MH_Cut [16:11:54]Write to MH i2c: D1 01 00 3B 05 01 12 [16:11:54]Write i2c OK [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: D1 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: D1 01 00 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: D1 01 00 3B 05 00 11 [16:11:55]Write to MH i2c: 01 00 00 3C 05 41 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** Cut start [16:11:55]*** Partial cut [16:11:55]*** CUTSNS_PIN = 1 [16:11:55]*** CUTSNS_PIN = 0 [16:11:55]Connected sock=11 [16:11:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D1 F5 07 01 01 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 BF 5A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1C 01 00 35 04 06 00 47 F0 DE 45 20 D2 DE 05 8F 71 E4 74 72 B5 [16:11:55]*** Brake cut motor [16:11:56]Read from MH i2c: 01 [16:11:56]MH_I2C_Read... [16:11:56]*** Stop cut motor [16:11:56]*** Cut end [16:11:56]Read from MH i2c: 01 07 00 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 FF 0F 56 [16:11:56]process_action close_receipt done [16:11:56]requested_data is exist [16:11:56]produce_requested_data [16:11:56]requested_item fm.sn is exist - process it [16:11:56]wFMCommunicate request_size=4 [16:11:56]MH_SAM_APDU [16:11:56]CAPDU: 80 11 00 00 [16:11:56]Write to MH i2c: E2 08 00 3D 05 80 11 00 00 00 00 00 00 BC [16:11:56]Write i2c OK [16:11:56]MH_I2C_Read... [16:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:56]Read from MH i2c: E2 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: E2 17 00 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: E2 17 00 3D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 10 [16:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:11:56]wFMCommunicate OK [16:11:56]requested_item fd.num is exist - process it [16:11:56]SAM_PROTO_GetFieldsCounters [16:11:56]wFMCommunicate request_size=4 [16:11:56]MH_SAM_APDU [16:11:56]CAPDU: 80 13 00 00 [16:11:56]Write to MH i2c: E2 08 00 3E 05 80 13 00 00 00 00 00 00 BF [16:11:56]Write i2c OK [16:11:56]MH_I2C_Read... [16:11:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:56]Read from MH i2c: E2 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: E2 62 00 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: E2 62 00 3E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9F 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [16:11:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9F 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:56]wFMCommunicate OK [16:11:56]SAM_PROTO_GetFieldsCounters done [16:11:56]requested_item shift.num is exist - process it [16:11:56]requested_item shift.opened is exist - process it [16:11:56]req_shift_opened [16:11:56]FM_GetShiftState [16:11:56]SAM_PROTO_GetShiftState [16:11:56]wFMCommunicate request_size=4 [16:11:56]MH_SAM_APDU [16:11:56]CAPDU: 80 13 01 00 [16:11:56]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [16:11:56]Write i2c OK [16:11:56]MH_I2C_Read... [16:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:56]Read from MH i2c: E2 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: E2 0E 00 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 93 [16:11:56]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:11:56]wFMCommunicate OK [16:11:56]SAM_PROTO_GetShiftState done [16:11:56]FM_GetShiftState done [16:11:56]req_shift_opened done [16:11:56]requested_item shift.open_date is exist - process it [16:11:56]req_shift_open_date [16:11:56]req_shift_open_date done [16:11:56]produce_requested_data done [16:11:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72863,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [16:11:56]process_action_free close_receipt [16:11:56]json_value_free [16:11:56]json_value_free done [16:11:56]process_json_proto returns [16:11:56]Send response to host [16:11:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72863,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [16:11:56]free response buf [16:11:56]execute_script done [16:11:56]execute_script returns [16:11:56]free content buf [16:11:56]Sock 7.Close socket [16:11:56]Sock 7.Thread stoped [16:11:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 36 D7 47 00 FF E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1C 01 00 F4 03 04 00 83 05 22 67 B6 04 01 00 00 EF E0 2B 6D 2E A3 43 55 [16:11:58]CommunicateWithHost err = 0 [16:11:58]CheckOFDResponse [16:11:58]1017 (14) - 77093643461234 [16:11:58]1041 (16) - 0000000000874662 [16:11:58]1040 (4) - 72862 [16:11:58]1012 (4) - 30.10.2024 10:08 [16:11:58]1206 (1) - 0 [16:11:58]OFD Sender: Remove packet 72862 [16:11:58]ProducePacketName [16:11:58]name=ofd_packets/00072862 [16:11:58]NVStorageDeleteData [16:11:58]OFD Sender: Processing packet 72863 [packets to send 278, broken 277] [16:11:58]ProducePacketName [16:11:58]name=ofd_packets/00072863 [16:11:58]OFD Sender: To server: pG, [16:11:58]CommunicateWithHost lk.salyk.kg:30040 [16:11:58]ConnectInit lk.salyk.kg [16:11:59]Connected sock=7 [16:11:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5B 16 07 01 08 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 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 64 00 00 00 F4 03 04 00 CA 5A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1C 01 00 35 04 06 00 20 A1 4D CB EE 54 1A F3 90 FB 6C 13 3E 28 [16:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B5 CE 47 00 51 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1C 01 00 F4 03 04 00 86 05 22 67 B6 04 01 00 00 FC 13 ED 44 FE B5 A4 E9 [16:12:00]CommunicateWithHost err = 0 [16:12:00]CheckOFDResponse [16:12:00]1017 (14) - 77093643461234 [16:12:00]1041 (16) - 0000000000874662 [16:12:00]1040 (4) - 72863 [16:12:00]1012 (4) - 30.10.2024 10:08 [16:12:00]1206 (1) - 0 [16:12:00]OFD Sender: Remove packet 72863 [16:12:00]ProducePacketName [16:12:00]name=ofd_packets/00072863 [16:12:00]NVStorageDeleteData [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:15]recv_with_timeout no data received [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]recv_with_timeout no data received [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:47]recv_with_timeout no data received [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:39]recv_with_timeout no data received [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:14:58]accept exits with 9 [16:14:58]New connection [16:14:58]New thread 3067247972 created [16:14:58]Thread 3067104612 joined [16:14:58]Waiting for new connection... [16:14:58] Sock 9.Parse request [16:14:58]Sock 9.Check first char [16:14:58]Sock 9.First char is OK [16:14:58]request: POST /json_proto HTTP/1.0 [16:14:58]Method: POST [16:14:58]URL: /json_proto [16:14:58]Method is POST - this is cgi request [16:14:58]url: /json_proto [16:14:58]query_string will be loaded in cgi processing [16:14:58]execute_cgi json_proto POST (null) [16:14:58]execute_cgi path=json_proto method=POST [16:14:58]POST find Content-Length [16:14:58]Host: 172.17.43.195:8080 [16:14:58]Content-Length: 791 [16:14:58]Content-Type: application/json [16:14:58] [16:14:58]POST finish read [16:14:58]Found Content-Length = 791 [16:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952449", "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" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:58]execute_script... [16:14: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)952449", "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" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:58]POST & json_proto [16:14:58]process_json_proto [16:14:58]json parsed OK: [16:14:58]protocol is kg_v1.0 [16:14:58]action value=close_receipt [16:14:58]process_action close_receipt [16:14:58]cmd_close_receipt [16:14:58]MH_GetDate [16:14:58]Write to MH i2c: F0 00 00 40 05 34 [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: F0 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: F0 09 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: F0 09 00 40 05 00 83 5B 22 67 74 2C AD 66 57 [16:14:58]GetLastDocTimeStamp 1730304714 [16:14:58]current date 1730304899 [16:14:58]FM_GetShiftState [16:14:58]SAM_PROTO_GetShiftState [16:14:58]wFMCommunicate request_size=4 [16:14:58]MH_SAM_APDU [16:14:58]CAPDU: 80 13 01 00 [16:14:58]Write to MH i2c: E2 08 00 41 05 80 13 01 00 00 00 00 00 C3 [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:58]Read from MH i2c: E2 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 0E 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 0E 00 41 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 95 [16:14:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:14:58]wFMCommunicate OK [16:14:58]SAM_PROTO_GetShiftState done [16:14:58]FM_GetShiftState done [16:14:58]opened in 1730247109 [16:14:58]opened+sec_in_day 1730333509 [16:14:58]quantity*price = 0 [16:14:58]sum+1 = 1 [16:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 101 30.10.2024 16:14 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72864 ФПД: 157092390139054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161459&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72864&fm=157092390139054&tin=02508201610067®Number=0000000000091644&sum=0 [16:14:59]StoreToDocumentArchive [16:14:59]shift 556 fd 72864 [16:14:59]save to /storage/0556/doc_00072864 [16:14:59]save last doc name /storage/0556/doc_00072864 to /storage/kkm_last_doc_name [16:14:59]save OK [16:14:59]Clear old archive folders... [16:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:59]tlvbuf is 01D3B530 [16:14:59]SAM_PROTO_ClearQueue [16:14:59]wFMCommunicate request_size=4 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 09 00 00 [16:14:59]Write to MH i2c: E2 08 00 4E 05 80 09 00 00 00 00 00 00 C5 [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [16:14:59]RAPDU: 90 00 [16:14:59]wFMCommunicate OK [16:14:59]SAM_PROTO_ClearQueue done [16:14:59]KKMCreateOFDPacket [16:14:59]OFDProtocolAddRootSTLVToBuf [16:14:59]FM_MakeSignedData [16:14:59]FM_MakeSignedData [16:14:59]SAM_PROTO_SignData [16:14:59]wFMCommunicate request_size=4 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 0D 01 02 [16:14:59]Write to MH i2c: E2 08 00 4F 05 80 0D 01 02 00 00 00 00 CD [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [16:14:59]RAPDU: 90 00 [16:14:59]wFMCommunicate OK [16:14:59]wFMCommunicate request_size=255 [16:14:59]MH_SAM_APDU [16:14: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 83 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A0 1C 01 00 35 04 06 00 8E [16:14:59]Write to MH i2c: E2 02 01 50 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 83 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A0 1C 01 00 35 04 06 00 8E 00 00 B7 [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:00]Read from MH i2c: E2 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 03 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [16:15:00]RAPDU: 90 00 [16:15:00]wFMCommunicate OK [16:15:00]wFMCommunicate request_size=10 [16:15:00]MH_SAM_APDU [16:15:00]CAPDU: 80 0D 02 02 05 DF EC 1C 74 AE [16:15:00]Write to MH i2c: E2 0D 00 51 05 80 0D 02 02 05 00 DF EC 1C 74 AE 00 00 E3 [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:00]Read from MH i2c: E2 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 03 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [16:15:00]RAPDU: 90 00 [16:15:00]wFMCommunicate OK [16:15:00]wFMCommunicate request_size=4 [16:15:00]MH_SAM_APDU [16:15:00]CAPDU: 80 0D 03 02 [16:15:00]Write to MH i2c: E2 08 00 52 05 80 0D 03 02 00 00 00 00 D2 [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:00]Read from MH i2c: E2 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 0B 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 0B 00 52 05 00 86 17 14 BA 8F 25 1C F5 90 00 03 [16:15:00]RAPDU: 86 17 14 BA 8F 25 1C F5 90 00 [16:15:00]wFMCommunicate OK [16:15:00]SAM_PROTO_SignData done [16:15:00]FM_MakeSignedData done [16:15:00]CreateOFDProtocolMessage [16:15:00]wFMCommunicate request_size=4 [16:15:00]MH_SAM_APDU [16:15:00]CAPDU: 80 11 00 00 [16:15:00]Write to MH i2c: E2 08 00 53 05 80 11 00 00 00 00 00 00 D2 [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:00]Read from MH i2c: E2 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 17 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: E2 17 00 53 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 26 [16:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:15:00]wFMCommunicate OK [16:15:00]CreateOFDProtocolMessage done [16:15:00]OFDSenderStorePacket 72864 [16:15:00]StoreOFDPacket docnum=72864 [16:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8C F1 07 01 08 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 83 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A0 1C 01 00 35 04 06 00 8E DF EC 1C 74 AE 86 17 14 BA 8F 25 1C F5 [16:15:00]CheckFolder [16:15:00]dirname=/storage/ofd_packets [16:15:00]CheckFolder done [16:15:00]ProducePacketName [16:15:00]name=ofd_packets/00072864 [16:15:00]NVStorageSaveData ofd_packets/00072864 [16:15:00]File name is /storage/ofd_packets/00072864 [16:15:00]Write 301 bytes [16:15:00]NVStorageSaveData done [16:15:00]OFDSenderStorePacket done [16:15:00]KKMCreateOFDPacket done [16:15:00]NVStorageSaveData kkm_last_timestamp [16:15:00]File name is /storage/kkm_last_timestamp [16:15:00]Write 4 bytes [16:15:00]NVStorageSaveData done [16:15:00]ExternCall_PrintAddStr [16:15:00]wPrintStart [16:15:00]Write to MH i2c: 01 00 00 54 05 59 [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: 01 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: 01 07 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 FF 0F 6E [16:15:00]RasterBufferAndPrint [16:15:00]line Счет N : (1)952449 [16:15:00]line ИНН: 02508201610067 [16:15:00]line Контрольно-Кассовый Чек [16:15:00]line ПРОДАЖА [16:15:00]line ТРК (МРК, ГНК) : 42 [16:15:00]line Товар: 2710124130 [16:15:00]line Аи-92-К-5 [16:15:00]line 5.000 * 0.00 [16:15:00]line = 0.00 [16:15:00]line НДС 12% НСП 1% [16:15:00]line > о реализуемом товаре [16:15:00]line ИТОГО: 0.00 [16:15:00]line НСП 1% : 0.00 [16:15:00]line НДС 12% : 0.00 [16:15:00]line Наличными: 0.00 [16:15:00]line Безнал.: 0.00 [16:15:00]line Место: АЗС № 113 "Партнер Нефть" [16:15:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:15:00]line СНО: Общий режим [16:15:00]line Чек 101 30.10.2024 16:14 [16:15:00]line Смена: 556 ФФД: 1.0 [16:15:00]line ЗНМ: 0300000087 [16:15:00]line РНМ: 0000000000091644 [16:15:00]line Версия ККМ: 001 [16:15:00]line Талоны: Топливная Карта [16:15:00]line 03047 [16:15:00]line ФМ: 0000000000874662 [16:15:00]line ФД: 72864 [16:15:00]line ФПД: 157092390139054 [16:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161459&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72864&fm=157092390139054&tin=02508201610067®Number=0000000000091644&sum=0 [16:15:00]written 0, free lines is 4095 [16:15:00]OFD Sender: Processing packet 72864 [packets to send 278, broken 277] [16:15:00]ProducePacketName [16:15:00]name=ofd_packets/00072864 [16:15:00]OFD Sender: To server: pG, [16:15:00]CommunicateWithHost lk.salyk.kg:30040 [16:15:00]ConnectInit lk.salyk.kg [16:15:00]Write to MH i2c: 01 00 00 7E 05 83 [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: 01 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: 01 07 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: 01 07 00 7E 05 00 00 00 00 00 E6 0C 7C [16:15:00]RasterBufferAndPrint [16:15:00]line [16:15:00]line [16:15:00]line [16:15:00]line [16:15:00]line [16:15:00]written 0, free lines is 3309 [16:15:00]MH_Cut [16:15:00]Write to MH i2c: D1 01 00 85 05 01 5C [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: D1 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: D1 01 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: D1 01 00 85 05 00 5B [16:15:00]Write to MH i2c: 01 00 00 86 05 8B [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:01]*** Cut start [16:15:01]*** Partial cut [16:15:01]*** CUTSNS_PIN = 1 [16:15:01]*** CUTSNS_PIN = 0 [16:15:01]*** Brake cut motor [16:15:02]Read from MH i2c: 01 [16:15:02]MH_I2C_Read... [16:15:02]*** Stop cut motor [16:15:02]*** Cut end [16:15:02]Read from MH i2c: 01 07 00 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: 01 07 00 86 05 00 00 00 00 00 FF 0F A0 [16:15:02]process_action close_receipt done [16:15:02]requested_data is exist [16:15:02]produce_requested_data [16:15:02]requested_item fm.sn is exist - process it [16:15:02]wFMCommunicate request_size=4 [16:15:02]MH_SAM_APDU [16:15:02]CAPDU: 80 11 00 00 [16:15:02]Write to MH i2c: E2 08 00 87 05 80 11 00 00 00 00 00 00 06 [16:15:02]Write i2c OK [16:15:02]MH_I2C_Read... [16:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:02]Read from MH i2c: E2 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 17 00 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 17 00 87 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5A [16:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:15:02]wFMCommunicate OK [16:15:02]requested_item fd.num is exist - process it [16:15:02]SAM_PROTO_GetFieldsCounters [16:15:02]wFMCommunicate request_size=4 [16:15:02]MH_SAM_APDU [16:15:02]CAPDU: 80 13 00 00 [16:15:02]Write to MH i2c: E2 08 00 88 05 80 13 00 00 00 00 00 00 09 [16:15:02]Write i2c OK [16:15:02]MH_I2C_Read... [16:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:02]Read from MH i2c: E2 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 62 00 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 62 00 88 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A0 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [16:15:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A0 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:02]wFMCommunicate OK [16:15:02]SAM_PROTO_GetFieldsCounters done [16:15:02]requested_item shift.num is exist - process it [16:15:02]requested_item shift.opened is exist - process it [16:15:02]req_shift_opened [16:15:02]FM_GetShiftState [16:15:02]SAM_PROTO_GetShiftState [16:15:02]wFMCommunicate request_size=4 [16:15:02]MH_SAM_APDU [16:15:02]CAPDU: 80 13 01 00 [16:15:02]Write to MH i2c: E2 08 00 89 05 80 13 01 00 00 00 00 00 0B [16:15:02]Write i2c OK [16:15:02]MH_I2C_Read... [16:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:02]Read from MH i2c: E2 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 0E 00 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 0E 00 89 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 DD [16:15:02]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:15:02]wFMCommunicate OK [16:15:02]SAM_PROTO_GetShiftState done [16:15:02]FM_GetShiftState done [16:15:02]req_shift_opened done [16:15:02]requested_item shift.open_date is exist - process it [16:15:02]req_shift_open_date [16:15:02]req_shift_open_date done [16:15:02]produce_requested_data done [16:15:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72864,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [16:15:02]process_action_free close_receipt [16:15:02]json_value_free [16:15:02]json_value_free done [16:15:02]process_json_proto returns [16:15:02]Send response to host [16:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72864,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [16:15:02]free response buf [16:15:02]execute_script done [16:15:02]execute_script returns [16:15:02]free content buf [16:15:02]Sock 9.Close socket [16:15:02]Sock 9.Thread stoped [16:15:03]Connected sock=7 [16:15:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8C F1 07 01 08 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 83 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A0 1C 01 00 35 04 06 00 8E DF EC 1C 74 AE 86 17 14 BA 8F 25 1C F5 [16:15:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 AD 68 47 00 38 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A0 1C 01 00 F4 03 04 00 3F 06 22 67 B6 04 01 00 00 C8 D3 85 3B 72 90 D9 CD [16:15:04]CommunicateWithHost err = 0 [16:15:04]CheckOFDResponse [16:15:04]1017 (14) - 77093643461234 [16:15:04]1041 (16) - 0000000000874662 [16:15:04]1040 (4) - 72864 [16:15:04]1012 (4) - 30.10.2024 10:11 [16:15:04]1206 (1) - 0 [16:15:04]OFD Sender: Remove packet 72864 [16:15:04]ProducePacketName [16:15:04]name=ofd_packets/00072864 [16:15:04]NVStorageDeleteData [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:18]recv_with_timeout no data received [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]recv_with_timeout no data received [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:26]accept exits with 10 [16:16:26]New connection [16:16:26]New thread 3067104612 created [16:16:26]Thread 3067247972 joined [16:16:26]Waiting for new connection... [16:16:26] Sock 10.Parse request [16:16:26]Sock 10.Check first char [16:16:26]Sock 10.First char is OK [16:16:26]request: POST /json_proto HTTP/1.0 [16:16:26]Method: POST [16:16:26]URL: /json_proto [16:16:26]Method is POST - this is cgi request [16:16:26]url: /json_proto [16:16:26]query_string will be loaded in cgi processing [16:16:26]execute_cgi json_proto POST (null) [16:16:26]execute_cgi path=json_proto method=POST [16:16:26]POST find Content-Length [16:16:26]Host: 172.17.43.195:8080 [16:16:26]Content-Length: 797 [16:16:26]Content-Type: application/json [16:16:26] [16:16:26]POST finish read [16:16:26]Found Content-Length = 797 [16:16:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952450", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:26]execute_script... [16:16:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952450", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:26]POST & json_proto [16:16:26]process_json_proto [16:16:26]json parsed OK: [16:16:26]protocol is kg_v1.0 [16:16:26]action value=close_receipt [16:16:26]process_action close_receipt [16:16:26]cmd_close_receipt [16:16:26]MH_GetDate [16:16:26]Write to MH i2c: F0 00 00 8A 05 7E [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: F0 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: F0 09 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: F0 09 00 8A 05 00 DB 5B 22 67 74 2C AD 66 F9 [16:16:26]GetLastDocTimeStamp 1730304899 [16:16:26]current date 1730304987 [16:16:26]FM_GetShiftState [16:16:26]SAM_PROTO_GetShiftState [16:16:26]wFMCommunicate request_size=4 [16:16:26]MH_SAM_APDU [16:16:26]CAPDU: 80 13 01 00 [16:16:26]Write to MH i2c: E2 08 00 8B 05 80 13 01 00 00 00 00 00 0D [16:16:26]Write i2c OK [16:16:26]MH_I2C_Read... [16:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:26]Read from MH i2c: E2 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 0E 00 [16:16:26]MH_I2C_Read... [16:16:26]Read from MH i2c: E2 0E 00 8B 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 DF [16:16:26]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:16:26]wFMCommunicate OK [16:16:26]SAM_PROTO_GetShiftState done [16:16:26]FM_GetShiftState done [16:16:26]opened in 1730247109 [16:16:26]opened+sec_in_day 1730333509 [16:16:26]quantity*price = 0 [16:16:26]sum+1 = 1 [16:16:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 102 30.10.2024 16:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72865 ФПД: 230823581243573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161627&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72865&fm=230823581243573&tin=02508201610067®Number=0000000000091644&sum=0 [16:16:27]StoreToDocumentArchive [16:16:27]shift 556 fd 72865 [16:16:27]save to /storage/0556/doc_00072865 [16:16:27]save last doc name /storage/0556/doc_00072865 to /storage/kkm_last_doc_name [16:16:27]save OK [16:16:27]Clear old archive folders... [16:16:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:16:27]tlvbuf is 01D91C40 [16:16:27]SAM_PROTO_ClearQueue [16:16:27]wFMCommunicate request_size=4 [16:16:27]MH_SAM_APDU [16:16:27]CAPDU: 80 09 00 00 [16:16:27]Write to MH i2c: E2 08 00 98 05 80 09 00 00 00 00 00 00 0F [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:27]Read from MH i2c: E2 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 03 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [16:16:27]RAPDU: 90 00 [16:16:27]wFMCommunicate OK [16:16:27]SAM_PROTO_ClearQueue done [16:16:27]KKMCreateOFDPacket [16:16:27]OFDProtocolAddRootSTLVToBuf [16:16:27]FM_MakeSignedData [16:16:27]FM_MakeSignedData [16:16:27]SAM_PROTO_SignData [16:16:27]wFMCommunicate request_size=4 [16:16:27]MH_SAM_APDU [16:16:27]CAPDU: 80 0D 01 02 [16:16:27]Write to MH i2c: E2 08 00 99 05 80 0D 01 02 00 00 00 00 17 [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:27]Read from MH i2c: E2 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 03 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [16:16:27]RAPDU: 90 00 [16:16:27]wFMCommunicate OK [16:16:27]wFMCommunicate request_size=255 [16:16:27]MH_SAM_APDU [16:16:27]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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 DB 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1C 01 00 35 04 06 00 [16:16:27]Write to MH i2c: E2 02 01 9A 05 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 DB 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1C 01 00 35 04 06 00 00 00 DB [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:27]Read from MH i2c: E2 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 03 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [16:16:27]RAPDU: 90 00 [16:16:27]wFMCommunicate OK [16:16:27]wFMCommunicate request_size=11 [16:16:27]MH_SAM_APDU [16:16:27]CAPDU: 80 0D 02 02 06 D1 EE CD 90 D8 B5 [16:16:27]Write to MH i2c: E2 0E 00 9B 05 80 0D 02 02 06 00 D1 EE CD 90 D8 B5 00 00 CF [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:27]Read from MH i2c: E2 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 03 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 03 00 9B 05 00 90 00 14 [16:16:27]RAPDU: 90 00 [16:16:27]wFMCommunicate OK [16:16:27]wFMCommunicate request_size=4 [16:16:27]MH_SAM_APDU [16:16:27]CAPDU: 80 0D 03 02 [16:16:27]Write to MH i2c: E2 08 00 9C 05 80 0D 03 02 00 00 00 00 1C [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:27]Read from MH i2c: E2 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 0B 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 0B 00 9C 05 00 B1 41 71 8A 9E 57 15 58 90 00 6C [16:16:27]RAPDU: B1 41 71 8A 9E 57 15 58 90 00 [16:16:27]wFMCommunicate OK [16:16:27]SAM_PROTO_SignData done [16:16:27]FM_MakeSignedData done [16:16:27]CreateOFDProtocolMessage [16:16:27]wFMCommunicate request_size=4 [16:16:27]MH_SAM_APDU [16:16:27]CAPDU: 80 11 00 00 [16:16:27]Write to MH i2c: E2 08 00 9D 05 80 11 00 00 00 00 00 00 1C [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:27]Read from MH i2c: E2 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 17 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: E2 17 00 9D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 70 [16:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:16:27]wFMCommunicate OK [16:16:27]CreateOFDProtocolMessage done [16:16:27]OFDSenderStorePacket 72865 [16:16:27]StoreOFDPacket docnum=72865 [16:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 CD ED 08 01 F4 AC 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 DB 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1C 01 00 35 04 06 00 D1 EE CD 90 D8 B5 B1 41 71 8A 9E 57 15 58 [16:16:27]CheckFolder [16:16:27]dirname=/storage/ofd_packets [16:16:27]CheckFolder done [16:16:27]ProducePacketName [16:16:27]name=ofd_packets/00072865 [16:16:27]NVStorageSaveData ofd_packets/00072865 [16:16:27]File name is /storage/ofd_packets/00072865 [16:16:27]Write 302 bytes [16:16:27]NVStorageSaveData done [16:16:27]OFDSenderStorePacket done [16:16:27]KKMCreateOFDPacket done [16:16:27]NVStorageSaveData kkm_last_timestamp [16:16:27]File name is /storage/kkm_last_timestamp [16:16:27]Write 4 bytes [16:16:27]NVStorageSaveData done [16:16:27]ExternCall_PrintAddStr [16:16:27]wPrintStart [16:16:27]Write to MH i2c: 01 00 00 9E 05 A3 [16:16:27]Write i2c OK [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: 01 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: 01 07 00 [16:16:27]MH_I2C_Read... [16:16:27]Read from MH i2c: 01 07 00 9E 05 00 00 00 00 00 FF 0F B8 [16:16:27]RasterBufferAndPrint [16:16:27]line Счет N : (1)952450 [16:16:27]line ИНН: 02508201610067 [16:16:27]line Контрольно-Кассовый Чек [16:16:27]line ПРОДАЖА [16:16:27]line ТРК (МРК, ГНК) : 33 [16:16:27]line Товар: 2710194210 [16:16:27]line ДТ(л)-К-5 [16:16:27]line 20.000 * 0.00 [16:16:27]line = 0.00 [16:16:27]line НДС 12% НСП 1% [16:16:27]line > о реализуемом товаре [16:16:27]line ИТОГО: 0.00 [16:16:27]line НСП 1% : 0.00 [16:16:27]line НДС 12% : 0.00 [16:16:27]line Наличными: 0.00 [16:16:27]line Безнал.: 0.00 [16:16:27]line Место: АЗС № 113 "Партнер Нефть" [16:16:27]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:16:27]line СНО: Общий режим [16:16:27]line Чек 102 30.10.2024 16:16 [16:16:27]line Смена: 556 ФФД: 1.0 [16:16:27]line ЗНМ: 0300000087 [16:16:27]line РНМ: 0000000000091644 [16:16:27]line Версия ККМ: 001 [16:16:27]line Талоны: Топливная Карта [16:16:27]line 02083 [16:16:27]line ФМ: 0000000000874662 [16:16:27]line ФД: 72865 [16:16:27]line ФПД: 230823581243573 [16:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161627&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72865&fm=230823581243573&tin=02508201610067®Number=0000000000091644&sum=0 [16:16:27]written 0, free lines is 4095 [16:16:27]OFD Sender: Processing packet 72865 [packets to send 278, broken 277] [16:16:27]ProducePacketName [16:16:27]name=ofd_packets/00072865 [16:16:27]OFD Sender: To server: pG, [16:16:27]CommunicateWithHost lk.salyk.kg:30040 [16:16:27]ConnectInit lk.salyk.kg [16:16:28]Write to MH i2c: 01 00 00 C8 05 CD [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: 01 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: 01 07 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 ED 0C CD [16:16:28]RasterBufferAndPrint [16:16:28]line [16:16:28]line [16:16:28]line [16:16:28]line [16:16:28]line [16:16:28]written 0, free lines is 3315 [16:16:28]MH_Cut [16:16:28]Write to MH i2c: D1 01 00 CF 05 01 A6 [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: D1 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: D1 01 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: D1 01 00 CF 05 00 A5 [16:16:28]Write to MH i2c: 01 00 00 D0 05 D5 [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]Connected sock=9 [16:16:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 CD ED 08 01 F4 AC 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 DB 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1C 01 00 35 04 06 00 D1 EE CD 90 D8 B5 B1 41 71 8A 9E 57 15 58 [16:16:29]*** Cut start [16:16:29]*** Partial cut [16:16:29]*** CUTSNS_PIN = 1 [16:16:29]*** CUTSNS_PIN = 0 [16:16:29]*** Brake cut motor [16:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6B C7 47 00 CA 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1C 01 00 F4 03 04 00 94 06 22 67 B6 04 01 00 00 EC 5C 94 29 E5 A7 1F CA [16:16:29]CommunicateWithHost err = 0 [16:16:29]CheckOFDResponse [16:16:29]1017 (14) - 77093643461234 [16:16:29]1041 (16) - 0000000000874662 [16:16:29]1040 (4) - 72865 [16:16:29]1012 (4) - 30.10.2024 10:12 [16:16:29]1206 (1) - 0 [16:16:29]OFD Sender: Remove packet 72865 [16:16:29]ProducePacketName [16:16:29]name=ofd_packets/00072865 [16:16:29]NVStorageDeleteData [16:16:29]Read from MH i2c: 01 [16:16:29]MH_I2C_Read... [16:16:29]*** Stop cut motor [16:16:29]*** Cut end [16:16:29]Read from MH i2c: 01 07 00 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: 01 07 00 D0 05 00 00 00 00 00 FF 0F EA [16:16:29]process_action close_receipt done [16:16:29]requested_data is exist [16:16:29]produce_requested_data [16:16:29]requested_item fm.sn is exist - process it [16:16:29]wFMCommunicate request_size=4 [16:16:29]MH_SAM_APDU [16:16:29]CAPDU: 80 11 00 00 [16:16:29]Write to MH i2c: E2 08 00 D1 05 80 11 00 00 00 00 00 00 50 [16:16:29]Write i2c OK [16:16:29]MH_I2C_Read... [16:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:29]Read from MH i2c: E2 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: E2 17 00 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: E2 17 00 D1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A4 [16:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:16:29]wFMCommunicate OK [16:16:29]requested_item fd.num is exist - process it [16:16:29]SAM_PROTO_GetFieldsCounters [16:16:29]wFMCommunicate request_size=4 [16:16:29]MH_SAM_APDU [16:16:29]CAPDU: 80 13 00 00 [16:16:29]Write to MH i2c: E2 08 00 D2 05 80 13 00 00 00 00 00 00 53 [16:16:29]Write i2c OK [16:16:29]MH_I2C_Read... [16:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:29]Read from MH i2c: E2 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: E2 62 00 [16:16:29]MH_I2C_Read... [16:16:29]Read from MH i2c: E2 62 00 D2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A1 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [16:16:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A1 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:29]wFMCommunicate OK [16:16:29]SAM_PROTO_GetFieldsCounters done [16:16:29]requested_item shift.num is exist - process it [16:16:29]requested_item shift.opened is exist - process it [16:16:29]req_shift_opened [16:16:29]FM_GetShiftState [16:16:29]SAM_PROTO_GetShiftState [16:16:29]wFMCommunicate request_size=4 [16:16:29]MH_SAM_APDU [16:16:29]CAPDU: 80 13 01 00 [16:16:29]Write to MH i2c: E2 08 00 D3 05 80 13 01 00 00 00 00 00 55 [16:16:29]Write i2c OK [16:16:29]MH_I2C_Read... [16:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:30]Read from MH i2c: E2 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 0E 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 0E 00 D3 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 27 [16:16:30]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:16:30]wFMCommunicate OK [16:16:30]SAM_PROTO_GetShiftState done [16:16:30]FM_GetShiftState done [16:16:30]req_shift_opened done [16:16:30]requested_item shift.open_date is exist - process it [16:16:30]req_shift_open_date [16:16:30]req_shift_open_date done [16:16:30]produce_requested_data done [16:16:30]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72865,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [16:16:30]process_action_free close_receipt [16:16:30]json_value_free [16:16:30]json_value_free done [16:16:30]process_json_proto returns [16:16:30]Send response to host [16:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72865,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [16:16:30]free response buf [16:16:30]execute_script done [16:16:30]execute_script returns [16:16:30]free content buf [16:16:30]Sock 10.Close socket [16:16:30]Sock 10.Thread stoped [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:53]recv_with_timeout no data received [16:16:55]OFD Sender: No OFD packet to send [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:15]accept exits with 7 [16:17:15]New connection [16:17:15]New thread 3067247972 created [16:17:15]Thread 3067104612 joined [16:17:15]Waiting for new connection... [16:17:15] Sock 7.Parse request [16:17:15]Sock 7.Check first char [16:17:15]Sock 7.First char is OK [16:17:15]request: POST /json_proto HTTP/1.0 [16:17:15]Method: POST [16:17:15]URL: /json_proto [16:17:15]Method is POST - this is cgi request [16:17:15]url: /json_proto [16:17:15]query_string will be loaded in cgi processing [16:17:15]execute_cgi json_proto POST (null) [16:17:15]execute_cgi path=json_proto method=POST [16:17:15]POST find Content-Length [16:17:15]Host: 172.17.43.195:8080 [16:17:15]Content-Length: 647 [16:17:15]Content-Type: application/json [16:17:15] [16:17:15]POST finish read [16:17:15]Found Content-Length = 647 [16:17:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952451", "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" : 20.000, "sum" : 1524.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:15]execute_script... [16:17: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)952451", "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" : 20.000, "sum" : 1524.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:15]POST & json_proto [16:17:15]process_json_proto [16:17:15]json parsed OK: [16:17:15]protocol is kg_v1.0 [16:17:15]action value=close_receipt [16:17:15]process_action close_receipt [16:17:16]cmd_close_receipt [16:17:16]MH_GetDate [16:17:16]Write to MH i2c: F0 00 00 D4 05 C8 [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: F0 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: F0 09 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: F0 09 00 D4 05 00 0D 5C 22 67 74 2C AD 66 76 [16:17:16]GetLastDocTimeStamp 1730304987 [16:17:16]current date 1730305037 [16:17:16]FM_GetShiftState [16:17:16]SAM_PROTO_GetShiftState [16:17:16]wFMCommunicate request_size=4 [16:17:16]MH_SAM_APDU [16:17:16]CAPDU: 80 13 01 00 [16:17:16]Write to MH i2c: E2 08 00 D5 05 80 13 01 00 00 00 00 00 57 [16:17:16]Write i2c OK [16:17:16]MH_I2C_Read... [16:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:16]Read from MH i2c: E2 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 0E 00 [16:17:16]MH_I2C_Read... [16:17:16]Read from MH i2c: E2 0E 00 D5 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 29 [16:17:16]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:17:16]wFMCommunicate OK [16:17:16]SAM_PROTO_GetShiftState done [16:17:16]FM_GetShiftState done [16:17:16]opened in 1730247109 [16:17:16]opened+sec_in_day 1730333509 [16:17:16]quantity*price = 152400 [16:17:16]sum+1 = 152401 [16:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1524.00 НСП 1% : 13.49 НДС 12% : 161.84 Наличными: 1524.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 103 30.10.2024 16:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72866 ФПД: 165387954493806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161717&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72866&fm=165387954493806&tin=02508201610067®Number=0000000000091644&sum=152400 [16:17:17]StoreToDocumentArchive [16:17:17]shift 556 fd 72866 [16:17:17]save to /storage/0556/doc_00072866 [16:17:17]save last doc name /storage/0556/doc_00072866 to /storage/kkm_last_doc_name [16:17:17]save OK [16:17:17]Clear old archive folders... [16:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:17:17]tlvbuf is 01D9F950 [16:17:17]SAM_PROTO_ClearQueue [16:17:17]wFMCommunicate request_size=4 [16:17:17]MH_SAM_APDU [16:17:17]CAPDU: 80 09 00 00 [16:17:17]Write to MH i2c: E2 08 00 E2 05 80 09 00 00 00 00 00 00 59 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 03 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 03 00 E2 05 00 90 00 5B [16:17:17]RAPDU: 90 00 [16:17:17]wFMCommunicate OK [16:17:17]SAM_PROTO_ClearQueue done [16:17:17]KKMCreateOFDPacket [16:17:17]OFDProtocolAddRootSTLVToBuf [16:17:17]FM_MakeSignedData [16:17:17]FM_MakeSignedData [16:17:17]SAM_PROTO_SignData [16:17:17]wFMCommunicate request_size=4 [16:17:17]MH_SAM_APDU [16:17:17]CAPDU: 80 0D 01 02 [16:17:17]Write to MH i2c: E2 08 00 E3 05 80 0D 01 02 00 00 00 00 61 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 03 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 03 00 E3 05 00 90 00 5C [16:17:17]RAPDU: 90 00 [16:17:17]wFMCommunicate OK [16:17:17]wFMCommunicate request_size=255 [16:17:17]MH_SAM_APDU [16:17:17]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 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 0D 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1C 01 00 35 04 06 00 [16:17:17]Write to MH i2c: E2 02 01 E4 05 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 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 0D 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1C 01 00 35 04 06 00 00 00 EB [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 03 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 03 00 E4 05 00 90 00 5D [16:17:17]RAPDU: 90 00 [16:17:17]wFMCommunicate OK [16:17:17]wFMCommunicate request_size=11 [16:17:17]MH_SAM_APDU [16:17:17]CAPDU: 80 0D 02 02 06 96 6B 62 47 19 6E [16:17:17]Write to MH i2c: E2 0E 00 E5 05 80 0D 02 02 06 00 96 6B 62 47 19 6E 00 00 A1 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 03 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 03 00 E5 05 00 90 00 5E [16:17:17]RAPDU: 90 00 [16:17:17]wFMCommunicate OK [16:17:17]wFMCommunicate request_size=4 [16:17:17]MH_SAM_APDU [16:17:17]CAPDU: 80 0D 03 02 [16:17:17]Write to MH i2c: E2 08 00 E6 05 80 0D 03 02 00 00 00 00 66 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 0B 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 0B 00 E6 05 00 F4 FA 01 E5 8A B1 55 C6 90 00 91 [16:17:17]RAPDU: F4 FA 01 E5 8A B1 55 C6 90 00 [16:17:17]wFMCommunicate OK [16:17:17]SAM_PROTO_SignData done [16:17:17]FM_MakeSignedData done [16:17:17]CreateOFDProtocolMessage [16:17:17]wFMCommunicate request_size=4 [16:17:17]MH_SAM_APDU [16:17:17]CAPDU: 80 11 00 00 [16:17:17]Write to MH i2c: E2 08 00 E7 05 80 11 00 00 00 00 00 00 66 [16:17:17]Write i2c OK [16:17:17]MH_I2C_Read... [16:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:17]Read from MH i2c: E2 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 17 00 [16:17:17]MH_I2C_Read... [16:17:17]Read from MH i2c: E2 17 00 E7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BA [16:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:17:17]wFMCommunicate OK [16:17:17]CreateOFDProtocolMessage done [16:17:17]OFDSenderStorePacket 72866 [16:17:17]StoreOFDPacket docnum=72866 [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 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [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 540000000057257A (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: 7679934+1722625140=1730305074 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [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 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [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 41 00 40 00 FF FF 5F [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 32 5C 22 67 74 2C AD 66 C9 [16:17:54]Current date/time: 30.10.2024 16:17 [16:17:54]FM_Init [16:17:54]wFMConnect [16:17:54]MH_SAM_On [16:17:54]Write to MH i2c: E0 00 00 08 00 E7 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_init finished! [16:17:54]*** atr: [16:17:54]*** 0F 3B D5 18 FF 81 91 FE [16:17:54]*** 1F C3 80 73 C8 21 10 0A [16:17:54]*** 00 00 00 00 00 00 00 00 [16:17:54]*** 00 00 00 00 00 00 00 00 [16:17:54]*** 00 00 00 00 00 00 00 00 [16:17:54]*** 00 00 00 00 00 00 00 00 [16:17:54]*** 00 00 00 00 00 00 00 00 [16:17:54]*** 00 00 00 00 00 00 00 00 [16:17:54]Read from MH i2c: E0 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E0 10 00 [16:17:54]MH_I2C_Read... [16:17:54]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 [16:17:54]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:17:54]wFMCommunicate request_size=10 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:17:54]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:17:54]RAPDU: 90 00 [16:17:54]wFMCommunicate OK [16:17:54]wFMCommunicate request_size=4 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 11 00 00 [16:17:54]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 17 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [16:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:17:54]wFMCommunicate OK [16:17:54]Detected FM SN is 0000000000874662 [16:17:54]Stored FM SN is 0000000000874662 [16:17:54]wFMCommunicate request_size=9 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 16 00 00 04 08 EB 00 00 [16:17:54]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:17:54]RAPDU: 90 00 [16:17:54]wFMCommunicate OK [16:17:54]FM PIN OK [16:17:54]wFMCommunicate request_size=8 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 14 04 00 03 02 00 01 [16:17:54]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:17:54]RAPDU: 90 00 [16:17:54]wFMCommunicate OK [16:17:54]wFMCommunicate request_size=13 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:17:54]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 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:17:54]RAPDU: 90 00 [16:17:54]wFMCommunicate OK [16:17:54]wFMCommunicate request_size=4 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 11 00 00 [16:17:54]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 17 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [16:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:17:54]wFMCommunicate OK [16:17:54]DocumentArchiveInit [16:17:54]Start Httpd... [16:17:54]Httpd thread 3067845988 created [16:17:54]Write to MH i2c: 01 00 00 0F 00 0F [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: 01 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: 01 07 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:17:54]MH Int Process started [16:17:54]Allocated Socket 8 [16:17:54]Bind OK [16:17:54]Listen OK [16:17:54]httpd running on port 8080 [16:17:54]Waiting for new connection... [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:03]recv_with_timeout no data received [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:52]accept exits with 9 [16:18:52]New connection [16:18:52]New thread 3067559268 created [16:18:52]Waiting for new connection... [16:18:52] Sock 9.Parse request [16:18:52]Sock 9.Check first char [16:18:52]Sock 9.First char is OK [16:18:52]request: POST /json_proto HTTP/1.0 [16:18:52]Method: POST [16:18:52]URL: /json_proto [16:18:52]Method is POST - this is cgi request [16:18:52]url: /json_proto [16:18:52]query_string will be loaded in cgi processing [16:18:52]execute_cgi json_proto POST (null) [16:18:52]execute_cgi path=json_proto method=POST [16:18:52]POST find Content-Length [16:18:52]Host: 172.17.43.195:8080 [16:18:52]Content-Length: 791 [16:18:52]Content-Type: application/json [16:18:52] [16:18:52]POST finish read [16:18:52]Found Content-Length = 791 [16:18:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:52]execute_script... [16:18:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:52]POST & json_proto [16:18:52]process_json_proto [16:18:52]json parsed OK: [16:18:52]protocol is kg_v1.0 [16:18:52]action value=close_receipt [16:18:52]process_action close_receipt [16:18:52]cmd_close_receipt [16:18:52]MH_GetDate [16:18:52]Write to MH i2c: F0 00 00 10 00 FF [16:18:52]Write i2c OK [16:18:52]MH_I2C_Read... [16:18:52]Read from MH i2c: F0 [16:18:52]MH_I2C_Read... [16:18:52]Read from MH i2c: F0 09 00 [16:18:52]MH_I2C_Read... [16:18:52]Read from MH i2c: F0 09 00 10 00 00 6D 5C 22 67 74 2C AD 66 0D [16:18:52]GetLastDocTimeStamp 97 [16:18:52]current date 1730305133 [16:18:52]FM_GetShiftState [16:18:52]SAM_PROTO_GetShiftState [16:18:52]wFMCommunicate request_size=4 [16:18:52]MH_SAM_APDU [16:18:52]CAPDU: 80 13 01 00 [16:18:52]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [16:18:52]Write i2c OK [16:18:52]MH_I2C_Read... [16:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:52]Read from MH i2c: E2 [16:18:52]MH_I2C_Read... [16:18:52]Read from MH i2c: E2 0E 00 [16:18:52]MH_I2C_Read... [16:18:52]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 60 [16:18:52]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:18:52]wFMCommunicate OK [16:18:52]SAM_PROTO_GetShiftState done [16:18:52]FM_GetShiftState done [16:18:52]opened in 1730247109 [16:18:52]opened+sec_in_day 1730333509 [16:18:52]quantity*price = 0 [16:18:52]sum+1 = 1 [16:18:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 105 30.10.2024 16:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72868 ФПД: 145347720594029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161853&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72868&fm=145347720594029&tin=02508201610067®Number=0000000000091644&sum=0 [16:18:53]StoreToDocumentArchive [16:18:53]shift 556 fd 72868 [16:18:53]save to /storage/0556/doc_00072868 [16:18:53]save last doc name /storage/0556/doc_00072868 to /storage/kkm_last_doc_name [16:18:53]save OK [16:18:53]Clear old archive folders... [16:18:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:53]tlvbuf is B6FEC7E0 [16:18:53]SAM_PROTO_ClearQueue [16:18:53]wFMCommunicate request_size=4 [16:18:53]MH_SAM_APDU [16:18:53]CAPDU: 80 09 00 00 [16:18:53]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [16:18:53]Write i2c OK [16:18:53]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 [16:18:54]MH_I2C_Read... [16:18:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:54]Read from MH i2c: E2 03 00 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [16:18:54]RAPDU: 90 00 [16:18:54]wFMCommunicate OK [16:18:54]SAM_PROTO_ClearQueue done [16:18:54]KKMCreateOFDPacket [16:18:54]OFDProtocolAddRootSTLVToBuf [16:18:54]FM_MakeSignedData [16:18:54]FM_MakeSignedData [16:18:54]SAM_PROTO_SignData [16:18:54]wFMCommunicate request_size=4 [16:18:54]MH_SAM_APDU [16:18:54]CAPDU: 80 0D 01 02 [16:18:54]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [16:18:54]Write i2c OK [16:18:54]MH_I2C_Read... [16:18:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:54]Read from MH i2c: E2 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 03 00 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [16:18:54]RAPDU: 90 00 [16:18:54]wFMCommunicate OK [16:18:54]wFMCommunicate request_size=255 [16:18:54]MH_SAM_APDU [16:18:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6D 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1C 01 00 35 04 06 00 84 [16:18:54]Write to MH i2c: E2 02 01 20 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6D 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1C 01 00 35 04 06 00 84 00 00 6B [16:18:54]Write i2c OK [16:18:54]MH_I2C_Read... [16:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:54]Read from MH i2c: E2 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 03 00 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [16:18:54]RAPDU: 90 00 [16:18:54]wFMCommunicate OK [16:18:54]wFMCommunicate request_size=10 [16:18:54]MH_SAM_APDU [16:18:54]CAPDU: 80 0D 02 02 05 31 67 41 42 6D [16:18:54]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 31 67 41 42 6D 00 00 2D [16:18:54]Write i2c OK [16:18:54]MH_I2C_Read... [16:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:54]Read from MH i2c: E2 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 03 00 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [16:18:54]RAPDU: 90 00 [16:18:54]wFMCommunicate OK [16:18:54]wFMCommunicate request_size=4 [16:18:54]MH_SAM_APDU [16:18:54]CAPDU: 80 0D 03 02 [16:18:54]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [16:18:54]Write i2c OK [16:18:54]MH_I2C_Read... [16:18:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:54]Read from MH i2c: E2 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 0B 00 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 0B 00 22 00 00 B0 FB 0A EE 43 B3 D8 67 90 00 76 [16:18:54]RAPDU: B0 FB 0A EE 43 B3 D8 67 90 00 [16:18:54]wFMCommunicate OK [16:18:54]SAM_PROTO_SignData done [16:18:54]FM_MakeSignedData done [16:18:54]CreateOFDProtocolMessage [16:18:54]wFMCommunicate request_size=4 [16:18:54]MH_SAM_APDU [16:18:54]CAPDU: 80 11 00 00 [16:18:54]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [16:18:54]Write i2c OK [16:18:54]MH_I2C_Read... [16:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:54]Read from MH i2c: E2 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 17 00 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F1 [16:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:18:54]wFMCommunicate OK [16:18:54]CreateOFDProtocolMessage done [16:18:54]OFDSenderStorePacket 72868 [16:18:54]StoreOFDPacket docnum=72868 [16:18:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 31 B9 07 01 90 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6D 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1C 01 00 35 04 06 00 84 31 67 41 42 6D B0 FB 0A EE 43 B3 D8 67 [16:18:54]CheckFolder [16:18:54]dirname=/storage/ofd_packets [16:18:54]CheckFolder done [16:18:54]ProducePacketName [16:18:54]name=ofd_packets/00072868 [16:18:54]NVStorageSaveData ofd_packets/00072868 [16:18:54]File name is /storage/ofd_packets/00072868 [16:18:54]Write 301 bytes [16:18:54]NVStorageSaveData done [16:18:54]OFDSenderStorePacket done [16:18:54]KKMCreateOFDPacket done [16:18:54]NVStorageSaveData kkm_last_timestamp [16:18:54]File name is /storage/kkm_last_timestamp [16:18:54]Write 4 bytes [16:18:54]NVStorageSaveData done [16:18:54]ExternCall_PrintAddStr [16:18:54]wPrintStart [16:18:54]Write to MH i2c: 01 00 00 24 00 24 [16:18:54]Write i2c OK [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: 01 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: 01 07 00 [16:18:54]MH_I2C_Read... [16:18:54]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [16:18:54]RasterBufferAndPrint [16:18:54]line Счет N : (1)952452 [16:18:54]line ИНН: 02508201610067 [16:18:54]line Контрольно-Кассовый Чек [16:18:54]line ПРОДАЖА [16:18:54]line ТРК (МРК, ГНК) : 63 [16:18:54]line Товар: 2710124130 [16:18:54]line Аи-92-К-5 [16:18:54]line 5.000 * 0.00 [16:18:54]line = 0.00 [16:18:54]line НДС 12% НСП 1% [16:18:54]line > о реализуемом товаре [16:18:54]line ИТОГО: 0.00 [16:18:54]line НСП 1% : 0.00 [16:18:54]line НДС 12% : 0.00 [16:18:54]line Наличными: 0.00 [16:18:54]line Безнал.: 0.00 [16:18:54]line Место: АЗС № 113 "Партнер Нефть" [16:18:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:18:54]line СНО: Общий режим [16:18:54]line Чек 105 30.10.2024 16:18 [16:18:54]line Смена: 556 ФФД: 1.0 [16:18:54]line ЗНМ: 0300000087 [16:18:54]line РНМ: 0000000000091644 [16:18:54]line Версия ККМ: 001 [16:18:54]line Талоны: Топливная Карта [16:18:54]line 03047 [16:18:54]line ФМ: 0000000000874662 [16:18:54]line ФД: 72868 [16:18:54]line ФПД: 145347720594029 [16:18:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161853&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72868&fm=145347720594029&tin=02508201610067®Number=0000000000091644&sum=0 [16:18:54]OFD Sender: Processing packet 72868 [packets to send 278, broken 277] [16:18:54]ProducePacketName [16:18:54]name=ofd_packets/00072868 [16:18:54]OFD Sender: To server: pG, [16:18:54]CommunicateWithHost lk.salyk.kg:30040 [16:18:54]ConnectInit lk.salyk.kg [16:18:54]written 0, free lines is 4095 [16:18:55]Write to MH i2c: 01 00 00 4E 00 4E [16:18:55]Write i2c OK [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: 01 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: 01 07 00 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 E9 0C 4A [16:18:55]RasterBufferAndPrint [16:18:55]line [16:18:55]line [16:18:55]line [16:18:55]line [16:18:55]line [16:18:55]written 0, free lines is 3309 [16:18:55]MH_Cut [16:18:55]Write to MH i2c: D1 01 00 55 00 01 27 [16:18:55]Write i2c OK [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: D1 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: D1 01 00 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: D1 01 00 55 00 00 26 [16:18:55]Write to MH i2c: 01 00 00 56 00 56 [16:18:55]Write i2c OK [16:18:55]MH_I2C_Read... [16:18:55]*** Cut start [16:18:55]*** Partial cut [16:18:55]*** CUTSNS_PIN = 1 [16:18:56]*** CUTSNS_PIN = 0 [16:18:56]*** Brake cut motor [16:18:56]Read from MH i2c: 01 [16:18:56]MH_I2C_Read... [16:18:56]*** Stop cut motor [16:18:56]Read from MH i2c: 01 07 00 [16:18:56]MH_I2C_Read... [16:18:56]*** Cut end [16:18:56]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [16:18:56]process_action close_receipt done [16:18:56]requested_data is exist [16:18:56]produce_requested_data [16:18:56]requested_item fm.sn is exist - process it [16:18:56]wFMCommunicate request_size=4 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 11 00 00 [16:18:56]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 17 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 25 [16:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:18:56]wFMCommunicate OK [16:18:56]requested_item fd.num is exist - process it [16:18:56]SAM_PROTO_GetFieldsCounters [16:18:56]wFMCommunicate request_size=4 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 13 00 00 [16:18:56]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 62 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 62 00 58 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A4 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [16:18:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A4 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:56]wFMCommunicate OK [16:18:56]SAM_PROTO_GetFieldsCounters done [16:18:56]requested_item shift.num is exist - process it [16:18:56]requested_item shift.opened is exist - process it [16:18:56]req_shift_opened [16:18:56]FM_GetShiftState [16:18:56]SAM_PROTO_GetShiftState [16:18:56]wFMCommunicate request_size=4 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 13 01 00 [16:18:56]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 0E 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A8 [16:18:56]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:18:56]wFMCommunicate OK [16:18:56]SAM_PROTO_GetShiftState done [16:18:56]FM_GetShiftState done [16:18:56]req_shift_opened done [16:18:56]requested_item shift.open_date is exist - process it [16:18:56]req_shift_open_date [16:18:56]req_shift_open_date done [16:18:56]produce_requested_data done [16:18:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72868,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [16:18:56]process_action_free close_receipt [16:18:56]json_value_free [16:18:56]json_value_free done [16:18:56]process_json_proto returns [16:18:56]Send response to host [16:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72868,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [16:18:56]free response buf [16:18:56]execute_script done [16:18:56]execute_script returns [16:18:56]free content buf [16:18:56]Sock 9.Close socket [16:18:56]Sock 9.Thread stoped [16:18:59]recv_with_timeout no data received [16:18:59]ConnectInit Can't take IP for lk.salyk.kg [16:18:59]CommunicateWithHost connect error [16:18:59]CommunicateWithHost err = -1 [16:18:59]OFD Sender: Server communicate error [16:19:04]OFD Sender: Processing packet 72868 [packets to send 278, broken 277] [16:19:04]ProducePacketName [16:19:04]name=ofd_packets/00072868 [16:19:04]OFD Sender: To server: pG, [16:19:04]CommunicateWithHost lk.salyk.kg:30040 [16:19:04]ConnectInit lk.salyk.kg [16:19:09]ConnectInit Can't take IP for lk.salyk.kg [16:19:09]CommunicateWithHost connect error [16:19:09]CommunicateWithHost err = -1 [16:19:09]OFD Sender: Server communicate error [16:19:14]OFD Sender: Processing packet 72868 [packets to send 278, broken 277] [16:19:14]ProducePacketName [16:19:14]name=ofd_packets/00072868 [16:19:14]OFD Sender: To server: pG, [16:19:14]CommunicateWithHost lk.salyk.kg:30040 [16:19:14]ConnectInit lk.salyk.kg [16:19:14]recv_with_timeout no data received [16:19:21]Connected sock=10 [16:19:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 31 B9 07 01 90 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6D 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1C 01 00 35 04 06 00 84 31 67 41 42 6D B0 FB 0A EE 43 B3 D8 67 [16:19:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 68 62 47 00 5C 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1C 01 00 F4 03 04 00 41 07 22 67 B6 04 01 00 00 E9 44 43 B1 DA FD 2A 40 [16:19:23]CommunicateWithHost err = 0 [16:19:23]CheckOFDResponse [16:19:23]1017 (14) - 77093643461234 [16:19:23]1041 (16) - 0000000000874662 [16:19:23]1040 (4) - 72868 [16:19:23]1012 (4) - 30.10.2024 10:15 [16:19:23]1206 (1) - 0 [16:19:23]OFD Sender: Remove packet 72868 [16:19:23]ProducePacketName [16:19:23]name=ofd_packets/00072868 [16:19:23]NVStorageDeleteData [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:49]recv_with_timeout no data received [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:47]recv_with_timeout no data received [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:20]recv_with_timeout no data received [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:30]recv_with_timeout no data received [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:47]recv_with_timeout no data received [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:57]recv_with_timeout no data received [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:21]recv_with_timeout no data received [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:31]recv_with_timeout no data received [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:28]recv_with_timeout no data received [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:07]recv_with_timeout no data received [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:11]recv_with_timeout no data received [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:37]recv_with_timeout no data received [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:02]recv_with_timeout no data received [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:03]recv_with_timeout no data received [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:58]recv_with_timeout no data received [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:40]recv_with_timeout no data received [16:30:42]accept exits with 7 [16:30:42]New connection [16:30:42]New thread 3067415908 created [16:30:42]Thread 3067559268 joined [16:30:42]Waiting for new connection... [16:30:42] Sock 7.Parse request [16:30:42]Sock 7.Check first char [16:30:42]Sock 7.First char is OK [16:30:42]request: POST /json_proto HTTP/1.0 [16:30:42]Method: POST [16:30:42]URL: /json_proto [16:30:42]Method is POST - this is cgi request [16:30:42]url: /json_proto [16:30:42]query_string will be loaded in cgi processing [16:30:42]execute_cgi json_proto POST (null) [16:30:42]execute_cgi path=json_proto method=POST [16:30:42]POST find Content-Length [16:30:42]Host: 172.17.43.195:8080 [16:30:42]Content-Length: 792 [16:30:42]Content-Type: application/json [16:30:42] [16:30:42]POST finish read [16:30:42]Found Content-Length = 792 [16:30:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:42]execute_script... [16:30:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:42]POST & json_proto [16:30:42]process_json_proto [16:30:42]json parsed OK: [16:30:42]protocol is kg_v1.0 [16:30:42]action value=close_receipt [16:30:42]process_action close_receipt [16:30:42]cmd_close_receipt [16:30:42]MH_GetDate [16:30:42]Write to MH i2c: F0 00 00 5A 00 49 [16:30:42]Write i2c OK [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: F0 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: F0 09 00 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: F0 09 00 5A 00 00 33 5F 22 67 74 2C AD 66 20 [16:30:42]GetLastDocTimeStamp 1730305133 [16:30:42]current date 1730305843 [16:30:42]FM_GetShiftState [16:30:42]SAM_PROTO_GetShiftState [16:30:42]wFMCommunicate request_size=4 [16:30:42]MH_SAM_APDU [16:30:42]CAPDU: 80 13 01 00 [16:30:42]Write to MH i2c: E2 08 00 5B 00 80 13 01 00 00 00 00 00 D8 [16:30:42]Write i2c OK [16:30:42]MH_I2C_Read... [16:30:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:42]Read from MH i2c: E2 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 0E 00 [16:30:42]MH_I2C_Read... [16:30:42]Read from MH i2c: E2 0E 00 5B 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 AA [16:30:42]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:30:42]wFMCommunicate OK [16:30:42]SAM_PROTO_GetShiftState done [16:30:42]FM_GetShiftState done [16:30:42]opened in 1730247109 [16:30:42]opened+sec_in_day 1730333509 [16:30:42]quantity*price = 0 [16:30:42]sum+1 = 1 [16:30:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 106 30.10.2024 16:30 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72869 ФПД: 166754135681361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163043&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72869&fm=166754135681361&tin=02508201610067®Number=0000000000091644&sum=0 [16:30:43]StoreToDocumentArchive [16:30:43]shift 556 fd 72869 [16:30:43]save to /storage/0556/doc_00072869 [16:30:43]save last doc name /storage/0556/doc_00072869 to /storage/kkm_last_doc_name [16:30:43]save OK [16:30:43]Clear old archive folders... [16:30:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:43]tlvbuf is B6FE9720 [16:30:43]SAM_PROTO_ClearQueue [16:30:43]wFMCommunicate request_size=4 [16:30:43]MH_SAM_APDU [16:30:43]CAPDU: 80 09 00 00 [16:30:43]Write to MH i2c: E2 08 00 68 00 80 09 00 00 00 00 00 00 DA [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:43]Read from MH i2c: E2 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 03 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [16:30:43]RAPDU: 90 00 [16:30:43]wFMCommunicate OK [16:30:43]SAM_PROTO_ClearQueue done [16:30:43]KKMCreateOFDPacket [16:30:43]OFDProtocolAddRootSTLVToBuf [16:30:43]FM_MakeSignedData [16:30:43]FM_MakeSignedData [16:30:43]SAM_PROTO_SignData [16:30:43]wFMCommunicate request_size=4 [16:30:43]MH_SAM_APDU [16:30:43]CAPDU: 80 0D 01 02 [16:30:43]Write to MH i2c: E2 08 00 69 00 80 0D 01 02 00 00 00 00 E2 [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:43]Read from MH i2c: E2 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 03 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [16:30:43]RAPDU: 90 00 [16:30:43]wFMCommunicate OK [16:30:43]wFMCommunicate request_size=255 [16:30:43]MH_SAM_APDU [16:30:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 33 5F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1C 01 00 35 04 06 00 97 [16:30:43]Write to MH i2c: E2 02 01 6A 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 33 5F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1C 01 00 35 04 06 00 97 00 00 9D [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:43]Read from MH i2c: E2 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 03 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [16:30:43]RAPDU: 90 00 [16:30:43]wFMCommunicate OK [16:30:43]wFMCommunicate request_size=10 [16:30:43]MH_SAM_APDU [16:30:43]CAPDU: 80 0D 02 02 05 A9 79 05 A9 51 [16:30:43]Write to MH i2c: E2 0D 00 6B 00 80 0D 02 02 05 00 A9 79 05 A9 51 00 00 10 [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:43]Read from MH i2c: E2 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 03 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [16:30:43]RAPDU: 90 00 [16:30:43]wFMCommunicate OK [16:30:43]wFMCommunicate request_size=4 [16:30:43]MH_SAM_APDU [16:30:43]CAPDU: 80 0D 03 02 [16:30:43]Write to MH i2c: E2 08 00 6C 00 80 0D 03 02 00 00 00 00 E7 [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:43]Read from MH i2c: E2 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 0B 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 0B 00 6C 00 00 26 F3 DF D3 5E AB 8A 7D 90 00 C3 [16:30:43]RAPDU: 26 F3 DF D3 5E AB 8A 7D 90 00 [16:30:43]wFMCommunicate OK [16:30:43]SAM_PROTO_SignData done [16:30:43]FM_MakeSignedData done [16:30:43]CreateOFDProtocolMessage [16:30:43]wFMCommunicate request_size=4 [16:30:43]MH_SAM_APDU [16:30:43]CAPDU: 80 11 00 00 [16:30:43]Write to MH i2c: E2 08 00 6D 00 80 11 00 00 00 00 00 00 E7 [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:43]Read from MH i2c: E2 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 17 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 17 00 6D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3B [16:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:30:43]wFMCommunicate OK [16:30:43]CreateOFDProtocolMessage done [16:30:43]OFDSenderStorePacket 72869 [16:30:43]StoreOFDPacket docnum=72869 [16:30:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D3 EA 07 01 54 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 33 5F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1C 01 00 35 04 06 00 97 A9 79 05 A9 51 26 F3 DF D3 5E AB 8A 7D [16:30:43]CheckFolder [16:30:43]dirname=/storage/ofd_packets [16:30:43]CheckFolder done [16:30:43]ProducePacketName [16:30:43]name=ofd_packets/00072869 [16:30:43]NVStorageSaveData ofd_packets/00072869 [16:30:43]File name is /storage/ofd_packets/00072869 [16:30:43]Write 301 bytes [16:30:43]NVStorageSaveData done [16:30:43]OFDSenderStorePacket done [16:30:43]KKMCreateOFDPacket done [16:30:43]NVStorageSaveData kkm_last_timestamp [16:30:43]File name is /storage/kkm_last_timestamp [16:30:43]Write 4 bytes [16:30:43]NVStorageSaveData done [16:30:43]ExternCall_PrintAddStr [16:30:43]wPrintStart [16:30:43]Write to MH i2c: 01 00 00 6E 00 6E [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: 01 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: 01 07 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 FF 0F 83 [16:30:43]RasterBufferAndPrint [16:30:43]line Счет N : (1)952453 [16:30:43]line ИНН: 02508201610067 [16:30:43]line Контрольно-Кассовый Чек [16:30:43]line ПРОДАЖА [16:30:43]line ТРК (МРК, ГНК) : 53 [16:30:43]line Товар: 2710124130 [16:30:43]line Аи-92-К-5 [16:30:43]line 30.000 * 0.00 [16:30:43]line = 0.00 [16:30:43]line НДС 12% НСП 1% [16:30:43]line > о реализуемом товаре [16:30:43]line ИТОГО: 0.00 [16:30:43]line НСП 1% : 0.00 [16:30:43]line НДС 12% : 0.00 [16:30:43]line Наличными: 0.00 [16:30:43]line Безнал.: 0.00 [16:30:43]line Место: АЗС № 113 "Партнер Нефть" [16:30:43]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:30:43]line СНО: Общий режим [16:30:43]line Чек 106 30.10.2024 16:30 [16:30:43]line Смена: 556 ФФД: 1.0 [16:30:43]line ЗНМ: 0300000087 [16:30:43]line РНМ: 0000000000091644 [16:30:43]line Версия ККМ: 001 [16:30:43]line Талоны: Топливная Карта [16:30:43]line 03047 [16:30:43]line ФМ: 0000000000874662 [16:30:43]line ФД: 72869 [16:30:43]line ФПД: 166754135681361 [16:30:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163043&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72869&fm=166754135681361&tin=02508201610067®Number=0000000000091644&sum=0 [16:30:43]written 0, free lines is 4095 [16:30:43]OFD Sender: Processing packet 72869 [packets to send 278, broken 277] [16:30:43]ProducePacketName [16:30:43]name=ofd_packets/00072869 [16:30:43]OFD Sender: To server: pG, [16:30:43]CommunicateWithHost lk.salyk.kg:30040 [16:30:43]ConnectInit lk.salyk.kg [16:30:44]Write to MH i2c: 01 00 00 98 00 98 [16:30:44]Write i2c OK [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: 01 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: 01 07 00 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 E6 0C 91 [16:30:44]RasterBufferAndPrint [16:30:44]line [16:30:44]line [16:30:44]line [16:30:44]line [16:30:44]line [16:30:44]written 0, free lines is 3309 [16:30:44]MH_Cut [16:30:44]Write to MH i2c: D1 01 00 9F 00 01 71 [16:30:44]Write i2c OK [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: D1 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: D1 01 00 [16:30:44]MH_I2C_Read... [16:30:44]Read from MH i2c: D1 01 00 9F 00 00 70 [16:30:44]Write to MH i2c: 01 00 00 A0 00 A0 [16:30:44]Write i2c OK [16:30:44]MH_I2C_Read... [16:30:44]Connected sock=10 [16:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D3 EA 07 01 54 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 33 5F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1C 01 00 35 04 06 00 97 A9 79 05 A9 51 26 F3 DF D3 5E AB 8A 7D [16:30:45]*** Cut start [16:30:45]*** Partial cut [16:30:45]*** CUTSNS_PIN = 1 [16:30:45]*** CUTSNS_PIN = 0 [16:30:45]*** Brake cut motor [16:30:45]Read from MH i2c: 01 [16:30:45]MH_I2C_Read... [16:30:45]*** Stop cut motor [16:30:45]*** Cut end [16:30:45]Read from MH i2c: 01 07 00 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: 01 07 00 A0 00 00 00 00 00 00 FF 0F B5 [16:30:45]process_action close_receipt done [16:30:45]requested_data is exist [16:30:45]produce_requested_data [16:30:45]requested_item fm.sn is exist - process it [16:30:45]wFMCommunicate request_size=4 [16:30:45]MH_SAM_APDU [16:30:45]CAPDU: 80 11 00 00 [16:30:45]Write to MH i2c: E2 08 00 A1 00 80 11 00 00 00 00 00 00 1B [16:30:45]Write i2c OK [16:30:45]MH_I2C_Read... [16:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:45]Read from MH i2c: E2 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 17 00 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 17 00 A1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 6F [16:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:30:45]wFMCommunicate OK [16:30:45]requested_item fd.num is exist - process it [16:30:45]SAM_PROTO_GetFieldsCounters [16:30:45]wFMCommunicate request_size=4 [16:30:45]MH_SAM_APDU [16:30:45]CAPDU: 80 13 00 00 [16:30:45]Write to MH i2c: E2 08 00 A2 00 80 13 00 00 00 00 00 00 1E [16:30:45]Write i2c OK [16:30:45]MH_I2C_Read... [16:30:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:45]Read from MH i2c: E2 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 62 00 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 62 00 A2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A5 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [16:30:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A5 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:45]wFMCommunicate OK [16:30:45]SAM_PROTO_GetFieldsCounters done [16:30:45]requested_item shift.num is exist - process it [16:30:45]requested_item shift.opened is exist - process it [16:30:45]req_shift_opened [16:30:45]FM_GetShiftState [16:30:45]SAM_PROTO_GetShiftState [16:30:45]wFMCommunicate request_size=4 [16:30:45]MH_SAM_APDU [16:30:45]CAPDU: 80 13 01 00 [16:30:45]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [16:30:45]Write i2c OK [16:30:45]MH_I2C_Read... [16:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:45]Read from MH i2c: E2 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 0E 00 [16:30:45]MH_I2C_Read... [16:30:45]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 F2 [16:30:45]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:30:45]wFMCommunicate OK [16:30:45]SAM_PROTO_GetShiftState done [16:30:45]FM_GetShiftState done [16:30:45]req_shift_opened done [16:30:45]requested_item shift.open_date is exist - process it [16:30:45]req_shift_open_date [16:30:45]req_shift_open_date done [16:30:45]produce_requested_data done [16:30:45]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72869,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [16:30:45]process_action_free close_receipt [16:30:45]json_value_free [16:30:45]json_value_free done [16:30:45]process_json_proto returns [16:30:45]Send response to host [16:30:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72869,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [16:30:45]free response buf [16:30:45]execute_script done [16:30:45]execute_script returns [16:30:45]free content buf [16:30:45]Sock 7.Close socket [16:30:45]Sock 7.Thread stoped [16:30:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E5 4F 47 00 E2 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1C 01 00 F4 03 04 00 EC 09 22 67 B6 04 01 00 00 F3 9D 24 81 2F FA 3E 31 [16:30:46]CommunicateWithHost err = 0 [16:30:46]CheckOFDResponse [16:30:46]1017 (14) - 77093643461234 [16:30:46]1041 (16) - 0000000000874662 [16:30:46]1040 (4) - 72869 [16:30:46]1012 (4) - 30.10.2024 10:26 [16:30:46]1206 (1) - 0 [16:30:46]OFD Sender: Remove packet 72869 [16:30:46]ProducePacketName [16:30:46]name=ofd_packets/00072869 [16:30:46]NVStorageDeleteData [16:30:46]OFD Sender: No OFD packet to send [16:30:51]recv_with_timeout no data received [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:03]recv_with_timeout no data received [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]recv_with_timeout no data received [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:19]recv_with_timeout no data received [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:29]recv_with_timeout no data received [16:32:31]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: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:19]recv_with_timeout no data received [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:33:57]recv_with_timeout no data received [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:34:57]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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: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:51]recv_with_timeout no data received [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:29]accept exits with 9 [16:36:29]New connection [16:36:29]New thread 3067559268 created [16:36:29]Thread 3067415908 joined [16:36:29]Waiting for new connection... [16:36:29] Sock 9.Parse request [16:36:29]Sock 9.Check first char [16:36:29]Sock 9.First char is OK [16:36:29]request: POST /json_proto HTTP/1.0 [16:36:29]Method: POST [16:36:29]URL: /json_proto [16:36:29]Method is POST - this is cgi request [16:36:29]url: /json_proto [16:36:29]query_string will be loaded in cgi processing [16:36:29]execute_cgi json_proto POST (null) [16:36:29]execute_cgi path=json_proto method=POST [16:36:29]POST find Content-Length [16:36:29]Host: 172.17.43.195:8080 [16:36:29]Content-Length: 677 [16:36:29]Content-Type: application/json [16:36:29] [16:36:29]POST finish read [16:36:29]Found Content-Length = 677 [16:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:29]execute_script... [16:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:29]POST & json_proto [16:36:29]process_json_proto [16:36:29]json parsed OK: [16:36:29]protocol is kg_v1.0 [16:36:29]action value=close_receipt [16:36:29]process_action close_receipt [16:36:29]cmd_close_receipt [16:36:29]MH_GetDate [16:36:29]Write to MH i2c: F0 00 00 A4 00 93 [16:36:29]Write i2c OK [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: F0 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: F0 09 00 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: F0 09 00 A4 00 00 8E 60 22 67 74 2C AD 66 C6 [16:36:29]GetLastDocTimeStamp 1730305843 [16:36:29]current date 1730306190 [16:36:29]FM_GetShiftState [16:36:29]SAM_PROTO_GetShiftState [16:36:29]wFMCommunicate request_size=4 [16:36:29]MH_SAM_APDU [16:36:29]CAPDU: 80 13 01 00 [16:36:29]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [16:36:29]Write i2c OK [16:36:29]MH_I2C_Read... [16:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:29]Read from MH i2c: E2 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: E2 0E 00 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 F4 [16:36:29]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:36:29]wFMCommunicate OK [16:36:29]SAM_PROTO_GetShiftState done [16:36:29]FM_GetShiftState done [16:36:29]opened in 1730247109 [16:36:29]opened+sec_in_day 1730333509 [16:36:29]quantity*price = 30038 [16:36:29]sum+1 = 30039 [16:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 107 30.10.2024 16:36 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72870 ФПД: 152735646449266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163630&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72870&fm=152735646449266&tin=02508201610067®Number=0000000000091644&sum=30000 [16:36:30]StoreToDocumentArchive [16:36:30]shift 556 fd 72870 [16:36:30]save to /storage/0556/doc_00072870 [16:36:30]save last doc name /storage/0556/doc_00072870 to /storage/kkm_last_doc_name [16:36:30]save OK [16:36:30]Clear old archive folders... [16:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:30]tlvbuf is 0113C1E0 [16:36:30]SAM_PROTO_ClearQueue [16:36:30]wFMCommunicate request_size=4 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 09 00 00 [16:36:30]Write to MH i2c: E2 08 00 B2 00 80 09 00 00 00 00 00 00 24 [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:30]Read from MH i2c: E2 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [16:36:30]RAPDU: 90 00 [16:36:30]wFMCommunicate OK [16:36:30]SAM_PROTO_ClearQueue done [16:36:30]KKMCreateOFDPacket [16:36:30]OFDProtocolAddRootSTLVToBuf [16:36:30]FM_MakeSignedData [16:36:30]FM_MakeSignedData [16:36:30]SAM_PROTO_SignData [16:36:30]wFMCommunicate request_size=4 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 0D 01 02 [16:36:30]Write to MH i2c: E2 08 00 B3 00 80 0D 01 02 00 00 00 00 2C [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:30]Read from MH i2c: E2 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [16:36:30]RAPDU: 90 00 [16:36:30]wFMCommunicate OK [16:36:30]wFMCommunicate request_size=255 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8E 60 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A6 1C 01 00 35 04 06 00 8A [16:36:30]Write to MH i2c: E2 02 01 B4 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8E 60 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A6 1C 01 00 35 04 06 00 8A 00 00 0C [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [16:36:31]RAPDU: 90 00 [16:36:31]wFMCommunicate OK [16:36:31]wFMCommunicate request_size=10 [16:36:31]MH_SAM_APDU [16:36:31]CAPDU: 80 0D 02 02 05 E9 89 F3 7E 72 [16:36:31]Write to MH i2c: E2 0D 00 B5 00 80 0D 02 02 05 00 E9 89 F3 7E 72 00 00 8E [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [16:36:31]RAPDU: 90 00 [16:36:31]wFMCommunicate OK [16:36:31]wFMCommunicate request_size=4 [16:36:31]MH_SAM_APDU [16:36:31]CAPDU: 80 0D 03 02 [16:36:31]Write to MH i2c: E2 08 00 B6 00 80 0D 03 02 00 00 00 00 31 [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 0B 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 0B 00 B6 00 00 86 12 34 49 7A 66 93 9F 90 00 59 [16:36:31]RAPDU: 86 12 34 49 7A 66 93 9F 90 00 [16:36:31]wFMCommunicate OK [16:36:31]SAM_PROTO_SignData done [16:36:31]FM_MakeSignedData done [16:36:31]CreateOFDProtocolMessage [16:36:31]wFMCommunicate request_size=4 [16:36:31]MH_SAM_APDU [16:36:31]CAPDU: 80 11 00 00 [16:36:31]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 17 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 85 [16:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:36:31]wFMCommunicate OK [16:36:31]CreateOFDProtocolMessage done [16:36:31]OFDSenderStorePacket 72870 [16:36:31]StoreOFDPacket docnum=72870 [16:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2A FE 07 01 C1 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8E 60 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A6 1C 01 00 35 04 06 00 8A E9 89 F3 7E 72 86 12 34 49 7A 66 93 9F [16:36:31]CheckFolder [16:36:31]dirname=/storage/ofd_packets [16:36:31]CheckFolder done [16:36:31]ProducePacketName [16:36:31]name=ofd_packets/00072870 [16:36:31]NVStorageSaveData ofd_packets/00072870 [16:36:31]File name is /storage/ofd_packets/00072870 [16:36:31]Write 301 bytes [16:36:31]NVStorageSaveData done [16:36:31]OFDSenderStorePacket done [16:36:31]KKMCreateOFDPacket done [16:36:31]NVStorageSaveData kkm_last_timestamp [16:36:31]File name is /storage/kkm_last_timestamp [16:36:31]Write 4 bytes [16:36:31]NVStorageSaveData done [16:36:31]ExternCall_PrintAddStr [16:36:31]wPrintStart [16:36:31]Write to MH i2c: 01 00 00 B8 00 B8 [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 07 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 07 00 B8 00 00 00 00 00 00 FF 0F CD [16:36:31]RasterBufferAndPrint [16:36:31]line Счет N : (1)952455 [16:36:31]line ИНН: 02508201610067 [16:36:31]line Контрольно-Кассовый Чек [16:36:31]line ПРОДАЖА [16:36:31]line ТРК (МРК, ГНК) : 53 [16:36:31]line Товар: 2710124130 [16:36:31]line Аи-92-К-5 [16:36:31]line 4.490 * 66.90 [16:36:31]line = 300.38 [16:36:31]line НДС 12% НСП 1% [16:36:31]line > о реализуемом товаре [16:36:31]line ОКРУГЛЕНИЕ: -0.38 [16:36:31]line ИТОГО: 300.00 [16:36:31]line Внесено: 300.00 [16:36:31]line СДАЧА: 0.00 [16:36:31]line НСП 1% : 2.66 [16:36:31]line НДС 12% : 31.90 [16:36:31]line Наличными: 300.00 [16:36:31]line Безнал.: 0.00 [16:36:31]line Место: АЗС № 113 "Партнер Нефть" [16:36:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:36:31]line СНО: Общий режим [16:36:31]line Чек 107 30.10.2024 16:36 [16:36:31]line Смена: 556 ФФД: 1.0 [16:36:31]line ЗНМ: 0300000087 [16:36:31]line РНМ: 0000000000091644 [16:36:31]line Версия ККМ: 001 [16:36:31]line ФМ: 0000000000874662 [16:36:31]line ФД: 72870 [16:36:31]line ФПД: 152735646449266 [16:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163630&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72870&fm=152735646449266&tin=02508201610067®Number=0000000000091644&sum=30000 [16:36:31]written 0, free lines is 4095 [16:36:31]OFD Sender: Processing packet 72870 [packets to send 278, broken 277] [16:36:31]ProducePacketName [16:36:31]name=ofd_packets/00072870 [16:36:31]OFD Sender: To server: pG, [16:36:31]CommunicateWithHost lk.salyk.kg:30040 [16:36:31]ConnectInit lk.salyk.kg [16:36:31]Write to MH i2c: 01 00 00 E3 00 E3 [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 07 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 D4 0C CA [16:36:31]RasterBufferAndPrint [16:36:31]line [16:36:31]line [16:36:31]line [16:36:31]line [16:36:31]line [16:36:31]written 0, free lines is 3292 [16:36:31]MH_Cut [16:36:31]Write to MH i2c: D1 01 00 EA 00 01 BC [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: D1 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: D1 01 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: D1 01 00 EA 00 00 BB [16:36:31]Write to MH i2c: 01 00 00 EB 00 EB [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:32]*** Cut start [16:36:32]*** Partial cut [16:36:32]*** CUTSNS_PIN = 1 [16:36:32]*** CUTSNS_PIN = 0 [16:36:32]*** Brake cut motor [16:36:33]Read from MH i2c: 01 [16:36:33]*** Stop cut motor [16:36:33]MH_I2C_Read... [16:36:33]*** Cut end [16:36:33]Read from MH i2c: Connected sock=10 [16:36:33]01 Data to sent: 07 87 00 95 [16:36:33]F6 MH_I2C_Read... [16:36:33]70 47 2C 01 00 30 30 30 30 30 30 30 30 30 Read from MH i2c: 30 01 38 07 00 37 EB 00 34 00 36 00 36 00 32 00 0F 00 01 FF 00 00 0F 2A 00 [16:36:33]FE process_action close_receipt done [16:36:33]07 requested_data is exist [16:36:33]01 produce_requested_data [16:36:33]C1 requested_item fm.sn is exist - process it [16:36:33]A3 wFMCommunicate request_size=4 [16:36:33]5A MH_SAM_APDU [16:36:33]03 CAPDU: 01 80 00 11 03 00 00 00 FB [16:36:33]00 Write to MH i2c: 1E E2 04 08 00 01 EC 00 00 01 80 23 11 04 00 4D 00 00 00 00 8A 00 04 00 66 [16:36:33]0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A Write i2c OK [16:36:33]11 MH_I2C_Read... [16:36:33]00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 8E 60 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A6 1C 01 00 35 04 06 00 8A E9 89 F3 7E 72 86 12 34 49 7A 66 93 9F [16:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:33]Read from MH i2c: E2 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 17 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 17 00 EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BA [16:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:36:33]wFMCommunicate OK [16:36:33]requested_item fd.num is exist - process it [16:36:33]SAM_PROTO_GetFieldsCounters [16:36:33]wFMCommunicate request_size=4 [16:36:33]MH_SAM_APDU [16:36:33]CAPDU: 80 13 00 00 [16:36:33]Write to MH i2c: E2 08 00 ED 00 80 13 00 00 00 00 00 00 69 [16:36:33]Write i2c OK [16:36:33]MH_I2C_Read... [16:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:33]Read from MH i2c: E2 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 62 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 62 00 ED 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A6 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [16:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A6 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:33]wFMCommunicate OK [16:36:33]SAM_PROTO_GetFieldsCounters done [16:36:33]requested_item shift.num is exist - process it [16:36:33]requested_item shift.opened is exist - process it [16:36:33]req_shift_opened [16:36:33]FM_GetShiftState [16:36:33]SAM_PROTO_GetShiftState [16:36:33]wFMCommunicate request_size=4 [16:36:33]MH_SAM_APDU [16:36:33]CAPDU: 80 13 01 00 [16:36:33]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [16:36:33]Write i2c OK [16:36:33]MH_I2C_Read... [16:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:33]Read from MH i2c: E2 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 0E 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 3D [16:36:33]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:36:33]wFMCommunicate OK [16:36:33]SAM_PROTO_GetShiftState done [16:36:33]FM_GetShiftState done [16:36:33]req_shift_opened done [16:36:33]requested_item shift.open_date is exist - process it [16:36:33]req_shift_open_date [16:36:33]req_shift_open_date done [16:36:33]produce_requested_data done [16:36:33]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72870,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [16:36:33]process_action_free close_receipt [16:36:33]json_value_free [16:36:33]json_value_free done [16:36:33]process_json_proto returns [16:36:33]Send response to host [16:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72870,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [16:36:33]free response buf [16:36:33]execute_script done [16:36:33]execute_script returns [16:36:33]free content buf [16:36:33]Sock 9.Close socket [16:36:33]Sock 9.Thread stoped [16:36:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 AD CE 47 00 FE 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 38 37 34 36 36 32 10 04 04 00 A6 1C 01 00 F4 03 04 00 48 0B 22 67 B6 04 01 00 00 B5 CE E4 D7 F4 42 EE 14 [16:36:33]CommunicateWithHost err = 0 [16:36:33]CheckOFDResponse [16:36:33]1017 (14) - 77093643461234 [16:36:33]1041 (16) - 0000000000874662 [16:36:33]1040 (4) - 72870 [16:36:33]1012 (4) - 30.10.2024 10:32 [16:36:33]1206 (1) - 0 [16:36:33]OFD Sender: Remove packet 72870 [16:36:33]ProducePacketName [16:36:33]name=ofd_packets/00072870 [16:36:33]NVStorageDeleteData [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:43]accept exits with 7 [16:36:43]New connection [16:36:43]New thread 3067415908 created [16:36:43]Thread 3067559268 joined [16:36:43]Waiting for new connection... [16:36:43] Sock 7.Parse request [16:36:43]Sock 7.Check first char [16:36:43]Sock 7.First char is OK [16:36:43]request: POST /json_proto HTTP/1.0 [16:36:43]Method: POST [16:36:43]URL: /json_proto [16:36:43]Method is POST - this is cgi request [16:36:43]url: /json_proto [16:36:43]query_string will be loaded in cgi processing [16:36:43]execute_cgi json_proto POST (null) [16:36:43]execute_cgi path=json_proto method=POST [16:36:43]POST find Content-Length [16:36:43]Host: 172.17.43.195:8080 [16:36:43]Content-Length: 824 [16:36:43]Content-Type: application/json [16:36:43] [16:36:43]POST finish read [16:36:43]Found Content-Length = 824 [16:36:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952454", "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" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:43]execute_script... [16:36:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952454", "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" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:43]POST & json_proto [16:36:43]process_json_proto [16:36:43]json parsed OK: [16:36:43]protocol is kg_v1.0 [16:36:43]action value=close_receipt [16:36:43]process_action close_receipt [16:36:43]cmd_close_receipt [16:36:43]MH_GetDate [16:36:43]Write to MH i2c: F0 00 00 EF 00 DE [16:36:43]Write i2c OK [16:36:43]MH_I2C_Read... [16:36:43]Read from MH i2c: F0 [16:36:43]MH_I2C_Read... [16:36:43]Read from MH i2c: F0 09 00 [16:36:43]MH_I2C_Read... [16:36:43]Read from MH i2c: F0 09 00 EF 00 00 9C 60 22 67 74 2C AD 66 1F [16:36:43]GetLastDocTimeStamp 1730306190 [16:36:43]current date 1730306204 [16:36:43]FM_GetShiftState [16:36:43]SAM_PROTO_GetShiftState [16:36:43]wFMCommunicate request_size=4 [16:36:43]MH_SAM_APDU [16:36:43]CAPDU: 80 13 01 00 [16:36:43]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [16:36:43]Write i2c OK [16:36:43]MH_I2C_Read... [16:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:43]Read from MH i2c: E2 [16:36:43]MH_I2C_Read... [16:36:43]Read from MH i2c: E2 0E 00 [16:36:43]MH_I2C_Read... [16:36:43]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 3F [16:36:43]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:36:43]wFMCommunicate OK [16:36:43]SAM_PROTO_GetShiftState done [16:36:43]FM_GetShiftState done [16:36:43]opened in 1730247109 [16:36:43]opened+sec_in_day 1730333509 [16:36:43]quantity*price = 150037 [16:36:43]sum+1 = 150039 [16:36:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 108 30.10.2024 16:36 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 72871 ФПД: 227151996914098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163644&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72871&fm=227151996914098&tin=02508201610067®Number=0000000000091644&sum=150038 [16:36:45]StoreToDocumentArchive [16:36:45]shift 556 fd 72871 [16:36:45]save to /storage/0556/doc_00072871 [16:36:45]save last doc name /storage/0556/doc_00072871 to /storage/kkm_last_doc_name [16:36:45]save OK [16:36:45]Clear old archive folders... [16:36:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:36:45]tlvbuf is 0113BDF0 [16:36:45]SAM_PROTO_ClearQueue [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 09 00 00 [16:36:45]Write to MH i2c: E2 08 00 FD 00 80 09 00 00 00 00 00 00 6F [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [16:36:45]RAPDU: 90 00 [16:36:45]wFMCommunicate OK [16:36:45]SAM_PROTO_ClearQueue done [16:36:45]KKMCreateOFDPacket [16:36:45]OFDProtocolAddRootSTLVToBuf [16:36:45]FM_MakeSignedData [16:36:45]FM_MakeSignedData [16:36:45]SAM_PROTO_SignData [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 0D 01 02 [16:36:45]Write to MH i2c: E2 08 00 FE 00 80 0D 01 02 00 00 00 00 77 [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [16:36:45]RAPDU: 90 00 [16:36:45]wFMCommunicate OK [16:36:45]wFMCommunicate request_size=255 [16:36:45]MH_SAM_APDU [16:36:45]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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9C 60 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1C 01 00 35 04 06 00 [16:36:45]Write to MH i2c: E2 02 01 FF 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9C 60 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1C 01 00 35 04 06 00 00 00 8C [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [16:36:45]RAPDU: 90 00 [16:36:45]wFMCommunicate OK [16:36:45]wFMCommunicate request_size=11 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 0D 02 02 06 CE 97 F2 16 09 B2 [16:36:45]Write to MH i2c: E2 0E 00 00 01 80 0D 02 02 06 00 CE 97 F2 16 09 B2 00 00 AF [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [16:36:45]RAPDU: 90 00 [16:36:45]wFMCommunicate OK [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 0D 03 02 [16:36:45]Write to MH i2c: E2 08 00 01 01 80 0D 03 02 00 00 00 00 7D [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 0B 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 0B 00 01 01 00 1A B8 CD 14 15 9A FB 26 90 00 01 [16:36:45]RAPDU: 1A B8 CD 14 15 9A FB 26 90 00 [16:36:45]wFMCommunicate OK [16:36:45]SAM_PROTO_SignData done [16:36:45]FM_MakeSignedData done [16:36:45]CreateOFDProtocolMessage [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 11 00 00 [16:36:45]Write to MH i2c: E2 08 00 02 01 80 11 00 00 00 00 00 00 7D [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 17 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 17 00 02 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D1 [16:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:36:45]wFMCommunicate OK [16:36:45]CreateOFDProtocolMessage done [16:36:45]OFDSenderStorePacket 72871 [16:36:45]StoreOFDPacket docnum=72871 [16:36:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 9C 19 08 01 E5 3C 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9C 60 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1C 01 00 35 04 06 00 CE 97 F2 16 09 B2 1A B8 CD 14 15 9A FB 26 [16:36:45]CheckFolder [16:36:45]dirname=/storage/ofd_packets [16:36:45]CheckFolder done [16:36:45]ProducePacketName [16:36:45]name=ofd_packets/00072871 [16:36:45]NVStorageSaveData ofd_packets/00072871 [16:36:45]File name is /storage/ofd_packets/00072871 [16:36:45]Write 302 bytes [16:36:45]NVStorageSaveData done [16:36:45]OFDSenderStorePacket done [16:36:45]KKMCreateOFDPacket done [16:36:45]NVStorageSaveData kkm_last_timestamp [16:36:45]File name is /storage/kkm_last_timestamp [16:36:45]Write 4 bytes [16:36:45]NVStorageSaveData done [16:36:45]ExternCall_PrintAddStr [16:36:45]wPrintStart [16:36:45]Write to MH i2c: 01 00 00 03 01 04 [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: 01 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: 01 07 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: 01 07 00 03 01 00 00 00 00 00 FF 0F 19 [16:36:45]RasterBufferAndPrint [16:36:45]line Счет N : (1)952454 [16:36:45]line ИНН: 02508201610067 [16:36:45]line Контрольно-Кассовый Чек [16:36:45]line ПРОДАЖА [16:36:45]line ТРК (МРК, ГНК) : 43 [16:36:45]line Товар: 2710194210 [16:36:45]line ДТ(л)-К-5 [16:36:45]line 19.690 * 76.20 [16:36:45]line = 1500.38 [16:36:45]line НДС 12% НСП 1% [16:36:45]line > о реализуемом товаре [16:36:45]line ИТОГО: 1500.38 [16:36:45]line НСП 1% : 13.28 [16:36:45]line НДС 12% : 159.33 [16:36:45]line Наличными: 0.00 [16:36:45]line Безнал.: 1500.38 [16:36:45]line Место: АЗС № 113 "Партнер Нефть" [16:36:45]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:36:45]line СНО: Общий режим [16:36:45]line Чек 108 30.10.2024 16:36 [16:36:45]line Смена: 556 ФФД: 1.0 [16:36:45]line ЗНМ: 0300000087 [16:36:45]line РНМ: 0000000000091644 [16:36:45]line Версия ККМ: 001 [16:36:45]line Платежная система: Бакай банк [16:36:45]line ФМ: 0000000000874662 [16:36:45]line ФД: 72871 [16:36:45]line ФПД: 227151996914098 [16:36:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163644&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72871&fm=227151996914098&tin=02508201610067®Number=0000000000091644&sum=150038 [16:36:45]OFD Sender: Processing packet 72871 [packets to send 278, broken 277] [16:36:45]ProducePacketName [16:36:45]name=ofd_packets/00072871 [16:36:45]OFD Sender: To server: pG, [16:36:45]CommunicateWithHost lk.salyk.kg:30040 [16:36:45]ConnectInit lk.salyk.kg [16:36:45]written 0, free lines is 4095 [16:36:46]Write to MH i2c: 01 00 00 2D 01 2E [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 07 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 F2 0C 33 [16:36:46]RasterBufferAndPrint [16:36:46]line [16:36:46]line [16:36:46]line [16:36:46]line [16:36:46]line [16:36:46]written 0, free lines is 3324 [16:36:46]MH_Cut [16:36:46]Write to MH i2c: D1 01 00 34 01 01 07 [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: D1 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: D1 01 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: D1 01 00 34 01 00 06 [16:36:46]Write to MH i2c: 01 00 00 35 01 36 [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]*** Cut start [16:36:46]*** Partial cut [16:36:46]*** CUTSNS_PIN = 1 [16:36:46]*** CUTSNS_PIN = 0 [16:36:46]recv_with_timeout no data received [16:36:47]*** Brake cut motor [16:36:47]Read from MH i2c: 01 [16:36:47]MH_I2C_Read... [16:36:47]*** Stop cut motor [16:36:47]*** Cut end [16:36:47]Read from MH i2c: 01 07 00 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: 01 07 00 35 01 00 00 00 00 00 FF 0F 4B [16:36:47]process_action close_receipt done [16:36:47]requested_data is exist [16:36:47]produce_requested_data [16:36:47]requested_item fm.sn is exist - process it [16:36:47]wFMCommunicate request_size=4 [16:36:47]MH_SAM_APDU [16:36:47]CAPDU: 80 11 00 00 [16:36:47]Write to MH i2c: E2 08 00 36 01 80 11 00 00 00 00 00 00 B1 [16:36:47]Write i2c OK [16:36:47]MH_I2C_Read... [16:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:47]Read from MH i2c: E2 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: E2 17 00 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: E2 17 00 36 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 05 [16:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:36:47]wFMCommunicate OK [16:36:47]requested_item fd.num is exist - process it [16:36:47]SAM_PROTO_GetFieldsCounters [16:36:47]wFMCommunicate request_size=4 [16:36:47]MH_SAM_APDU [16:36:47]CAPDU: 80 13 00 00 [16:36:47]Write to MH i2c: E2 08 00 37 01 80 13 00 00 00 00 00 00 B4 [16:36:47]Write i2c OK [16:36:47]MH_I2C_Read... [16:36:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:47]Read from MH i2c: E2 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: E2 62 00 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: E2 62 00 37 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A7 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [16:36:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A7 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:47]wFMCommunicate OK [16:36:47]SAM_PROTO_GetFieldsCounters done [16:36:47]requested_item shift.num is exist - process it [16:36:47]requested_item shift.opened is exist - process it [16:36:47]req_shift_opened [16:36:47]FM_GetShiftState [16:36:47]SAM_PROTO_GetShiftState [16:36:47]wFMCommunicate request_size=4 [16:36:47]MH_SAM_APDU [16:36:47]CAPDU: 80 13 01 00 [16:36:47]Write to MH i2c: E2 08 00 38 01 80 13 01 00 00 00 00 00 B6 [16:36:47]Write i2c OK [16:36:47]MH_I2C_Read... [16:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:47]Read from MH i2c: E2 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: E2 0E 00 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: E2 0E 00 38 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 88 [16:36:47]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:36:47]wFMCommunicate OK [16:36:47]SAM_PROTO_GetShiftState done [16:36:47]FM_GetShiftState done [16:36:47]req_shift_opened done [16:36:47]requested_item shift.open_date is exist - process it [16:36:47]req_shift_open_date [16:36:47]req_shift_open_date done [16:36:47]produce_requested_data done [16:36:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72871,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [16:36:47]process_action_free close_receipt [16:36:47]json_value_free [16:36:47]json_value_free done [16:36:47]process_json_proto returns [16:36:47]Send response to host [16:36:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72871,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [16:36:47]free response buf [16:36:47]execute_script done [16:36:47]execute_script returns [16:36:47]free content buf [16:36:47]Sock 7.Close socket [16:36:47]Sock 7.Thread stoped [16:36:50]ConnectInit Can't take IP for lk.salyk.kg [16:36:50]CommunicateWithHost connect error [16:36:50]CommunicateWithHost err = -1 [16:36:50]OFD Sender: Server communicate error [16:36:55]OFD Sender: Processing packet 72871 [packets to send 278, broken 277] [16:36:55]ProducePacketName [16:36:55]name=ofd_packets/00072871 [16:36:55]OFD Sender: To server: pG, [16:36:55]CommunicateWithHost lk.salyk.kg:30040 [16:36:55]ConnectInit lk.salyk.kg [16:37:01]recv_with_timeout no data received [16:37:08]Connected sock=9 [16:37:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 9C 19 08 01 E5 3C 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9C 60 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1C 01 00 35 04 06 00 CE 97 F2 16 09 B2 1A B8 CD 14 15 9A FB 26 [16:37:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DF 75 47 00 BC 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1C 01 00 F4 03 04 00 6C 0B 22 67 B6 04 01 00 00 D7 6A BC 95 4A 6E F5 42 [16:37:10]CommunicateWithHost err = 0 [16:37:10]CheckOFDResponse [16:37:10]1017 (14) - 77093643461234 [16:37:10]1041 (16) - 0000000000874662 [16:37:10]1040 (4) - 72871 [16:37:10]1012 (4) - 30.10.2024 10:33 [16:37:10]1206 (1) - 0 [16:37:10]OFD Sender: Remove packet 72871 [16:37:10]ProducePacketName [16:37:10]name=ofd_packets/00072871 [16:37:10]NVStorageDeleteData [16:37:10]OFD Sender: No OFD packet to send [16:37:14]recv_with_timeout no data received [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:29]recv_with_timeout no data received [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:42]recv_with_timeout no data received [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:30]recv_with_timeout no data received [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:30]recv_with_timeout no data received [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:50]recv_with_timeout no data received [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:01]recv_with_timeout no data received [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:39]recv_with_timeout no data received [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:10]recv_with_timeout no data received [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:27]recv_with_timeout no data received [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:53]recv_with_timeout no data received [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:15]accept exits with 10 [16:44:15]New connection [16:44:15]New thread 3067559268 created [16:44:15]Thread 3067415908 joined [16:44:15]Waiting for new connection... [16:44:15] Sock 10.Parse request [16:44:15]Sock 10.Check first char [16:44:15]Sock 10.First char is OK [16:44:15]request: POST /json_proto HTTP/1.0 [16:44:15]Method: POST [16:44:15]URL: /json_proto [16:44:15]Method is POST - this is cgi request [16:44:15]url: /json_proto [16:44:15]query_string will be loaded in cgi processing [16:44:15]execute_cgi json_proto POST (null) [16:44:15]execute_cgi path=json_proto method=POST [16:44:15]POST find Content-Length [16:44:15]Host: 172.17.43.195:8080 [16:44:15]Content-Length: 824 [16:44:15]Content-Type: application/json [16:44:15] [16:44:15]POST finish read [16:44:15]Found Content-Length = 824 [16:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 20.470, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1400.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:15]execute_script... [16:44: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)952456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 20.470, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1400.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:15]POST & json_proto [16:44:15]process_json_proto [16:44:15]json parsed OK: [16:44:15]protocol is kg_v1.0 [16:44:15]action value=close_receipt [16:44:15]process_action close_receipt [16:44:15]cmd_close_receipt [16:44:15]MH_GetDate [16:44:15]Write to MH i2c: F0 00 00 39 01 29 [16:44:15]Write i2c OK [16:44:15]MH_I2C_Read... [16:44:15]Read from MH i2c: F0 [16:44:15]MH_I2C_Read... [16:44:15]Read from MH i2c: F0 09 00 [16:44:15]MH_I2C_Read... [16:44:15]Read from MH i2c: F0 09 00 39 01 00 60 62 22 67 74 2C AD 66 30 [16:44:15]GetLastDocTimeStamp 1730306204 [16:44:15]current date 1730306656 [16:44:15]FM_GetShiftState [16:44:15]SAM_PROTO_GetShiftState [16:44:15]wFMCommunicate request_size=4 [16:44:15]MH_SAM_APDU [16:44:15]CAPDU: 80 13 01 00 [16:44:15]Write to MH i2c: E2 08 00 3A 01 80 13 01 00 00 00 00 00 B8 [16:44:15]Write i2c OK [16:44:15]MH_I2C_Read... [16:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:15]Read from MH i2c: E2 [16:44:15]MH_I2C_Read... [16:44:15]Read from MH i2c: E2 0E 00 [16:44:15]MH_I2C_Read... [16:44:15]Read from MH i2c: E2 0E 00 3A 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 8A [16:44:15]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:44:15]wFMCommunicate OK [16:44:15]SAM_PROTO_GetShiftState done [16:44:15]FM_GetShiftState done [16:44:15]opened in 1730247109 [16:44:15]opened+sec_in_day 1730333509 [16:44:15]quantity*price = 140014 [16:44:15]sum+1 = 140016 [16:44:15]Check (price>sum+1) || (price+1 о реализуемом товаре [16:46:23]line ИТОГО: 1400.15 [16:46:23]line НСП 1% : 12.39 [16:46:23]line НДС 12% : 148.69 [16:46:23]line Наличными: 0.00 [16:46:23]line Безнал.: 1400.15 [16:46:23]line Место: АЗС № 113 "Партнер Нефть" [16:46:23]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:46:23]line СНО: Общий режим [16:46:23]line Чек 109 30.10.2024 16:44 [16:46:23]line Смена: 556 ФФД: 1.0 [16:46:23]line ЗНМ: 0300000087 [16:46:23]line РНМ: 0000000000091644 [16:46:23]line Версия ККМ: 001 [16:46:23]line Платежная система: АКБ Кыргызстан [16:46:23]line ФМ: 0000000000874662 [16:46:23]line ФД: 72872 [16:46:23]line ФПД: 217179289189875 [16:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164416&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72872&fm=217179289189875&tin=02508201610067®Number=0000000000091644&sum=140015 [16:46:23]written 0, free lines is 4095 [16:46:23]Write to MH i2c: 01 00 00 47 00 47 [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: 01 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: 01 07 00 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 FA 0C 54 [16:46:23]RasterBufferAndPrint [16:46:23]line [16:46:23]line [16:46:23]line [16:46:23]line [16:46:23]line [16:46:23]written 0, free lines is 3337 [16:46:23]MH_Cut [16:46:23]Write to MH i2c: D1 01 00 4E 00 01 20 [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: D1 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: D1 01 00 [16:46:23]MH_I2C_Read... [16:46:23]Read from MH i2c: D1 01 00 4E 00 00 1F [16:46:23]Write to MH i2c: 01 00 00 4F 00 4F [16:46:23]Write i2c OK [16:46:23]MH_I2C_Read... [16:46:24]*** Cut start [16:46:24]*** Partial cut [16:46:24]*** CUTSNS_PIN = 1 [16:46:24]*** CUTSNS_PIN = 0 [16:46:24]*** Brake cut motor [16:46:25]Read from MH i2c: 01 [16:46:25]MH_I2C_Read... [16:46:25]*** Stop cut motor [16:46:25]*** Cut end [16:46:25]Read from MH i2c: 01 07 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [16:46:25]process_action print_doc done [16:46:25]requested_data is exist [16:46:25]produce_requested_data [16:46:25]produce_requested_data return (null) [16:46:25]process_action_free print_doc [16:46:25]json_value_free [16:46:25]json_value_free done [16:46:25]process_json_proto returns [16:46:25]Send response to host [16:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [16:46:25]free response buf [16:46:25]execute_script done [16:46:25]execute_script returns [16:46:25]free content buf [16:46:25]Sock 9.Close socket [16:46:25]Sock 9.Thread stoped [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:11]recv_with_timeout no data received [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]recv_with_timeout no data received [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:00]recv_with_timeout no data received [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:16]accept exits with 10 [16:48:16]New connection [16:48:16]New thread 3066969444 created [16:48:16]Thread 3067112804 joined [16:48:16]Waiting for new connection... [16:48:16] Sock 10.Parse request [16:48:16]Sock 10.Check first char [16:48:16]Sock 10.First char is OK [16:48:16]request: POST /json_proto HTTP/1.0 [16:48:16]Method: POST [16:48:16]URL: /json_proto [16:48:16]Method is POST - this is cgi request [16:48:16]url: /json_proto [16:48:16]query_string will be loaded in cgi processing [16:48:16]execute_cgi json_proto POST (null) [16:48:16]execute_cgi path=json_proto method=POST [16:48:16]POST find Content-Length [16:48:16]Host: 172.17.43.195:8080 [16:48:16]Content-Length: 843 [16:48:16]Content-Type: application/json [16:48:16] [16:48:16]POST finish read [16:48:16]Found Content-Length = 843 [16:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:16]execute_script... [16:48:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:16]POST & json_proto [16:48:16]process_json_proto [16:48:16]json parsed OK: [16:48:16]protocol is kg_v1.0 [16:48:16]action value=close_receipt [16:48:16]process_action close_receipt [16:48:16]cmd_close_receipt [16:48:16]MH_GetDate [16:48:16]Write to MH i2c: F0 00 00 50 00 3F [16:48:16]Write i2c OK [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: F0 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: F0 09 00 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: F0 09 00 50 00 00 51 63 22 67 74 2C AD 66 38 [16:48:16]GetLastDocTimeStamp 1730306656 [16:48:16]current date 1730306897 [16:48:16]FM_GetShiftState [16:48:16]SAM_PROTO_GetShiftState [16:48:16]wFMCommunicate request_size=4 [16:48:16]MH_SAM_APDU [16:48:16]CAPDU: 80 13 01 00 [16:48:16]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [16:48:16]Write i2c OK [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: E2 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: E2 0E 00 [16:48:16]MH_I2C_Read... [16:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:16]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A0 [16:48:16]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:48:16]wFMCommunicate OK [16:48:16]SAM_PROTO_GetShiftState done [16:48:16]FM_GetShiftState done [16:48:16]opened in 1730247109 [16:48:16]opened+sec_in_day 1730333509 [16:48:16]quantity*price = 400012 [16:48:16]sum+1 = 400013 [16:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.12 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.12 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 110 30.10.2024 16:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72873 ФПД: 273704764724209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164817&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72873&fm=273704764724209&tin=02508201610067®Number=0000000000091644&sum=400012 [16:48:18]StoreToDocumentArchive [16:48:18]shift 556 fd 72873 [16:48:18]save to /storage/0556/doc_00072873 [16:48:18]save last doc name /storage/0556/doc_00072873 to /storage/kkm_last_doc_name [16:48:18]save OK [16:48:18]Clear old archive folders... [16:48:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:18]tlvbuf is 01E40100 [16:48:18]SAM_PROTO_ClearQueue [16:48:18]wFMCommunicate request_size=4 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 09 00 00 [16:48:18]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [16:48:18]RAPDU: 90 00 [16:48:18]wFMCommunicate OK [16:48:18]SAM_PROTO_ClearQueue done [16:48:18]KKMCreateOFDPacket [16:48:18]OFDProtocolAddRootSTLVToBuf [16:48:18]FM_MakeSignedData [16:48:18]FM_MakeSignedData [16:48:18]SAM_PROTO_SignData [16:48:18]wFMCommunicate request_size=4 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 0D 01 02 [16:48:18]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [16:48:18]RAPDU: 90 00 [16:48:18]wFMCommunicate OK [16:48:18]wFMCommunicate request_size=255 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 51 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1C 01 00 35 04 06 00 F8 [16:48:18]Write to MH i2c: E2 02 01 60 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 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 51 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1C 01 00 35 04 06 00 F8 00 00 74 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [16:48:18]RAPDU: 90 00 [16:48:18]wFMCommunicate OK [16:48:18]wFMCommunicate request_size=10 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 0D 02 02 05 EE DB 46 53 F1 [16:48:18]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 EE DB 46 53 F1 00 00 38 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [16:48:18]RAPDU: 90 00 [16:48:18]wFMCommunicate OK [16:48:18]wFMCommunicate request_size=4 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 0D 03 02 [16:48:18]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 0B 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 0B 00 62 00 00 55 D6 25 1F D9 BC 1F 4B 90 00 4C [16:48:18]RAPDU: 55 D6 25 1F D9 BC 1F 4B 90 00 [16:48:18]wFMCommunicate OK [16:48:18]SAM_PROTO_SignData done [16:48:18]FM_MakeSignedData done [16:48:18]CreateOFDProtocolMessage [16:48:18]wFMCommunicate request_size=4 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 11 00 00 [16:48:18]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 17 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [16:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:48:18]wFMCommunicate OK [16:48:18]CreateOFDProtocolMessage done [16:48:18]OFDSenderStorePacket 72873 [16:48:18]StoreOFDPacket docnum=72873 [16:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5E F7 07 01 15 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 51 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1C 01 00 35 04 06 00 F8 EE DB 46 53 F1 55 D6 25 1F D9 BC 1F 4B [16:48:18]CheckFolder [16:48:18]dirname=/storage/ofd_packets [16:48:18]CheckFolder done [16:48:18]ProducePacketName [16:48:18]name=ofd_packets/00072873 [16:48:18]NVStorageSaveData ofd_packets/00072873 [16:48:18]File name is /storage/ofd_packets/00072873 [16:48:18]Write 301 bytes [16:48:18]NVStorageSaveData done [16:48:18]OFDSenderStorePacket done [16:48:18]KKMCreateOFDPacket done [16:48:18]NVStorageSaveData kkm_last_timestamp [16:48:18]File name is /storage/kkm_last_timestamp [16:48:18]Write 4 bytes [16:48:18]NVStorageSaveData done [16:48:18]ExternCall_PrintAddStr [16:48:18]wPrintStart [16:48:18]Write to MH i2c: 01 00 00 64 00 64 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 07 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [16:48:18]RasterBufferAndPrint [16:48:18]line Счет N : (1)952457 [16:48:18]line ИНН: 02508201610067 [16:48:18]line Контрольно-Кассовый Чек [16:48:18]line ПРОДАЖА [16:48:18]line ТРК (МРК, ГНК) : 31 [16:48:18]line Товар: 2710124500 [16:48:18]line Аи-95-К-3 [16:48:18]line 53.910 * 74.20 [16:48:18]line = 4000.12 [16:48:18]line НДС 12% НСП 1% [16:48:18]line > о реализуемом товаре [16:48:18]line ИТОГО: 4000.12 [16:48:18]line НСП 1% : 35.40 [16:48:18]line НДС 12% : 424.79 [16:48:18]line Наличными: 0.00 [16:48:18]line Безнал.: 4000.12 [16:48:18]line Место: АЗС № 113 "Партнер Нефть" [16:48:18]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:48:18]line СНО: Общий режим [16:48:18]line Чек 110 30.10.2024 16:48 [16:48:18]line Смена: 556 ФФД: 1.0 [16:48:18]line ЗНМ: 0300000087 [16:48:18]line РНМ: 0000000000091644 [16:48:18]line Версия ККМ: 001 [16:48:18]line Платежная система: АКБ Кыргызстан [16:48:18]line ФМ: 0000000000874662 [16:48:18]line ФД: 72873 [16:48:18]line ФПД: 273704764724209 [16:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164817&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72873&fm=273704764724209&tin=02508201610067®Number=0000000000091644&sum=400012 [16:48:18]written 0, free lines is 4095 [16:48:18]OFD Sender: Processing packet 72873 [packets to send 278, broken 277] [16:48:18]ProducePacketName [16:48:18]name=ofd_packets/00072873 [16:48:18]OFD Sender: To server: pG, [16:48:18]CommunicateWithHost lk.salyk.kg:30040 [16:48:18]ConnectInit lk.salyk.kg [16:48:19]Write to MH i2c: 01 00 00 8E 00 8E [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: 01 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: 01 07 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 EA 0C 8B [16:48:19]RasterBufferAndPrint [16:48:19]line [16:48:19]line [16:48:19]line [16:48:19]line [16:48:19]line [16:48:19]written 0, free lines is 3312 [16:48:19]MH_Cut [16:48:19]Write to MH i2c: D1 01 00 95 00 01 67 [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: D1 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: D1 01 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: D1 01 00 95 00 00 66 [16:48:19]Write to MH i2c: 01 00 00 96 00 96 [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:20]*** Cut start [16:48:20]*** Partial cut [16:48:20]*** CUTSNS_PIN = 1 [16:48:20]*** CUTSNS_PIN = 0 [16:48:20]*** Brake cut motor [16:48:20]Read from MH i2c: 01 [16:48:20]MH_I2C_Read... [16:48:20]*** Stop cut motor [16:48:20]*** Cut end [16:48:20]Read from MH i2c: 01 07 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [16:48:20]process_action close_receipt done [16:48:20]requested_data is exist [16:48:20]produce_requested_data [16:48:20]requested_item fm.sn is exist - process it [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 11 00 00 [16:48:20]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 17 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 65 [16:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:48:20]wFMCommunicate OK [16:48:20]requested_item fd.num is exist - process it [16:48:20]SAM_PROTO_GetFieldsCounters [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 13 00 00 [16:48:20]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 62 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [16:48:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:20]wFMCommunicate OK [16:48:20]SAM_PROTO_GetFieldsCounters done [16:48:20]requested_item shift.num is exist - process it [16:48:20]requested_item shift.opened is exist - process it [16:48:20]req_shift_opened [16:48:20]FM_GetShiftState [16:48:20]SAM_PROTO_GetShiftState [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 13 01 00 [16:48:20]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 0E 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E8 [16:48:21]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:48:21]wFMCommunicate OK [16:48:21]SAM_PROTO_GetShiftState done [16:48:21]FM_GetShiftState done [16:48:21]req_shift_opened done [16:48:21]requested_item shift.open_date is exist - process it [16:48:21]req_shift_open_date [16:48:21]req_shift_open_date done [16:48:21]produce_requested_data done [16:48:21]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72873,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [16:48:21]process_action_free close_receipt [16:48:21]json_value_free [16:48:21]json_value_free done [16:48:21]process_json_proto returns [16:48:21]Send response to host [16:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72873,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [16:48:21]free response buf [16:48:21]execute_script done [16:48:21]execute_script returns [16:48:21]free content buf [16:48:21]Sock 10.Close socket [16:48:21]Sock 10.Thread stoped [16:48:37]recv_with_timeout no data received [16:48:47]recv_with_timeout no data received [16:50:33]ConnectInit Can't connect to host [16:50:33]CommunicateWithHost connect error [16:50:33]CommunicateWithHost err = -1 [16:50:33]OFD Sender: Server communicate error [16:50:38]OFD Sender: Processing packet 72873 [packets to send 278, broken 277] [16:50:38]ProducePacketName [16:50:38]name=ofd_packets/00072873 [16:50:38]OFD Sender: To server: pG, [16:50:38]CommunicateWithHost lk.salyk.kg:30040 [16:50:38]ConnectInit lk.salyk.kg [16:50:39]Connected sock=10 [16:50:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5E F7 07 01 15 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 51 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1C 01 00 35 04 06 00 F8 EE DB 46 53 F1 55 D6 25 1F D9 BC 1F 4B [16:50:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 42 FF 47 00 43 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1C 01 00 F4 03 04 00 96 0E 22 67 B6 04 01 00 00 28 F6 39 FA 64 50 95 F8 [16:50:40]CommunicateWithHost err = 0 [16:50:40]CheckOFDResponse [16:50:40]1017 (14) - 77093643461234 [16:50:40]1041 (16) - 0000000000874662 [16:50:40]1040 (4) - 72873 [16:50:40]1012 (4) - 30.10.2024 10:46 [16:50:40]1206 (1) - 0 [16:50:40]OFD Sender: Remove packet 72873 [16:50:40]ProducePacketName [16:50:40]name=ofd_packets/00072873 [16:50:40]NVStorageDeleteData [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]recv_with_timeout no data received [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:03]recv_with_timeout no data received [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:54:58]recv_with_timeout no data received [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:09]recv_with_timeout no data received [16:55:11]OFD Sender: No OFD packet to send [16:55:12]accept exits with 8 [16:55:12]New connection [16:55:12]New thread 3067112804 created [16:55:12]Thread 3066969444 joined [16:55:12]Waiting for new connection... [16:55:12] Sock 8.Parse request [16:55:12]Sock 8.Check first char [16:55:12]Sock 8.First char is OK [16:55:12]request: POST /json_proto HTTP/1.0 [16:55:12]Method: POST [16:55:12]URL: /json_proto [16:55:12]Method is POST - this is cgi request [16:55:12]url: /json_proto [16:55:12]query_string will be loaded in cgi processing [16:55:12]execute_cgi json_proto POST (null) [16:55:12]execute_cgi path=json_proto method=POST [16:55:12]POST find Content-Length [16:55:12]Host: 172.17.43.195:8080 [16:55:12]Content-Length: 658 [16:55:12]Content-Type: application/json [16:55:12] [16:55:12]POST finish read [16:55:12]Found Content-Length = 658 [16:55:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [16:55:12]execute_script... [16:55:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 8.780, "sum" : 600.55, "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" ] } } [16:55:12]POST & json_proto [16:55:12]process_json_proto [16:55:12]json parsed OK: [16:55:12]protocol is kg_v1.0 [16:55:12]action value=close_receipt [16:55:12]process_action close_receipt [16:55:12]cmd_close_receipt [16:55:12]MH_GetDate [16:55:12]Write to MH i2c: F0 00 00 9A 00 89 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: F0 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: F0 09 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: F0 09 00 9A 00 00 F1 64 22 67 74 2C AD 66 23 [16:55:12]GetLastDocTimeStamp 1730306897 [16:55:12]current date 1730307313 [16:55:12]FM_GetShiftState [16:55:12]SAM_PROTO_GetShiftState [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 13 01 00 [16:55:12]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 0E 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 EA [16:55:12]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:55:12]wFMCommunicate OK [16:55:12]SAM_PROTO_GetShiftState done [16:55:12]FM_GetShiftState done [16:55:12]opened in 1730247109 [16:55:12]opened+sec_in_day 1730333509 [16:55:12]quantity*price = 60055 [16:55:12]sum+1 = 60056 [16:55:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 111 30.10.2024 16:55 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72874 ФПД: 63530910144052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165513&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72874&fm=63530910144052&tin=02508201610067®Number=0000000000091644&sum=60000 [16:55:13]StoreToDocumentArchive [16:55:13]shift 556 fd 72874 [16:55:13]save to /storage/0556/doc_00072874 [16:55:13]save last doc name /storage/0556/doc_00072874 to /storage/kkm_last_doc_name [16:55:13]save OK [16:55:13]Clear old archive folders... [16:55:14]ProcessDocumentItem done err = 0, tmpTLVsize=244 [16:55:14]tlvbuf is 01E511E0 [16:55:14]SAM_PROTO_ClearQueue [16:55:14]wFMCommunicate request_size=4 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 09 00 00 [16:55:14]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 03 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [16:55:14]RAPDU: 90 00 [16:55:14]wFMCommunicate OK [16:55:14]SAM_PROTO_ClearQueue done [16:55:14]KKMCreateOFDPacket [16:55:14]OFDProtocolAddRootSTLVToBuf [16:55:14]FM_MakeSignedData [16:55:14]FM_MakeSignedData [16:55:14]SAM_PROTO_SignData [16:55:14]wFMCommunicate request_size=4 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 0D 01 02 [16:55:14]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 03 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [16:55:14]RAPDU: 90 00 [16:55:14]wFMCommunicate OK [16:55:14]wFMCommunicate request_size=253 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F1 64 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1C 01 00 35 04 06 00 39 C7 F1 54 D6 34 [16:55:14]Write to MH i2c: E2 00 01 AA 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F1 64 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1C 01 00 35 04 06 00 39 C7 F1 54 D6 34 00 00 91 [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 03 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [16:55:14]RAPDU: 90 00 [16:55:14]wFMCommunicate OK [16:55:14]wFMCommunicate request_size=4 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 0D 03 02 [16:55:14]Write to MH i2c: E2 08 00 AB 00 80 0D 03 02 00 00 00 00 26 [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 0B 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 0B 00 AB 00 00 64 D1 4D A3 18 95 E9 7C 90 00 5E [16:55:14]RAPDU: 64 D1 4D A3 18 95 E9 7C 90 00 [16:55:14]wFMCommunicate OK [16:55:14]SAM_PROTO_SignData done [16:55:14]FM_MakeSignedData done [16:55:14]CreateOFDProtocolMessage [16:55:14]wFMCommunicate request_size=4 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 11 00 00 [16:55:14]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 17 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7A [16:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:55:14]wFMCommunicate OK [16:55:14]CreateOFDProtocolMessage done [16:55:14]OFDSenderStorePacket 72874 [16:55:14]StoreOFDPacket docnum=72874 [16:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 20 EB 00 01 40 52 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F1 64 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1C 01 00 35 04 06 00 39 C7 F1 54 D6 34 64 D1 4D A3 18 95 E9 7C [16:55:14]CheckFolder [16:55:14]dirname=/storage/ofd_packets [16:55:14]CheckFolder done [16:55:14]ProducePacketName [16:55:14]name=ofd_packets/00072874 [16:55:14]NVStorageSaveData ofd_packets/00072874 [16:55:14]File name is /storage/ofd_packets/00072874 [16:55:14]Write 294 bytes [16:55:14]NVStorageSaveData done [16:55:14]OFDSenderStorePacket done [16:55:14]KKMCreateOFDPacket done [16:55:14]NVStorageSaveData kkm_last_timestamp [16:55:14]File name is /storage/kkm_last_timestamp [16:55:14]Write 4 bytes [16:55:14]NVStorageSaveData done [16:55:14]ExternCall_PrintAddStr [16:55:14]wPrintStart [16:55:14]Write to MH i2c: 01 00 00 AD 00 AD [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: 01 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: 01 07 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [16:55:14]RasterBufferAndPrint [16:55:14]line Счет N : (1)952458 [16:55:14]line ИНН: 02508201610067 [16:55:14]line Контрольно-Кассовый Чек [16:55:14]line ПРОДАЖА [16:55:14]line ТРК (МРК, ГНК) : 51 [16:55:14]line Товар: 50.50.0 [16:55:14]line Super 92 [16:55:14]line 8.780 * 68.40 [16:55:14]line = 600.55 [16:55:14]line НДС 12% НСП 1% [16:55:14]line > о реализуемом товаре [16:55:14]line ОКРУГЛЕНИЕ: -0.55 [16:55:14]line ИТОГО: 600.00 [16:55:14]line Внесено: 600.00 [16:55:14]line СДАЧА: 0.00 [16:55:14]line НСП 1% : 5.31 [16:55:14]line НДС 12% : 63.77 [16:55:14]line Наличными: 600.00 [16:55:14]line Безнал.: 0.00 [16:55:14]line Место: АЗС № 113 "Партнер Нефть" [16:55:14]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:55:14]line СНО: Общий режим [16:55:14]line Чек 111 30.10.2024 16:55 [16:55:14]line Смена: 556 ФФД: 1.0 [16:55:14]line ЗНМ: 0300000087 [16:55:14]line РНМ: 0000000000091644 [16:55:14]line Версия ККМ: 001 [16:55:14]line ФМ: 0000000000874662 [16:55:14]line ФД: 72874 [16:55:14]line ФПД: 63530910144052 [16:55:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165513&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72874&fm=63530910144052&tin=02508201610067®Number=0000000000091644&sum=60000 [16:55:14]OFD Sender: Processing packet 72874 [packets to send 278, broken 277] [16:55:14]ProducePacketName [16:55:14]name=ofd_packets/00072874 [16:55:14]OFD Sender: To server: pG, [16:55:14]CommunicateWithHost lk.salyk.kg:30040 [16:55:14]ConnectInit lk.salyk.kg [16:55:14]written 0, free lines is 4095 [16:55:15]Write to MH i2c: 01 00 00 D8 00 D8 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: 01 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: 01 07 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 D4 0C BF [16:55:15]RasterBufferAndPrint [16:55:15]line [16:55:15]line [16:55:15]line [16:55:15]line [16:55:15]line [16:55:15]written 0, free lines is 3288 [16:55:15]MH_Cut [16:55:15]Write to MH i2c: D1 01 00 DF 00 01 B1 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: D1 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: D1 01 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: D1 01 00 DF 00 00 B0 [16:55:15]Write to MH i2c: 01 00 00 E0 00 E0 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:16]*** Cut start [16:55:16]*** Partial cut [16:55:16]*** CUTSNS_PIN = 1 [16:55:16]*** CUTSNS_PIN = 0 [16:55:16]*** Brake cut motor [16:55:16]Read from MH i2c: 01 [16:55:16]MH_I2C_Read... [16:55:16]*** Stop cut motor [16:55:16]*** Cut end [16:55:16]Read from MH i2c: 01 07 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [16:55:16]process_action close_receipt done [16:55:16]requested_data is exist [16:55:16]produce_requested_data [16:55:16]requested_item fm.sn is exist - process it [16:55:16]wFMCommunicate request_size=4 [16:55:16]MH_SAM_APDU [16:55:16]CAPDU: 80 11 00 00 [16:55:16]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:16]Read from MH i2c: E2 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 17 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AF [16:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:55:16]wFMCommunicate OK [16:55:16]requested_item fd.num is exist - process it [16:55:16]SAM_PROTO_GetFieldsCounters [16:55:16]wFMCommunicate request_size=4 [16:55:16]MH_SAM_APDU [16:55:16]CAPDU: 80 13 00 00 [16:55:16]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:16]Read from MH i2c: E2 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 62 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 62 00 E2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AA 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [16:55:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AA 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:16]wFMCommunicate OK [16:55:16]SAM_PROTO_GetFieldsCounters done [16:55:16]requested_item shift.num is exist - process it [16:55:16]requested_item shift.opened is exist - process it [16:55:16]req_shift_opened [16:55:16]FM_GetShiftState [16:55:16]SAM_PROTO_GetShiftState [16:55:16]wFMCommunicate request_size=4 [16:55:16]MH_SAM_APDU [16:55:16]CAPDU: 80 13 01 00 [16:55:16]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:16]Read from MH i2c: E2 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 0E 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 32 [16:55:16]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [16:55:16]wFMCommunicate OK [16:55:16]SAM_PROTO_GetShiftState done [16:55:16]FM_GetShiftState done [16:55:16]req_shift_opened done [16:55:16]requested_item shift.open_date is exist - process it [16:55:16]req_shift_open_date [16:55:16]req_shift_open_date done [16:55:16]produce_requested_data done [16:55:16]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72874,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [16:55:16]process_action_free close_receipt [16:55:16]json_value_free [16:55:16]json_value_free done [16:55:16]process_json_proto returns [16:55:16]Send response to host [16:55:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72874,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [16:55:16]free response buf [16:55:16]execute_script done [16:55:16]execute_script returns [16:55:16]free content buf [16:55:16]Sock 8.Close socket [16:55:16]Sock 8.Thread stoped [16:55:20]Connected sock=11 [16:55:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 20 EB 00 01 40 52 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 97 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 F1 64 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1C 01 00 35 04 06 00 39 C7 F1 54 D6 34 64 D1 4D A3 18 95 E9 7C [16:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0D 29 47 00 58 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 38 37 34 36 36 32 10 04 04 00 AA 1C 01 00 F4 03 04 00 AF 0F 22 67 B6 04 01 00 00 D6 E1 A0 C0 6A 94 BF EE [16:55:20]CommunicateWithHost err = 0 [16:55:20]CheckOFDResponse [16:55:20]1017 (14) - 77093643461234 [16:55:20]1041 (16) - 0000000000874662 [16:55:20]1040 (4) - 72874 [16:55:20]1012 (4) - 30.10.2024 10:51 [16:55:20]1206 (1) - 0 [16:55:20]OFD Sender: Remove packet 72874 [16:55:20]ProducePacketName [16:55:20]name=ofd_packets/00072874 [16:55:20]NVStorageDeleteData [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:43]recv_with_timeout no data received [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:19]recv_with_timeout no data received [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:42]recv_with_timeout no data received [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:00]recv_with_timeout no data received [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:10]recv_with_timeout no data received [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:27]recv_with_timeout no data received [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:39]recv_with_timeout no data received [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:29]recv_with_timeout no data received [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:48]recv_with_timeout no data received [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [16:59:58]recv_with_timeout no data received [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:09]recv_with_timeout no data received [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:32]recv_with_timeout no data received [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:32]recv_with_timeout no data received [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:02]recv_with_timeout no data received [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:50]recv_with_timeout no data received [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:41]accept exits with 9 [17:06:41]New connection [17:06:41]New thread 3066969444 created [17:06:41]Thread 3067112804 joined [17:06:41]Waiting for new connection... [17:06:41] Sock 9.Parse request [17:06:41]Sock 9.Check first char [17:06:41]Sock 9.First char is OK [17:06:41]request: POST /json_proto HTTP/1.0 [17:06:41]Method: POST [17:06:41]URL: /json_proto [17:06:41]Method is POST - this is cgi request [17:06:41]url: /json_proto [17:06:41]query_string will be loaded in cgi processing [17:06:41]execute_cgi json_proto POST (null) [17:06:41]execute_cgi path=json_proto method=POST [17:06:41]POST find Content-Length [17:06:41]Host: 172.17.43.195:8080 [17:06:41]Content-Length: 792 [17:06:41]Content-Type: application/json [17:06:41] [17:06:41]POST finish read [17:06:41]Found Content-Length = 792 [17:06:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:41]execute_script... [17:06:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:41]POST & json_proto [17:06:41]process_json_proto [17:06:41]json parsed OK: [17:06:41]protocol is kg_v1.0 [17:06:41]action value=close_receipt [17:06:41]process_action close_receipt [17:06:41]cmd_close_receipt [17:06:41]MH_GetDate [17:06:41]Write to MH i2c: F0 00 00 E4 00 D3 [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: F0 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: F0 09 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: F0 09 00 E4 00 00 A2 67 22 67 74 2C AD 66 21 [17:06:41]GetLastDocTimeStamp 1730307313 [17:06:41]current date 1730308002 [17:06:41]FM_GetShiftState [17:06:41]SAM_PROTO_GetShiftState [17:06:41]wFMCommunicate request_size=4 [17:06:41]MH_SAM_APDU [17:06:41]CAPDU: 80 13 01 00 [17:06:41]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [17:06:41]Write i2c OK [17:06:41]MH_I2C_Read... [17:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:41]Read from MH i2c: E2 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 0E 00 [17:06:41]MH_I2C_Read... [17:06:41]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 34 [17:06:41]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:06:41]wFMCommunicate OK [17:06:41]SAM_PROTO_GetShiftState done [17:06:41]FM_GetShiftState done [17:06:41]opened in 1730247109 [17:06:41]opened+sec_in_day 1730333509 [17:06:41]quantity*price = 0 [17:06:41]sum+1 = 1 [17:06:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 112 30.10.2024 17:06 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72875 ФПД: 160243788211117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170642&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72875&fm=160243788211117&tin=02508201610067®Number=0000000000091644&sum=0 [17:06:42]StoreToDocumentArchive [17:06:42]shift 556 fd 72875 [17:06:42]save to /storage/0556/doc_00072875 [17:06:42]save last doc name /storage/0556/doc_00072875 to /storage/kkm_last_doc_name [17:06:42]save OK [17:06:42]Clear old archive folders... [17:06:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:42]tlvbuf is 01E47A00 [17:06:42]SAM_PROTO_ClearQueue [17:06:42]wFMCommunicate request_size=4 [17:06:42]MH_SAM_APDU [17:06:42]CAPDU: 80 09 00 00 [17:06:42]Write to MH i2c: E2 08 00 F2 00 80 09 00 00 00 00 00 00 64 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:42]Read from MH i2c: E2 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 03 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [17:06:42]RAPDU: 90 00 [17:06:42]wFMCommunicate OK [17:06:42]SAM_PROTO_ClearQueue done [17:06:42]KKMCreateOFDPacket [17:06:42]OFDProtocolAddRootSTLVToBuf [17:06:42]FM_MakeSignedData [17:06:42]FM_MakeSignedData [17:06:42]SAM_PROTO_SignData [17:06:42]wFMCommunicate request_size=4 [17:06:42]MH_SAM_APDU [17:06:42]CAPDU: 80 0D 01 02 [17:06:42]Write to MH i2c: E2 08 00 F3 00 80 0D 01 02 00 00 00 00 6C [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [17:06:43]RAPDU: 90 00 [17:06:43]wFMCommunicate OK [17:06:43]wFMCommunicate request_size=255 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 A2 67 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1C 01 00 35 04 06 00 91 [17:06:43]Write to MH i2c: E2 02 01 F4 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 70 00 00 00 F4 03 04 00 A2 67 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1C 01 00 35 04 06 00 91 00 00 36 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [17:06:43]RAPDU: 90 00 [17:06:43]wFMCommunicate OK [17:06:43]wFMCommunicate request_size=10 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 0D 02 02 05 BD AA 12 E3 AD [17:06:43]Write to MH i2c: E2 0D 00 F5 00 80 0D 02 02 05 00 BD AA 12 E3 AD 00 00 82 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [17:06:43]RAPDU: 90 00 [17:06:43]wFMCommunicate OK [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 0D 03 02 [17:06:43]Write to MH i2c: E2 08 00 F6 00 80 0D 03 02 00 00 00 00 71 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 0B 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 0B 00 F6 00 00 A1 BE 29 AF 8D 32 B1 15 90 00 2E [17:06:43]RAPDU: A1 BE 29 AF 8D 32 B1 15 90 00 [17:06:43]wFMCommunicate OK [17:06:43]SAM_PROTO_SignData done [17:06:43]FM_MakeSignedData done [17:06:43]CreateOFDProtocolMessage [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 11 00 00 [17:06:43]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 17 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [17:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:06:43]wFMCommunicate OK [17:06:43]CreateOFDProtocolMessage done [17:06:43]OFDSenderStorePacket 72875 [17:06:43]StoreOFDPacket docnum=72875 [17:06:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AF ED 07 01 0D F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 70 00 00 00 F4 03 04 00 A2 67 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1C 01 00 35 04 06 00 91 BD AA 12 E3 AD A1 BE 29 AF 8D 32 B1 15 [17:06:43]CheckFolder [17:06:43]dirname=/storage/ofd_packets [17:06:43]CheckFolder done [17:06:43]ProducePacketName [17:06:43]name=ofd_packets/00072875 [17:06:43]NVStorageSaveData ofd_packets/00072875 [17:06:43]File name is /storage/ofd_packets/00072875 [17:06:43]Write 301 bytes [17:06:43]NVStorageSaveData done [17:06:43]OFDSenderStorePacket done [17:06:43]KKMCreateOFDPacket done [17:06:43]NVStorageSaveData kkm_last_timestamp [17:06:43]File name is /storage/kkm_last_timestamp [17:06:43]Write 4 bytes [17:06:43]NVStorageSaveData done [17:06:43]ExternCall_PrintAddStr [17:06:43]wPrintStart [17:06:43]Write to MH i2c: 01 00 00 F8 00 F8 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: 01 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: 01 07 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [17:06:43]RasterBufferAndPrint [17:06:43]line Счет N : (1)952460 [17:06:43]line ИНН: 02508201610067 [17:06:43]line Контрольно-Кассовый Чек [17:06:43]line ПРОДАЖА [17:06:43]line ТРК (МРК, ГНК) : 53 [17:06:43]line Товар: 2710124130 [17:06:43]line Аи-92-К-5 [17:06:43]line 10.000 * 0.00 [17:06:43]line = 0.00 [17:06:43]line НДС 12% НСП 1% [17:06:43]line > о реализуемом товаре [17:06:43]line ИТОГО: 0.00 [17:06:43]line НСП 1% : 0.00 [17:06:43]line НДС 12% : 0.00 [17:06:43]line Наличными: 0.00 [17:06:43]line Безнал.: 0.00 [17:06:43]line Место: АЗС № 113 "Партнер Нефть" [17:06:43]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:06:43]line СНО: Общий режим [17:06:43]line Чек 112 30.10.2024 17:06 [17:06:43]line Смена: 556 ФФД: 1.0 [17:06:43]line ЗНМ: 0300000087 [17:06:43]line РНМ: 0000000000091644 [17:06:43]line Версия ККМ: 001 [17:06:43]line Талоны: Топливная Карта [17:06:43]line 03047 [17:06:43]line ФМ: 0000000000874662 [17:06:43]line ФД: 72875 [17:06:43]line ФПД: 160243788211117 [17:06:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170642&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72875&fm=160243788211117&tin=02508201610067®Number=0000000000091644&sum=0 [17:06:43]written 0, free lines is 4095 [17:06:43]OFD Sender: Processing packet 72875 [packets to send 278, broken 277] [17:06:43]ProducePacketName [17:06:43]name=ofd_packets/00072875 [17:06:43]OFD Sender: To server: pG, [17:06:43]CommunicateWithHost lk.salyk.kg:30040 [17:06:43]ConnectInit lk.salyk.kg [17:06:43]Write to MH i2c: 01 00 00 22 01 23 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: 01 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: 01 07 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: 01 07 00 22 01 00 00 00 00 00 D7 0C 0D [17:06:43]RasterBufferAndPrint [17:06:43]line [17:06:43]line [17:06:43]line [17:06:43]line [17:06:43]line [17:06:43]written 0, free lines is 3293 [17:06:43]MH_Cut [17:06:43]Write to MH i2c: D1 01 00 29 01 01 FC [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: D1 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: D1 01 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: D1 01 00 29 01 00 FB [17:06:43]Write to MH i2c: 01 00 00 2A 01 2B [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:44]Connected sock=10 [17:06:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AF ED 07 01 0D F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 70 00 00 00 F4 03 04 00 A2 67 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1C 01 00 35 04 06 00 91 BD AA 12 E3 AD A1 BE 29 AF 8D 32 B1 15 [17:06:44]*** Cut start [17:06:44]*** Partial cut [17:06:44]*** CUTSNS_PIN = 1 [17:06:44]*** CUTSNS_PIN = 0 [17:06:44]*** Brake cut motor [17:06:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BC FE 47 00 63 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1C 01 00 F4 03 04 00 5B 12 22 67 B6 04 01 00 00 5A 30 21 C2 6D D1 54 FC [17:06:45]CommunicateWithHost err = 0 [17:06:45]CheckOFDResponse [17:06:45]1017 (14) - 77093643461234 [17:06:45]1041 (16) - 0000000000874662 [17:06:45]1040 (4) - 72875 [17:06:45]1012 (4) - 30.10.2024 11:02 [17:06:45]1206 (1) - 0 [17:06:45]OFD Sender: Remove packet 72875 [17:06:45]ProducePacketName [17:06:45]name=ofd_packets/00072875 [17:06:45]NVStorageDeleteData [17:06:45]Read from MH i2c: 01 [17:06:45]MH_I2C_Read... [17:06:45]*** Stop cut motor [17:06:45]*** Cut end [17:06:45]Read from MH i2c: 01 07 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 FF 0F 40 [17:06:45]process_action close_receipt done [17:06:45]requested_data is exist [17:06:45]produce_requested_data [17:06:45]requested_item fm.sn is exist - process it [17:06:45]wFMCommunicate request_size=4 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 11 00 00 [17:06:45]Write to MH i2c: E2 08 00 2B 01 80 11 00 00 00 00 00 00 A6 [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 17 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 17 00 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FA [17:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:06:45]wFMCommunicate OK [17:06:45]requested_item fd.num is exist - process it [17:06:45]SAM_PROTO_GetFieldsCounters [17:06:45]wFMCommunicate request_size=4 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 13 00 00 [17:06:45]Write to MH i2c: E2 08 00 2C 01 80 13 00 00 00 00 00 00 A9 [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 62 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 62 00 2C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [17:06:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:45]wFMCommunicate OK [17:06:45]SAM_PROTO_GetFieldsCounters done [17:06:45]requested_item shift.num is exist - process it [17:06:45]requested_item shift.opened is exist - process it [17:06:45]req_shift_opened [17:06:45]FM_GetShiftState [17:06:45]SAM_PROTO_GetShiftState [17:06:45]wFMCommunicate request_size=4 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 13 01 00 [17:06:45]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 0E 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 0E 00 2D 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 7D [17:06:45]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:06:45]wFMCommunicate OK [17:06:45]SAM_PROTO_GetShiftState done [17:06:45]FM_GetShiftState done [17:06:45]req_shift_opened done [17:06:45]requested_item shift.open_date is exist - process it [17:06:45]req_shift_open_date [17:06:45]req_shift_open_date done [17:06:45]produce_requested_data done [17:06:45]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72875,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:06:45]process_action_free close_receipt [17:06:45]json_value_free [17:06:45]json_value_free done [17:06:45]process_json_proto returns [17:06:45]Send response to host [17:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72875,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:06:45]free response buf [17:06:45]execute_script done [17:06:45]execute_script returns [17:06:45]free content buf [17:06:45]Sock 9.Close socket [17:06:45]Sock 9.Thread stoped [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:42]recv_with_timeout no data received [17:07:45]OFD Sender: No OFD packet to send [17:07:47]accept exits with 8 [17:07:47]New connection [17:07:47]New thread 3067112804 created [17:07:47]Thread 3066969444 joined [17:07:47]Waiting for new connection... [17:07:47] Sock 8.Parse request [17:07:47]Sock 8.Check first char [17:07:47]Sock 8.First char is OK [17:07:47]request: POST /json_proto HTTP/1.0 [17:07:47]Method: POST [17:07:47]URL: /json_proto [17:07:47]Method is POST - this is cgi request [17:07:47]url: /json_proto [17:07:47]query_string will be loaded in cgi processing [17:07:47]execute_cgi json_proto POST (null) [17:07:47]execute_cgi path=json_proto method=POST [17:07:47]POST find Content-Length [17:07:47]Host: 172.17.43.195:8080 [17:07:47]Content-Length: 677 [17:07:47]Content-Type: application/json [17:07:47] [17:07:47]POST finish read [17:07:47]Found Content-Length = 677 [17:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:47]execute_script... [17:07: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)952461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:47]POST & json_proto [17:07:47]process_json_proto [17:07:47]json parsed OK: [17:07:47]protocol is kg_v1.0 [17:07:47]action value=close_receipt [17:07:47]process_action close_receipt [17:07:47]cmd_close_receipt [17:07:47]MH_GetDate [17:07:47]Write to MH i2c: F0 00 00 2E 01 1E [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: F0 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: F0 09 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: F0 09 00 2E 01 00 E4 67 22 67 74 2C AD 66 AE [17:07:47]GetLastDocTimeStamp 1730308002 [17:07:47]current date 1730308068 [17:07:47]FM_GetShiftState [17:07:47]SAM_PROTO_GetShiftState [17:07:47]wFMCommunicate request_size=4 [17:07:47]MH_SAM_APDU [17:07:47]CAPDU: 80 13 01 00 [17:07:47]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [17:07:47]Write i2c OK [17:07:47]MH_I2C_Read... [17:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:47]Read from MH i2c: E2 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 0E 00 [17:07:47]MH_I2C_Read... [17:07:47]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 7F [17:07:47]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:07:47]wFMCommunicate OK [17:07:47]SAM_PROTO_GetShiftState done [17:07:47]FM_GetShiftState done [17:07:47]opened in 1730247109 [17:07:47]opened+sec_in_day 1730333509 [17:07:47]quantity*price = 20003 [17:07:47]sum+1 = 20004 [17:07:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 113 30.10.2024 17:07 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72876 ФПД: 221290398417851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170748&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72876&fm=221290398417851&tin=02508201610067®Number=0000000000091644&sum=20000 [17:07:49]StoreToDocumentArchive [17:07:49]shift 556 fd 72876 [17:07:49]save to /storage/0556/doc_00072876 [17:07:49]save last doc name /storage/0556/doc_00072876 to /storage/kkm_last_doc_name [17:07:49]save OK [17:07:49]Clear old archive folders... [17:07:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:07:49]tlvbuf is 01E475E0 [17:07:49]SAM_PROTO_ClearQueue [17:07:49]wFMCommunicate request_size=4 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 09 00 00 [17:07:49]Write to MH i2c: E2 08 00 3C 01 80 09 00 00 00 00 00 00 AF [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:49]Read from MH i2c: E2 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 03 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [17:07:49]RAPDU: 90 00 [17:07:49]wFMCommunicate OK [17:07:49]SAM_PROTO_ClearQueue done [17:07:49]KKMCreateOFDPacket [17:07:49]OFDProtocolAddRootSTLVToBuf [17:07:49]FM_MakeSignedData [17:07:49]FM_MakeSignedData [17:07:49]SAM_PROTO_SignData [17:07:49]wFMCommunicate request_size=4 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 0D 01 02 [17:07:49]Write to MH i2c: E2 08 00 3D 01 80 0D 01 02 00 00 00 00 B7 [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:49]Read from MH i2c: E2 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 03 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [17:07:49]RAPDU: 90 00 [17:07:49]wFMCommunicate OK [17:07:49]wFMCommunicate request_size=255 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E4 67 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1C 01 00 35 04 06 00 C9 [17:07:49]Write to MH i2c: E2 02 01 3E 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E4 67 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1C 01 00 35 04 06 00 C9 00 00 0D [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:49]Read from MH i2c: E2 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 03 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [17:07:49]RAPDU: 90 00 [17:07:49]wFMCommunicate OK [17:07:49]wFMCommunicate request_size=10 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 0D 02 02 05 43 2F 97 03 BB [17:07:49]Write to MH i2c: E2 0D 00 3F 01 80 0D 02 02 05 00 43 2F 97 03 BB 00 00 8B [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:49]Read from MH i2c: E2 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 03 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [17:07:49]RAPDU: 90 00 [17:07:49]wFMCommunicate OK [17:07:49]wFMCommunicate request_size=4 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 0D 03 02 [17:07:49]Write to MH i2c: E2 08 00 40 01 80 0D 03 02 00 00 00 00 BC [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:49]Read from MH i2c: E2 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 0B 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 0B 00 40 01 00 E7 1D 24 AC 7F EB E7 22 90 00 04 [17:07:49]RAPDU: E7 1D 24 AC 7F EB E7 22 90 00 [17:07:49]wFMCommunicate OK [17:07:49]SAM_PROTO_SignData done [17:07:49]FM_MakeSignedData done [17:07:49]CreateOFDProtocolMessage [17:07:49]wFMCommunicate request_size=4 [17:07:49]MH_SAM_APDU [17:07:49]CAPDU: 80 11 00 00 [17:07:49]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:49]Read from MH i2c: E2 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 17 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 10 [17:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:07:49]wFMCommunicate OK [17:07:49]CreateOFDProtocolMessage done [17:07:49]OFDSenderStorePacket 72876 [17:07:49]StoreOFDPacket docnum=72876 [17:07:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 36 84 07 01 74 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E4 67 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1C 01 00 35 04 06 00 C9 43 2F 97 03 BB E7 1D 24 AC 7F EB E7 22 [17:07:49]CheckFolder [17:07:49]dirname=/storage/ofd_packets [17:07:49]CheckFolder done [17:07:49]ProducePacketName [17:07:49]name=ofd_packets/00072876 [17:07:49]NVStorageSaveData ofd_packets/00072876 [17:07:49]File name is /storage/ofd_packets/00072876 [17:07:49]Write 301 bytes [17:07:49]NVStorageSaveData done [17:07:49]OFDSenderStorePacket done [17:07:49]KKMCreateOFDPacket done [17:07:49]NVStorageSaveData kkm_last_timestamp [17:07:49]File name is /storage/kkm_last_timestamp [17:07:49]Write 4 bytes [17:07:49]NVStorageSaveData done [17:07:49]ExternCall_PrintAddStr [17:07:49]wPrintStart [17:07:49]Write to MH i2c: 01 00 00 42 01 43 [17:07:49]Write i2c OK [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: 01 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: 01 07 00 [17:07:49]MH_I2C_Read... [17:07:49]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [17:07:49]RasterBufferAndPrint [17:07:49]line Счет N : (1)952461 [17:07:49]line ИНН: 02508201610067 [17:07:49]line Контрольно-Кассовый Чек [17:07:49]line ПРОДАЖА [17:07:49]line ТРК (МРК, ГНК) : 63 [17:07:49]line Товар: 2710124130 [17:07:49]line Аи-92-К-5 [17:07:49]line 2.990 * 66.90 [17:07:49]line = 200.03 [17:07:49]line НДС 12% НСП 1% [17:07:49]line > о реализуемом товаре [17:07:49]line ОКРУГЛЕНИЕ: -0.03 [17:07:49]line ИТОГО: 200.00 [17:07:49]line Внесено: 200.00 [17:07:49]line СДАЧА: 0.00 [17:07:49]line НСП 1% : 1.77 [17:07:49]line НДС 12% : 21.24 [17:07:49]line Наличными: 200.00 [17:07:49]line Безнал.: 0.00 [17:07:49]line Место: АЗС № 113 "Партнер Нефть" [17:07:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:07:49]line СНО: Общий режим [17:07:49]line Чек 113 30.10.2024 17:07 [17:07:49]line Смена: 556 ФФД: 1.0 [17:07:49]line ЗНМ: 0300000087 [17:07:49]line РНМ: 0000000000091644 [17:07:49]line Версия ККМ: 001 [17:07:49]line ФМ: 0000000000874662 [17:07:49]line ФД: 72876 [17:07:49]line ФПД: 221290398417851 [17:07:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170748&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72876&fm=221290398417851&tin=02508201610067®Number=0000000000091644&sum=20000 [17:07:49]written 0, free lines is 4095 [17:07:49]OFD Sender: Processing packet 72876 [packets to send 278, broken 277] [17:07:49]ProducePacketName [17:07:49]name=ofd_packets/00072876 [17:07:49]OFD Sender: To server: pG, [17:07:49]CommunicateWithHost lk.salyk.kg:30040 [17:07:49]ConnectInit lk.salyk.kg [17:07:50]Write to MH i2c: 01 00 00 6D 01 6E [17:07:50]Write i2c OK [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: 01 [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: 01 07 00 [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: 01 07 00 6D 01 00 00 00 00 00 D1 0C 52 [17:07:50]RasterBufferAndPrint [17:07:50]line [17:07:50]line [17:07:50]line [17:07:50]line [17:07:50]line [17:07:50]written 0, free lines is 3288 [17:07:50]MH_Cut [17:07:50]Write to MH i2c: D1 01 00 74 01 01 47 [17:07:50]Write i2c OK [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: D1 [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: D1 01 00 [17:07:50]MH_I2C_Read... [17:07:50]Read from MH i2c: D1 01 00 74 01 00 46 [17:07:50]Write to MH i2c: 01 00 00 75 01 76 [17:07:50]Write i2c OK [17:07:50]MH_I2C_Read... [17:07:51]*** Cut start [17:07:51]*** Partial cut [17:07:51]*** CUTSNS_PIN = 1 [17:07:51]*** CUTSNS_PIN = 0 [17:07:51]*** Brake cut motor [17:07:51]Read from MH i2c: 01 [17:07:51]MH_I2C_Read... [17:07:51]*** Stop cut motor [17:07:51]*** Cut end [17:07:51]Read from MH i2c: 01 07 00 [17:07:51]MH_I2C_Read... [17:07:51]Read from MH i2c: 01 07 00 75 01 00 00 00 00 00 FF 0F 8B [17:07:51]process_action close_receipt done [17:07:51]requested_data is exist [17:07:51]produce_requested_data [17:07:51]requested_item fm.sn is exist - process it [17:07:51]wFMCommunicate request_size=4 [17:07:51]MH_SAM_APDU [17:07:51]CAPDU: 80 11 00 00 [17:07:51]Write to MH i2c: E2 08 00 76 01 80 11 00 00 00 00 00 00 F1 [17:07:51]Write i2c OK [17:07:51]MH_I2C_Read... [17:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:51]Read from MH i2c: E2 [17:07:51]MH_I2C_Read... [17:07:51]Read from MH i2c: E2 17 00 [17:07:51]MH_I2C_Read... [17:07:51]Read from MH i2c: E2 17 00 76 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 45 [17:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:07:51]wFMCommunicate OK [17:07:51]requested_item fd.num is exist - process it [17:07:51]SAM_PROTO_GetFieldsCounters [17:07:51]wFMCommunicate request_size=4 [17:07:51]MH_SAM_APDU [17:07:51]CAPDU: 80 13 00 00 [17:07:51]Write to MH i2c: E2 08 00 77 01 80 13 00 00 00 00 00 00 F4 [17:07:51]Write i2c OK [17:07:51]MH_I2C_Read... [17:07:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:51]Read from MH i2c: E2 [17:07:51]MH_I2C_Read... [17:07:51]Read from MH i2c: E2 62 00 [17:07:51]MH_I2C_Read... [17:07:51]Read from MH i2c: E2 62 00 77 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AC 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [17:07:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AC 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:51]wFMCommunicate OK [17:07:51]SAM_PROTO_GetFieldsCounters done [17:07:51]requested_item shift.num is exist - process it [17:07:51]requested_item shift.opened is exist - process it [17:07:51]req_shift_opened [17:07:51]FM_GetShiftState [17:07:51]SAM_PROTO_GetShiftState [17:07:51]wFMCommunicate request_size=4 [17:07:51]MH_SAM_APDU [17:07:51]CAPDU: 80 13 01 00 [17:07:51]Write to MH i2c: E2 08 00 78 01 80 13 01 00 00 00 00 00 F6 [17:07:52]Write i2c OK [17:07:52]MH_I2C_Read... [17:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:52]Read from MH i2c: E2 [17:07:52]MH_I2C_Read... [17:07:52]Read from MH i2c: E2 0E 00 [17:07:52]MH_I2C_Read... [17:07:52]Read from MH i2c: E2 0E 00 78 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 C8 [17:07:52]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:07:52]wFMCommunicate OK [17:07:52]SAM_PROTO_GetShiftState done [17:07:52]FM_GetShiftState done [17:07:52]req_shift_opened done [17:07:52]requested_item shift.open_date is exist - process it [17:07:52]req_shift_open_date [17:07:52]req_shift_open_date done [17:07:52]produce_requested_data done [17:07:52]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72876,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:07:52]process_action_free close_receipt [17:07:52]json_value_free [17:07:52]json_value_free done [17:07:52]process_json_proto returns [17:07:52]Send response to host [17:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72876,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:07:52]free response buf [17:07:52]execute_script done [17:07:52]execute_script returns [17:07:52]free content buf [17:07:52]Sock 8.Close socket [17:07:52]Sock 8.Thread stoped [17:07:53]recv_with_timeout no data received [17:07:54]ConnectInit Can't take IP for lk.salyk.kg [17:07:54]CommunicateWithHost connect error [17:07:54]CommunicateWithHost err = -1 [17:07:54]OFD Sender: Server communicate error [17:07:59]OFD Sender: Processing packet 72876 [packets to send 278, broken 277] [17:07:59]ProducePacketName [17:07:59]name=ofd_packets/00072876 [17:07:59]OFD Sender: To server: pG, [17:07:59]CommunicateWithHost lk.salyk.kg:30040 [17:07:59]ConnectInit lk.salyk.kg [17:08:04]recv_with_timeout no data received [17:08:04]Connected sock=9 [17:08:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 36 84 07 01 74 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 E4 67 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1C 01 00 35 04 06 00 C9 43 2F 97 03 BB E7 1D 24 AC 7F EB E7 22 [17:08:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BE 0A 47 00 37 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 38 37 34 36 36 32 10 04 04 00 AC 1C 01 00 F4 03 04 00 AB 12 22 67 B6 04 01 00 00 F8 29 35 0E FB 36 E5 33 [17:08:05]CommunicateWithHost err = 0 [17:08:05]CheckOFDResponse [17:08:05]1017 (14) - 77093643461234 [17:08:05]1041 (16) - 0000000000874662 [17:08:05]1040 (4) - 72876 [17:08:05]1012 (4) - 30.10.2024 11:04 [17:08:05]1206 (1) - 0 [17:08:05]OFD Sender: Remove packet 72876 [17:08:05]ProducePacketName [17:08:05]name=ofd_packets/00072876 [17:08:05]NVStorageDeleteData [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:22]recv_with_timeout no data received [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]accept exits with 10 [17:09:05]New connection [17:09:05]New thread 3066969444 created [17:09:05]Thread 3067112804 joined [17:09:05]Waiting for new connection... [17:09:05] Sock 10.Parse request [17:09:05]Sock 10.Check first char [17:09:05]Sock 10.First char is OK [17:09:05]request: POST /json_proto HTTP/1.0 [17:09:05]Method: POST [17:09:05]URL: /json_proto [17:09:05]Method is POST - this is cgi request [17:09:05]url: /json_proto [17:09:05]query_string will be loaded in cgi processing [17:09:05]execute_cgi json_proto POST (null) [17:09:05]execute_cgi path=json_proto method=POST [17:09:05]POST find Content-Length [17:09:05]Host: 172.17.43.195:8080 [17:09:05]Content-Length: 792 [17:09:05]Content-Type: application/json [17:09:05] [17:09:05]POST finish read [17:09:05]Found Content-Length = 792 [17:09:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:05]execute_script... [17:09:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:05]POST & json_proto [17:09:05]process_json_proto [17:09:05]json parsed OK: [17:09:05]protocol is kg_v1.0 [17:09:05]action value=close_receipt [17:09:05]process_action close_receipt [17:09:05]cmd_close_receipt [17:09:05]MH_GetDate [17:09:05]Write to MH i2c: F0 00 00 79 01 69 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: F0 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: F0 09 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: F0 09 00 79 01 00 32 68 22 67 74 2C AD 66 48 [17:09:05]GetLastDocTimeStamp 1730308068 [17:09:05]current date 1730308146 [17:09:05]FM_GetShiftState [17:09:05]SAM_PROTO_GetShiftState [17:09:05]wFMCommunicate request_size=4 [17:09:05]MH_SAM_APDU [17:09:05]CAPDU: 80 13 01 00 [17:09:05]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [17:09:05]Write i2c OK [17:09:05]MH_I2C_Read... [17:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:05]Read from MH i2c: E2 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 [17:09:05]MH_I2C_Read... [17:09:05]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 CA [17:09:05]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:09:05]wFMCommunicate OK [17:09:05]SAM_PROTO_GetShiftState done [17:09:05]FM_GetShiftState done [17:09:05]opened in 1730247109 [17:09:05]opened+sec_in_day 1730333509 [17:09:05]quantity*price = 0 [17:09:05]sum+1 = 1 [17:09:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 114 30.10.2024 17:09 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72877 ФПД: 69697331822629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170906&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72877&fm=69697331822629&tin=02508201610067®Number=0000000000091644&sum=0 [17:09:06]StoreToDocumentArchive [17:09:06]shift 556 fd 72877 [17:09:06]save to /storage/0556/doc_00072877 [17:09:06]save last doc name /storage/0556/doc_00072877 to /storage/kkm_last_doc_name [17:09:06]save OK [17:09:06]Clear old archive folders... [17:09:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:06]tlvbuf is 01E38530 [17:09:06]SAM_PROTO_ClearQueue [17:09:06]wFMCommunicate request_size=4 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 09 00 00 [17:09:06]Write to MH i2c: E2 08 00 87 01 80 09 00 00 00 00 00 00 FA [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [17:09:06]RAPDU: 90 00 [17:09:06]wFMCommunicate OK [17:09:06]SAM_PROTO_ClearQueue done [17:09:06]KKMCreateOFDPacket [17:09:06]OFDProtocolAddRootSTLVToBuf [17:09:06]FM_MakeSignedData [17:09:06]FM_MakeSignedData [17:09:06]SAM_PROTO_SignData [17:09:06]wFMCommunicate request_size=4 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 0D 01 02 [17:09:06]Write to MH i2c: E2 08 00 88 01 80 0D 01 02 00 00 00 00 02 [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [17:09:06]RAPDU: 90 00 [17:09:06]wFMCommunicate OK [17:09:06]wFMCommunicate request_size=255 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 72 00 00 00 F4 03 04 00 32 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1C 01 00 35 04 06 00 3F [17:09:06]Write to MH i2c: E2 02 01 89 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 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 72 00 00 00 F4 03 04 00 32 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1C 01 00 35 04 06 00 3F 00 00 0F [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [17:09:06]RAPDU: 90 00 [17:09:06]wFMCommunicate OK [17:09:06]wFMCommunicate request_size=10 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 0D 02 02 05 63 AC B4 80 25 [17:09:06]Write to MH i2c: E2 0D 00 8A 01 80 0D 02 02 05 00 63 AC B4 80 25 00 00 77 [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [17:09:06]RAPDU: 90 00 [17:09:06]wFMCommunicate OK [17:09:06]wFMCommunicate request_size=4 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 0D 03 02 [17:09:06]Write to MH i2c: E2 08 00 8B 01 80 0D 03 02 00 00 00 00 07 [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 0B 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 0B 00 8B 01 00 BA B1 2E 7C 47 32 A6 14 90 00 50 [17:09:06]RAPDU: BA B1 2E 7C 47 32 A6 14 90 00 [17:09:06]wFMCommunicate OK [17:09:06]SAM_PROTO_SignData done [17:09:06]FM_MakeSignedData done [17:09:06]CreateOFDProtocolMessage [17:09:06]wFMCommunicate request_size=4 [17:09:06]MH_SAM_APDU [17:09:06]CAPDU: 80 11 00 00 [17:09:06]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:06]Read from MH i2c: E2 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 17 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [17:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:09:06]wFMCommunicate OK [17:09:06]CreateOFDProtocolMessage done [17:09:06]OFDSenderStorePacket 72877 [17:09:06]StoreOFDPacket docnum=72877 [17:09:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 42 FF 07 01 A8 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 32 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1C 01 00 35 04 06 00 3F 63 AC B4 80 25 BA B1 2E 7C 47 32 A6 14 [17:09:06]CheckFolder [17:09:06]dirname=/storage/ofd_packets [17:09:06]CheckFolder done [17:09:06]ProducePacketName [17:09:06]name=ofd_packets/00072877 [17:09:06]NVStorageSaveData ofd_packets/00072877 [17:09:06]File name is /storage/ofd_packets/00072877 [17:09:06]Write 301 bytes [17:09:06]NVStorageSaveData done [17:09:06]OFDSenderStorePacket done [17:09:06]KKMCreateOFDPacket done [17:09:06]NVStorageSaveData kkm_last_timestamp [17:09:06]File name is /storage/kkm_last_timestamp [17:09:06]Write 4 bytes [17:09:06]NVStorageSaveData done [17:09:06]ExternCall_PrintAddStr [17:09:06]wPrintStart [17:09:06]Write to MH i2c: 01 00 00 8D 01 8E [17:09:06]Write i2c OK [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: 01 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: 01 07 00 [17:09:06]MH_I2C_Read... [17:09:06]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [17:09:06]RasterBufferAndPrint [17:09:06]line Счет N : (1)952462 [17:09:06]line ИНН: 02508201610067 [17:09:06]line Контрольно-Кассовый Чек [17:09:06]line ПРОДАЖА [17:09:06]line ТРК (МРК, ГНК) : 53 [17:09:06]line Товар: 2710124130 [17:09:06]line Аи-92-К-5 [17:09:06]line 10.000 * 0.00 [17:09:06]line = 0.00 [17:09:06]line НДС 12% НСП 1% [17:09:06]line > о реализуемом товаре [17:09:06]line ИТОГО: 0.00 [17:09:06]line НСП 1% : 0.00 [17:09:06]line НДС 12% : 0.00 [17:09:06]line Наличными: 0.00 [17:09:06]line Безнал.: 0.00 [17:09:06]line Место: АЗС № 113 "Партнер Нефть" [17:09:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:09:06]line СНО: Общий режим [17:09:06]line Чек 114 30.10.2024 17:09 [17:09:06]line Смена: 556 ФФД: 1.0 [17:09:06]line ЗНМ: 0300000087 [17:09:06]line РНМ: 0000000000091644 [17:09:06]line Версия ККМ: 001 [17:09:06]line Талоны: Топливная Карта [17:09:06]line 03047 [17:09:06]line ФМ: 0000000000874662 [17:09:06]line ФД: 72877 [17:09:06]line ФПД: 69697331822629 [17:09:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170906&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72877&fm=69697331822629&tin=02508201610067®Number=0000000000091644&sum=0 [17:09:06]written 0, free lines is 4095 [17:09:06]OFD Sender: Processing packet 72877 [packets to send 278, broken 277] [17:09:06]ProducePacketName [17:09:06]name=ofd_packets/00072877 [17:09:06]OFD Sender: To server: pG, [17:09:06]CommunicateWithHost lk.salyk.kg:30040 [17:09:06]ConnectInit lk.salyk.kg [17:09:07]Write to MH i2c: 01 00 00 B7 01 B8 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 07 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: 01 07 00 B7 01 00 00 00 00 00 E2 0C AD [17:09:07]RasterBufferAndPrint [17:09:07]line [17:09:07]line [17:09:07]line [17:09:07]line [17:09:07]line [17:09:07]written 0, free lines is 3305 [17:09:07]MH_Cut [17:09:07]Write to MH i2c: D1 01 00 BE 01 01 91 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: D1 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: D1 01 00 [17:09:07]MH_I2C_Read... [17:09:07]Read from MH i2c: D1 01 00 BE 01 00 90 [17:09:07]Write to MH i2c: 01 00 00 BF 01 C0 [17:09:07]Write i2c OK [17:09:07]MH_I2C_Read... [17:09:08]*** Cut start [17:09:08]*** Partial cut [17:09:08]*** CUTSNS_PIN = 1 [17:09:08]*** CUTSNS_PIN = 0 [17:09:08]Connected sock=9 [17:09:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 42 FF 07 01 A8 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 32 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1C 01 00 35 04 06 00 3F 63 AC B4 80 25 BA B1 2E 7C 47 32 A6 14 [17:09:08]*** Brake cut motor [17:09:08]Read from MH i2c: 01 [17:09:08]MH_I2C_Read... [17:09:08]*** Stop cut motor [17:09:08]*** Cut end [17:09:08]Read from MH i2c: 01 07 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: 01 07 00 BF 01 00 00 00 00 00 FF 0F D5 [17:09:08]process_action close_receipt done [17:09:08]requested_data is exist [17:09:08]produce_requested_data [17:09:08]requested_item fm.sn is exist - process it [17:09:08]wFMCommunicate request_size=4 [17:09:08]MH_SAM_APDU [17:09:08]CAPDU: 80 11 00 00 [17:09:08]Write to MH i2c: E2 08 00 C0 01 80 11 00 00 00 00 00 00 3B [17:09:08]Write i2c OK [17:09:08]MH_I2C_Read... [17:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:08]Read from MH i2c: E2 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 17 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 17 00 C0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8F [17:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:09:08]wFMCommunicate OK [17:09:08]requested_item fd.num is exist - process it [17:09:08]SAM_PROTO_GetFieldsCounters [17:09:08]wFMCommunicate request_size=4 [17:09:08]MH_SAM_APDU [17:09:08]CAPDU: 80 13 00 00 [17:09:08]Write to MH i2c: E2 08 00 C1 01 80 13 00 00 00 00 00 00 3E [17:09:08]Write i2c OK [17:09:08]MH_I2C_Read... [17:09:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:08]Read from MH i2c: E2 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 62 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 62 00 C1 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AD 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [17:09:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AD 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:08]wFMCommunicate OK [17:09:08]SAM_PROTO_GetFieldsCounters done [17:09:08]requested_item shift.num is exist - process it [17:09:08]requested_item shift.opened is exist - process it [17:09:08]req_shift_opened [17:09:08]FM_GetShiftState [17:09:08]SAM_PROTO_GetShiftState [17:09:08]wFMCommunicate request_size=4 [17:09:08]MH_SAM_APDU [17:09:08]CAPDU: 80 13 01 00 [17:09:08]Write to MH i2c: E2 08 00 C2 01 80 13 01 00 00 00 00 00 40 [17:09:08]Write i2c OK [17:09:08]MH_I2C_Read... [17:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:08]Read from MH i2c: E2 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 0E 00 [17:09:08]MH_I2C_Read... [17:09:08]Read from MH i2c: E2 0E 00 C2 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 12 [17:09:08]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:09:08]wFMCommunicate OK [17:09:08]SAM_PROTO_GetShiftState done [17:09:08]FM_GetShiftState done [17:09:08]req_shift_opened done [17:09:08]requested_item shift.open_date is exist - process it [17:09:08]req_shift_open_date [17:09:08]req_shift_open_date done [17:09:08]produce_requested_data done [17:09:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72877,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:09:08]process_action_free close_receipt [17:09:08]json_value_free [17:09:08]json_value_free done [17:09:08]process_json_proto returns [17:09:08]Send response to host [17:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72877,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:09:08]free response buf [17:09:08]execute_script done [17:09:08]execute_script returns [17:09:08]free content buf [17:09:08]Sock 10.Close socket [17:09:08]Sock 10.Thread stoped [17:09:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 98 91 47 00 34 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1C 01 00 F4 03 04 00 EB 12 22 67 B6 04 01 00 00 D3 E9 9F 96 8C 88 D6 3F [17:09:10]CommunicateWithHost err = 0 [17:09:10]CheckOFDResponse [17:09:10]1017 (14) - 77093643461234 [17:09:10]1041 (16) - 0000000000874662 [17:09:10]1040 (4) - 72877 [17:09:10]1012 (4) - 30.10.2024 11:05 [17:09:10]1206 (1) - 0 [17:09:10]OFD Sender: Remove packet 72877 [17:09:10]ProducePacketName [17:09:10]name=ofd_packets/00072877 [17:09:10]NVStorageDeleteData [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:34]recv_with_timeout no data received [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:52]recv_with_timeout no data received [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:09]recv_with_timeout no data received [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:51]recv_with_timeout no data received [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:21]recv_with_timeout no data received [17:11:25]OFD Sender: No OFD packet to send [17:11:27]accept exits with 8 [17:11:27]New connection [17:11:27]New thread 3067112804 created [17:11:27]Thread 3066969444 joined [17:11:27]Waiting for new connection... [17:11:27] Sock 8.Parse request [17:11:27]Sock 8.Check first char [17:11:27]Sock 8.First char is OK [17:11:27]request: POST /json_proto HTTP/1.0 [17:11:27]Method: POST [17:11:27]URL: /json_proto [17:11:27]Method is POST - this is cgi request [17:11:27]url: /json_proto [17:11:27]query_string will be loaded in cgi processing [17:11:27]execute_cgi json_proto POST (null) [17:11:27]execute_cgi path=json_proto method=POST [17:11:27]POST find Content-Length [17:11:27]Host: 172.17.43.195:8080 [17:11:27]Content-Length: 841 [17:11:27]Content-Type: application/json [17:11:27] [17:11:27]POST finish read [17:11:27]Found Content-Length = 841 [17:11:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:27]execute_script... [17:11:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:27]POST & json_proto [17:11:27]process_json_proto [17:11:27]json parsed OK: [17:11:27]protocol is kg_v1.0 [17:11:27]action value=close_receipt [17:11:27]process_action close_receipt [17:11:27]cmd_close_receipt [17:11:27]MH_GetDate [17:11:27]Write to MH i2c: F0 00 00 C3 01 B3 [17:11:27]Write i2c OK [17:11:27]MH_I2C_Read... [17:11:27]Read from MH i2c: F0 [17:11:27]MH_I2C_Read... [17:11:27]Read from MH i2c: F0 09 00 [17:11:27]MH_I2C_Read... [17:11:27]Read from MH i2c: F0 09 00 C3 01 00 C0 68 22 67 74 2C AD 66 20 [17:11:27]GetLastDocTimeStamp 1730308146 [17:11:27]current date 1730308288 [17:11:27]FM_GetShiftState [17:11:27]SAM_PROTO_GetShiftState [17:11:27]wFMCommunicate request_size=4 [17:11:27]MH_SAM_APDU [17:11:27]CAPDU: 80 13 01 00 [17:11:27]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [17:11:27]Write i2c OK [17:11:27]MH_I2C_Read... [17:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:27]Read from MH i2c: E2 [17:11:27]MH_I2C_Read... [17:11:27]Read from MH i2c: E2 0E 00 [17:11:27]MH_I2C_Read... [17:11:27]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 14 [17:11:27]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:11:27]wFMCommunicate OK [17:11:27]SAM_PROTO_GetShiftState done [17:11:27]FM_GetShiftState done [17:11:27]opened in 1730247109 [17:11:27]opened+sec_in_day 1730333509 [17:11:27]quantity*price = 70044 [17:11:27]sum+1 = 70045 [17:11:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 115 30.10.2024 17:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72878 ФПД: 104366965090849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171128&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72878&fm=104366965090849&tin=02508201610067®Number=0000000000091644&sum=70044 [17:11:28]StoreToDocumentArchive [17:11:28]shift 556 fd 72878 [17:11:28]save to /storage/0556/doc_00072878 [17:11:28]save last doc name /storage/0556/doc_00072878 to /storage/kkm_last_doc_name [17:11:28]save OK [17:11:28]Clear old archive folders... [17:11:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:28]tlvbuf is 01E50490 [17:11:28]SAM_PROTO_ClearQueue [17:11:28]wFMCommunicate request_size=4 [17:11:28]MH_SAM_APDU [17:11:28]CAPDU: 80 09 00 00 [17:11:28]Write to MH i2c: E2 08 00 D1 01 80 09 00 00 00 00 00 00 44 [17:11:28]Write i2c OK [17:11:28]MH_I2C_Read... [17:11:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:28]Read from MH i2c: E2 [17:11:28]MH_I2C_Read... [17:11:28]Read from MH i2c: E2 03 00 [17:11:28]MH_I2C_Read... [17:11:28]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [17:11:28]RAPDU: 90 00 [17:11:28]wFMCommunicate OK [17:11:28]SAM_PROTO_ClearQueue done [17:11:28]KKMCreateOFDPacket [17:11:28]OFDProtocolAddRootSTLVToBuf [17:11:28]FM_MakeSignedData [17:11:28]FM_MakeSignedData [17:11:28]SAM_PROTO_SignData [17:11:28]wFMCommunicate request_size=4 [17:11:28]MH_SAM_APDU [17:11:28]CAPDU: 80 0D 01 02 [17:11:28]Write to MH i2c: E2 08 00 D2 01 80 0D 01 02 00 00 00 00 4C [17:11:28]Write i2c OK [17:11:28]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [17:11:29]RAPDU: 90 00 [17:11:29]wFMCommunicate OK [17:11:29]wFMCommunicate request_size=255 [17:11:29]MH_SAM_APDU [17:11:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C0 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1C 01 00 35 04 06 00 5E [17:11:29]Write to MH i2c: E2 02 01 D3 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C0 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1C 01 00 35 04 06 00 5E 00 00 BE [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [17:11:29]RAPDU: 90 00 [17:11:29]wFMCommunicate OK [17:11:29]wFMCommunicate request_size=10 [17:11:29]MH_SAM_APDU [17:11:29]CAPDU: 80 0D 02 02 05 EB D3 E1 6A 21 [17:11:29]Write to MH i2c: E2 0D 00 D4 01 80 0D 02 02 05 00 EB D3 E1 6A 21 00 00 83 [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [17:11:29]RAPDU: 90 00 [17:11:29]wFMCommunicate OK [17:11:29]wFMCommunicate request_size=4 [17:11:29]MH_SAM_APDU [17:11:29]CAPDU: 80 0D 03 02 [17:11:29]Write to MH i2c: E2 08 00 D5 01 80 0D 03 02 00 00 00 00 51 [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 0B 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 0B 00 D5 01 00 F3 2B 7F F3 29 51 92 5F 90 00 4D [17:11:29]RAPDU: F3 2B 7F F3 29 51 92 5F 90 00 [17:11:29]wFMCommunicate OK [17:11:29]SAM_PROTO_SignData done [17:11:29]FM_MakeSignedData done [17:11:29]CreateOFDProtocolMessage [17:11:29]wFMCommunicate request_size=4 [17:11:29]MH_SAM_APDU [17:11:29]CAPDU: 80 11 00 00 [17:11:29]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:29]Read from MH i2c: E2 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 17 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A5 [17:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:11:29]wFMCommunicate OK [17:11:29]CreateOFDProtocolMessage done [17:11:29]OFDSenderStorePacket 72878 [17:11:29]StoreOFDPacket docnum=72878 [17:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 51 9E 07 01 29 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C0 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1C 01 00 35 04 06 00 5E EB D3 E1 6A 21 F3 2B 7F F3 29 51 92 5F [17:11:29]CheckFolder [17:11:29]dirname=/storage/ofd_packets [17:11:29]CheckFolder done [17:11:29]ProducePacketName [17:11:29]name=ofd_packets/00072878 [17:11:29]NVStorageSaveData ofd_packets/00072878 [17:11:29]File name is /storage/ofd_packets/00072878 [17:11:29]Write 301 bytes [17:11:29]NVStorageSaveData done [17:11:29]OFDSenderStorePacket done [17:11:29]KKMCreateOFDPacket done [17:11:29]NVStorageSaveData kkm_last_timestamp [17:11:29]File name is /storage/kkm_last_timestamp [17:11:29]Write 4 bytes [17:11:29]NVStorageSaveData done [17:11:29]ExternCall_PrintAddStr [17:11:29]wPrintStart [17:11:29]Write to MH i2c: 01 00 00 D7 01 D8 [17:11:29]Write i2c OK [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: 01 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: 01 07 00 [17:11:29]MH_I2C_Read... [17:11:29]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [17:11:29]RasterBufferAndPrint [17:11:29]line Счет N : (1)952463 [17:11:29]line ИНН: 02508201610067 [17:11:29]line Контрольно-Кассовый Чек [17:11:29]line ПРОДАЖА [17:11:29]line ТРК (МРК, ГНК) : 63 [17:11:29]line Товар: 2710124130 [17:11:29]line Аи-92-К-5 [17:11:29]line 10.470 * 66.90 [17:11:29]line = 700.44 [17:11:29]line НДС 12% НСП 1% [17:11:29]line > о реализуемом товаре [17:11:29]line ИТОГО: 700.44 [17:11:29]line НСП 1% : 6.20 [17:11:29]line НДС 12% : 74.38 [17:11:29]line Наличными: 0.00 [17:11:29]line Безнал.: 700.44 [17:11:29]line Место: АЗС № 113 "Партнер Нефть" [17:11:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:11:29]line СНО: Общий режим [17:11:29]line Чек 115 30.10.2024 17:11 [17:11:29]line Смена: 556 ФФД: 1.0 [17:11:29]line ЗНМ: 0300000087 [17:11:29]line РНМ: 0000000000091644 [17:11:29]line Версия ККМ: 001 [17:11:29]line Платежная система: АКБ Кыргызстан [17:11:29]line ФМ: 0000000000874662 [17:11:29]line ФД: 72878 [17:11:29]line ФПД: 104366965090849 [17:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171128&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72878&fm=104366965090849&tin=02508201610067®Number=0000000000091644&sum=70044 [17:11:29]written 0, free lines is 4095 [17:11:29]OFD Sender: Processing packet 72878 [packets to send 278, broken 277] [17:11:29]ProducePacketName [17:11:29]name=ofd_packets/00072878 [17:11:29]OFD Sender: To server: pG, [17:11:29]CommunicateWithHost lk.salyk.kg:30040 [17:11:29]ConnectInit lk.salyk.kg [17:11:30]Write to MH i2c: 01 00 00 01 02 03 [17:11:30]Write i2c OK [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: 01 [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: 01 07 00 [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: 01 07 00 01 02 00 00 00 00 00 EA 0C 00 [17:11:30]RasterBufferAndPrint [17:11:30]line [17:11:30]line [17:11:30]line [17:11:30]line [17:11:30]line [17:11:30]written 0, free lines is 3312 [17:11:30]MH_Cut [17:11:30]Write to MH i2c: D1 01 00 08 02 01 DC [17:11:30]Write i2c OK [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: D1 [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: D1 01 00 [17:11:30]MH_I2C_Read... [17:11:30]Read from MH i2c: D1 01 00 08 02 00 DB [17:11:30]Write to MH i2c: 01 00 00 09 02 0B [17:11:30]Write i2c OK [17:11:30]MH_I2C_Read... [17:11:31]*** Cut start [17:11:31]*** Partial cut [17:11:31]*** CUTSNS_PIN = 1 [17:11:31]*** CUTSNS_PIN = 0 [17:11:31]Connected sock=11 [17:11:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 51 9E 07 01 29 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 C0 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1C 01 00 35 04 06 00 5E EB D3 E1 6A 21 F3 2B 7F F3 29 51 92 5F [17:11:31]*** Brake cut motor [17:11:31]Read from MH i2c: 01 [17:11:31]MH_I2C_Read... [17:11:31]*** Stop cut motor [17:11:31]*** Cut end [17:11:31]Read from MH i2c: 01 07 00 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: 01 07 00 09 02 00 00 00 00 00 FF 0F 20 [17:11:31]process_action close_receipt done [17:11:31]requested_data is exist [17:11:31]produce_requested_data [17:11:31]requested_item fm.sn is exist - process it [17:11:31]wFMCommunicate request_size=4 [17:11:31]MH_SAM_APDU [17:11:31]CAPDU: 80 11 00 00 [17:11:31]Write to MH i2c: E2 08 00 0A 02 80 11 00 00 00 00 00 00 86 [17:11:31]Write i2c OK [17:11:31]MH_I2C_Read... [17:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:31]Read from MH i2c: E2 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: E2 17 00 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: E2 17 00 0A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DA [17:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:11:31]wFMCommunicate OK [17:11:31]requested_item fd.num is exist - process it [17:11:31]SAM_PROTO_GetFieldsCounters [17:11:31]wFMCommunicate request_size=4 [17:11:31]MH_SAM_APDU [17:11:31]CAPDU: 80 13 00 00 [17:11:31]Write to MH i2c: E2 08 00 0B 02 80 13 00 00 00 00 00 00 89 [17:11:31]Write i2c OK [17:11:31]MH_I2C_Read... [17:11:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6D E9 47 00 55 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1C 01 00 F4 03 04 00 7A 13 22 67 B6 04 01 00 00 03 43 88 5F FD E9 AC 03 [17:11:31]CommunicateWithHost err = 0 [17:11:31]CheckOFDResponse [17:11:31]1017 (14) - 77093643461234 [17:11:31]1041 (16) - 0000000000874662 [17:11:31]1040 (4) - 72878 [17:11:31]1012 (4) - 30.10.2024 11:07 [17:11:31]1206 (1) - 0 [17:11:31]OFD Sender: Remove packet 72878 [17:11:31]ProducePacketName [17:11:31]name=ofd_packets/00072878 [17:11:31]NVStorageDeleteData [17:11:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:31]Read from MH i2c: E2 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: E2 62 00 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: E2 62 00 0B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AE 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [17:11:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AE 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:31]wFMCommunicate OK [17:11:31]SAM_PROTO_GetFieldsCounters done [17:11:31]requested_item shift.num is exist - process it [17:11:31]requested_item shift.opened is exist - process it [17:11:31]req_shift_opened [17:11:31]FM_GetShiftState [17:11:31]SAM_PROTO_GetShiftState [17:11:31]wFMCommunicate request_size=4 [17:11:31]MH_SAM_APDU [17:11:31]CAPDU: 80 13 01 00 [17:11:31]Write to MH i2c: E2 08 00 0C 02 80 13 01 00 00 00 00 00 8B [17:11:31]Write i2c OK [17:11:31]MH_I2C_Read... [17:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:31]Read from MH i2c: E2 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: E2 0E 00 [17:11:31]MH_I2C_Read... [17:11:31]Read from MH i2c: E2 0E 00 0C 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 5D [17:11:31]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:11:31]wFMCommunicate OK [17:11:31]SAM_PROTO_GetShiftState done [17:11:31]FM_GetShiftState done [17:11:31]req_shift_opened done [17:11:31]requested_item shift.open_date is exist - process it [17:11:31]req_shift_open_date [17:11:31]req_shift_open_date done [17:11:31]produce_requested_data done [17:11:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72878,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:11:31]process_action_free close_receipt [17:11:31]json_value_free [17:11:31]json_value_free done [17:11:31]process_json_proto returns [17:11:31]Send response to host [17:11:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72878,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:11:31]free response buf [17:11:31]execute_script done [17:11:31]execute_script returns [17:11:31]free content buf [17:11:31]Sock 8.Close socket [17:11:31]Sock 8.Thread stoped [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:50]recv_with_timeout no data received [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:01]recv_with_timeout no data received [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]recv_with_timeout no data received [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:24]recv_with_timeout no data received [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:11]recv_with_timeout no data received [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:23]recv_with_timeout no data received [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:57]accept exits with 10 [17:18:57]New connection [17:18:57]New thread 3066969444 created [17:18:57]Thread 3067112804 joined [17:18:57]Waiting for new connection... [17:18:57] Sock 10.Parse request [17:18:57]Sock 10.Check first char [17:18:57]Sock 10.First char is OK [17:18:57]request: POST /json_proto HTTP/1.0 [17:18:57]Method: POST [17:18:57]URL: /json_proto [17:18:57]Method is POST - this is cgi request [17:18:57]url: /json_proto [17:18:57]query_string will be loaded in cgi processing [17:18:57]execute_cgi json_proto POST (null) [17:18:57]execute_cgi path=json_proto method=POST [17:18:57]POST find Content-Length [17:18:57]Host: 172.17.43.195:8080 [17:18:57]Content-Length: 658 [17:18:57]Content-Type: application/json [17:18:57] [17:18:57]POST finish read [17:18:57]Found Content-Length = 658 [17:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 3.660, "sum" : 250.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:57]execute_script... [17:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 3.660, "sum" : 250.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:57]POST & json_proto [17:18:57]process_json_proto [17:18:57]json parsed OK: [17:18:57]protocol is kg_v1.0 [17:18:57]action value=close_receipt [17:18:57]process_action close_receipt [17:18:57]cmd_close_receipt [17:18:57]MH_GetDate [17:18:57]Write to MH i2c: F0 00 00 0D 02 FE [17:18:57]Write i2c OK [17:18:57]MH_I2C_Read... [17:18:57]Read from MH i2c: F0 [17:18:57]MH_I2C_Read... [17:18:57]Read from MH i2c: F0 09 00 [17:18:57]MH_I2C_Read... [17:18:57]Read from MH i2c: F0 09 00 0D 02 00 82 6A 22 67 74 2C AD 66 2F [17:18:57]GetLastDocTimeStamp 1730308288 [17:18:57]current date 1730308738 [17:18:57]FM_GetShiftState [17:18:57]SAM_PROTO_GetShiftState [17:18:57]wFMCommunicate request_size=4 [17:18:57]MH_SAM_APDU [17:18:57]CAPDU: 80 13 01 00 [17:18:57]Write to MH i2c: E2 08 00 0E 02 80 13 01 00 00 00 00 00 8D [17:18:57]Write i2c OK [17:18:57]MH_I2C_Read... [17:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:57]Read from MH i2c: E2 [17:18:57]MH_I2C_Read... [17:18:57]Read from MH i2c: E2 0E 00 [17:18:57]MH_I2C_Read... [17:18:57]Read from MH i2c: E2 0E 00 0E 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 5F [17:18:57]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:18:57]wFMCommunicate OK [17:18:57]SAM_PROTO_GetShiftState done [17:18:57]FM_GetShiftState done [17:18:57]opened in 1730247109 [17:18:57]opened+sec_in_day 1730333509 [17:18:57]quantity*price = 25034 [17:18:57]sum+1 = 25035 [17:18:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 116 30.10.2024 17:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72879 ФПД: 233792232805990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171858&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72879&fm=233792232805990&tin=02508201610067®Number=0000000000091644&sum=25000 [17:18:58]StoreToDocumentArchive [17:18:58]shift 556 fd 72879 [17:18:58]save to /storage/0556/doc_00072879 [17:18:58]save last doc name /storage/0556/doc_00072879 to /storage/kkm_last_doc_name [17:18:58]save OK [17:18:58]Clear old archive folders... [17:18:58]ProcessDocumentItem done err = 0, tmpTLVsize=244 [17:18:58]tlvbuf is 01E3DF90 [17:18:58]SAM_PROTO_ClearQueue [17:18:58]wFMCommunicate request_size=4 [17:18:58]MH_SAM_APDU [17:18:58]CAPDU: 80 09 00 00 [17:18:58]Write to MH i2c: E2 08 00 1B 02 80 09 00 00 00 00 00 00 8F [17:18:58]Write i2c OK [17:18:58]MH_I2C_Read... [17:18:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:58]Read from MH i2c: E2 [17:18:58]MH_I2C_Read... [17:18:58]Read from MH i2c: E2 03 00 [17:18:58]MH_I2C_Read... [17:18:58]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [17:18:58]RAPDU: 90 00 [17:18:58]wFMCommunicate OK [17:18:58]SAM_PROTO_ClearQueue done [17:18:58]KKMCreateOFDPacket [17:18:58]OFDProtocolAddRootSTLVToBuf [17:18:58]FM_MakeSignedData [17:18:58]FM_MakeSignedData [17:18:58]SAM_PROTO_SignData [17:18:58]wFMCommunicate request_size=4 [17:18:58]MH_SAM_APDU [17:18:58]CAPDU: 80 0D 01 02 [17:18:58]Write to MH i2c: E2 08 00 1C 02 80 0D 01 02 00 00 00 00 97 [17:18:58]Write i2c OK [17:18:58]MH_I2C_Read... [17:18:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:58]Read from MH i2c: E2 [17:18:58]MH_I2C_Read... [17:18:58]Read from MH i2c: E2 03 00 [17:18:58]MH_I2C_Read... [17:18:58]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [17:18:58]RAPDU: 90 00 [17:18:58]wFMCommunicate OK [17:18:58]wFMCommunicate request_size=253 [17:18:58]MH_SAM_APDU [17:18:58]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 4C 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 82 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AF 1C 01 00 35 04 06 00 D4 A1 FE FC D6 66 [17:18:58]Write to MH i2c: E2 00 01 1D 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 4C 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 82 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AF 1C 01 00 35 04 06 00 D4 A1 FE FC D6 66 00 00 4A [17:18:58]Write i2c OK [17:18:58]MH_I2C_Read... [17:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:59]Read from MH i2c: E2 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: E2 03 00 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [17:18:59]RAPDU: 90 00 [17:18:59]wFMCommunicate OK [17:18:59]wFMCommunicate request_size=4 [17:18:59]MH_SAM_APDU [17:18:59]CAPDU: 80 0D 03 02 [17:18:59]Write to MH i2c: E2 08 00 1E 02 80 0D 03 02 00 00 00 00 9B [17:18:59]Write i2c OK [17:18:59]MH_I2C_Read... [17:18:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:59]Read from MH i2c: E2 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: E2 0B 00 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: E2 0B 00 1E 02 00 F9 83 45 92 4B 27 65 C3 90 00 89 [17:18:59]RAPDU: F9 83 45 92 4B 27 65 C3 90 00 [17:18:59]wFMCommunicate OK [17:18:59]SAM_PROTO_SignData done [17:18:59]FM_MakeSignedData done [17:18:59]CreateOFDProtocolMessage [17:18:59]wFMCommunicate request_size=4 [17:18:59]MH_SAM_APDU [17:18:59]CAPDU: 80 11 00 00 [17:18:59]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [17:18:59]Write i2c OK [17:18:59]MH_I2C_Read... [17:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:59]Read from MH i2c: E2 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: E2 17 00 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EF [17:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:18:59]wFMCommunicate OK [17:18:59]CreateOFDProtocolMessage done [17:18:59]OFDSenderStorePacket 72879 [17:18:59]StoreOFDPacket docnum=72879 [17:18:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 5E C9 00 01 9D 43 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 4C 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 82 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AF 1C 01 00 35 04 06 00 D4 A1 FE FC D6 66 F9 83 45 92 4B 27 65 C3 [17:18:59]CheckFolder [17:18:59]dirname=/storage/ofd_packets [17:18:59]CheckFolder done [17:18:59]ProducePacketName [17:18:59]name=ofd_packets/00072879 [17:18:59]NVStorageSaveData ofd_packets/00072879 [17:18:59]File name is /storage/ofd_packets/00072879 [17:18:59]Write 294 bytes [17:18:59]NVStorageSaveData done [17:18:59]OFDSenderStorePacket done [17:18:59]KKMCreateOFDPacket done [17:18:59]NVStorageSaveData kkm_last_timestamp [17:18:59]File name is /storage/kkm_last_timestamp [17:18:59]Write 4 bytes [17:18:59]NVStorageSaveData done [17:18:59]ExternCall_PrintAddStr [17:18:59]wPrintStart [17:18:59]Write to MH i2c: 01 00 00 20 02 22 [17:18:59]Write i2c OK [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: 01 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: 01 07 00 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [17:18:59]RasterBufferAndPrint [17:18:59]line Счет N : (1)952465 [17:18:59]line ИНН: 02508201610067 [17:18:59]line Контрольно-Кассовый Чек [17:18:59]line ПРОДАЖА [17:18:59]line ТРК (МРК, ГНК) : 51 [17:18:59]line Товар: 50.50.0 [17:18:59]line Super 92 [17:18:59]line 3.660 * 68.40 [17:18:59]line = 250.34 [17:18:59]line НДС 12% НСП 1% [17:18:59]line > о реализуемом товаре [17:18:59]line ОКРУГЛЕНИЕ: -0.34 [17:18:59]line ИТОГО: 250.00 [17:18:59]line Внесено: 250.00 [17:18:59]line СДАЧА: 0.00 [17:18:59]line НСП 1% : 2.21 [17:18:59]line НДС 12% : 26.58 [17:18:59]line Наличными: 250.00 [17:18:59]line Безнал.: 0.00 [17:18:59]line Место: АЗС № 113 "Партнер Нефть" [17:18:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:18:59]line СНО: Общий режим [17:18:59]line Чек 116 30.10.2024 17:18 [17:18:59]line Смена: 556 ФФД: 1.0 [17:18:59]line ЗНМ: 0300000087 [17:18:59]line РНМ: 0000000000091644 [17:18:59]line Версия ККМ: 001 [17:18:59]line ФМ: 0000000000874662 [17:18:59]line ФД: 72879 [17:18:59]line ФПД: 233792232805990 [17:18:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171858&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72879&fm=233792232805990&tin=02508201610067®Number=0000000000091644&sum=25000 [17:18:59]OFD Sender: Processing packet 72879 [packets to send 278, broken 277] [17:18:59]ProducePacketName [17:18:59]name=ofd_packets/00072879 [17:18:59]OFD Sender: To server: pG, [17:18:59]CommunicateWithHost lk.salyk.kg:30040 [17:18:59]ConnectInit lk.salyk.kg [17:18:59]written 0, free lines is 4095 [17:18:59]Write to MH i2c: 01 00 00 4B 02 4D [17:18:59]Write i2c OK [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: 01 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: 01 07 00 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: 01 07 00 4B 02 00 00 00 00 00 DD 0C 3D [17:18:59]RasterBufferAndPrint [17:18:59]line [17:18:59]line [17:18:59]line [17:18:59]line [17:18:59]line [17:18:59]written 0, free lines is 3300 [17:18:59]MH_Cut [17:18:59]Write to MH i2c: D1 01 00 52 02 01 26 [17:18:59]Write i2c OK [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: D1 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: D1 01 00 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: D1 01 00 52 02 00 25 [17:18:59]Write to MH i2c: 01 00 00 53 02 55 [17:18:59]Write i2c OK [17:18:59]MH_I2C_Read... [17:19:00]*** Cut start [17:19:00]*** Partial cut [17:19:00]*** CUTSNS_PIN = 1 [17:19:00]*** CUTSNS_PIN = 0 [17:19:00]*** Brake cut motor [17:19:01]Read from MH i2c: 01 [17:19:01]MH_I2C_Read... [17:19:01]*** Stop cut motor [17:19:01]*** Cut end [17:19:01]Read from MH i2c: 01 07 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 07 00 53 02 00 00 00 00 00 FF 0F 6A [17:19:01]process_action close_receipt done [17:19:01]requested_data is exist [17:19:01]produce_requested_data [17:19:01]requested_item fm.sn is exist - process it [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 11 00 00 [17:19:01]Write to MH i2c: E2 08 00 54 02 80 11 00 00 00 00 00 00 D0 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 17 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 17 00 54 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 24 [17:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:19:01]wFMCommunicate OK [17:19:01]requested_item fd.num is exist - process it [17:19:01]SAM_PROTO_GetFieldsCounters [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 13 00 00 [17:19:01]Write to MH i2c: E2 08 00 55 02 80 13 00 00 00 00 00 00 D3 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 62 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 62 00 55 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AF 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [17:19:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AF 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:01]wFMCommunicate OK [17:19:01]SAM_PROTO_GetFieldsCounters done [17:19:01]requested_item shift.num is exist - process it [17:19:01]requested_item shift.opened is exist - process it [17:19:01]req_shift_opened [17:19:01]FM_GetShiftState [17:19:01]SAM_PROTO_GetShiftState [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 13 01 00 [17:19:01]Write to MH i2c: E2 08 00 56 02 80 13 01 00 00 00 00 00 D5 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 0E 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 0E 00 56 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A7 [17:19:01]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:19:01]wFMCommunicate OK [17:19:01]SAM_PROTO_GetShiftState done [17:19:01]FM_GetShiftState done [17:19:01]req_shift_opened done [17:19:01]requested_item shift.open_date is exist - process it [17:19:01]req_shift_open_date [17:19:01]req_shift_open_date done [17:19:01]produce_requested_data done [17:19:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72879,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:19:01]process_action_free close_receipt [17:19:01]json_value_free [17:19:01]json_value_free done [17:19:01]process_json_proto returns [17:19:01]Send response to host [17:19:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72879,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:19:01]free response buf [17:19:01]execute_script done [17:19:01]execute_script returns [17:19:01]free content buf [17:19:01]Sock 10.Close socket [17:19:01]Sock 10.Thread stoped [17:19:03]Connected sock=11 [17:19:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 5E C9 00 01 9D 43 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 4C 0E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CA 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 82 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AF 1C 01 00 35 04 06 00 D4 A1 FE FC D6 66 F9 83 45 92 4B 27 65 C3 [17:19:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 39 F5 47 00 40 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AF 1C 01 00 F4 03 04 00 3E 15 22 67 B6 04 01 00 00 17 0C 2C F9 92 39 13 93 [17:19:04]CommunicateWithHost err = 0 [17:19:04]CheckOFDResponse [17:19:04]1017 (14) - 77093643461234 [17:19:04]1041 (16) - 0000000000874662 [17:19:04]1040 (4) - 72879 [17:19:04]1012 (4) - 30.10.2024 11:15 [17:19:04]1206 (1) - 0 [17:19:04]OFD Sender: Remove packet 72879 [17:19:04]ProducePacketName [17:19:04]name=ofd_packets/00072879 [17:19:04]NVStorageDeleteData [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:40]accept exits with 8 [17:21:40]New connection [17:21:40]New thread 3067112804 created [17:21:40]Thread 3066969444 joined [17:21:40]Waiting for new connection... [17:21:40] Sock 8.Parse request [17:21:40]Sock 8.Check first char [17:21:40]Sock 8.First char is OK [17:21:40]request: POST /json_proto HTTP/1.0 [17:21:40]Method: POST [17:21:40]URL: /json_proto [17:21:40]Method is POST - this is cgi request [17:21:40]url: /json_proto [17:21:40]query_string will be loaded in cgi processing [17:21:40]execute_cgi json_proto POST (null) [17:21:40]execute_cgi path=json_proto method=POST [17:21:40]POST find Content-Length [17:21:40]Host: 172.17.43.195:8080 [17:21:40]Content-Length: 781 [17:21:40]Content-Type: application/json [17:21:40] [17:21:40]POST finish read [17:21:40]Found Content-Length = 781 [17:21:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 2.340, "sum" : 160.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 160.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:40]execute_script... [17:21: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)952466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 2.340, "sum" : 160.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 160.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:40]POST & json_proto [17:21:40]process_json_proto [17:21:40]json parsed OK: [17:21:40]protocol is kg_v1.0 [17:21:40]action value=close_receipt [17:21:40]process_action close_receipt [17:21:40]cmd_close_receipt [17:21:40]MH_GetDate [17:21:40]Write to MH i2c: F0 00 00 57 02 48 [17:21:40]Write i2c OK [17:21:40]MH_I2C_Read... [17:21:40]Read from MH i2c: F0 [17:21:40]MH_I2C_Read... [17:21:40]Read from MH i2c: F0 09 00 [17:21:40]MH_I2C_Read... [17:21:40]Read from MH i2c: F0 09 00 57 02 00 25 6B 22 67 74 2C AD 66 1D [17:21:40]GetLastDocTimeStamp 1730308738 [17:21:40]current date 1730308901 [17:21:40]FM_GetShiftState [17:21:40]SAM_PROTO_GetShiftState [17:21:40]wFMCommunicate request_size=4 [17:21:40]MH_SAM_APDU [17:21:40]CAPDU: 80 13 01 00 [17:21:40]Write to MH i2c: E2 08 00 58 02 80 13 01 00 00 00 00 00 D7 [17:21:40]Write i2c OK [17:21:40]MH_I2C_Read... [17:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:40]Read from MH i2c: E2 [17:21:40]MH_I2C_Read... [17:21:40]Read from MH i2c: E2 0E 00 [17:21:40]MH_I2C_Read... [17:21:40]Read from MH i2c: E2 0E 00 58 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A9 [17:21:40]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:21:40]wFMCommunicate OK [17:21:40]SAM_PROTO_GetShiftState done [17:21:40]FM_GetShiftState done [17:21:40]opened in 1730247109 [17:21:40]opened+sec_in_day 1730333509 [17:21:40]quantity*price = 16005 [17:21:40]sum+1 = 16007 [17:21:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 118 30.10.2024 17:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72881 ФПД: 227070961477245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172605&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72881&fm=227070961477245&tin=02508201610067®Number=0000000000091644&sum=0 [17:26:06]StoreToDocumentArchive [17:26:06]shift 556 fd 72881 [17:26:06]save to /storage/0556/doc_00072881 [17:26:06]save last doc name /storage/0556/doc_00072881 to /storage/kkm_last_doc_name [17:26:06]save OK [17:26:06]Clear old archive folders... [17:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:06]tlvbuf is 00A4EB10 [17:26:06]SAM_PROTO_ClearQueue [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 09 00 00 [17:26:06]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [17:26:06]RAPDU: 90 00 [17:26:06]wFMCommunicate OK [17:26:06]SAM_PROTO_ClearQueue done [17:26:06]KKMCreateOFDPacket [17:26:06]OFDProtocolAddRootSTLVToBuf [17:26:06]FM_MakeSignedData [17:26:06]FM_MakeSignedData [17:26:06]SAM_PROTO_SignData [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 0D 01 02 [17:26:06]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [17:26:06]RAPDU: 90 00 [17:26:06]wFMCommunicate OK [17:26:06]wFMCommunicate request_size=255 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1C 01 00 35 04 06 00 CE [17:26:06]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1C 01 00 35 04 06 00 CE 00 00 ED [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:26:06]RAPDU: 90 00 [17:26:06]wFMCommunicate OK [17:26:06]wFMCommunicate request_size=10 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 0D 02 02 05 85 13 FF 66 7D [17:26:06]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 85 13 FF 66 7D 00 00 2C [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:26:06]RAPDU: 90 00 [17:26:06]wFMCommunicate OK [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 0D 03 02 [17:26:06]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 0B 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 0B 00 2F 00 00 EB 22 C5 4F C9 98 2E 2B 90 00 86 [17:26:06]RAPDU: EB 22 C5 4F C9 98 2E 2B 90 00 [17:26:06]wFMCommunicate OK [17:26:06]SAM_PROTO_SignData done [17:26:06]FM_MakeSignedData done [17:26:06]CreateOFDProtocolMessage [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 11 00 00 [17:26:06]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 17 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [17:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:26:06]wFMCommunicate OK [17:26:06]CreateOFDProtocolMessage done [17:26:06]OFDSenderStorePacket 72881 [17:26:06]StoreOFDPacket docnum=72881 [17:26:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8D 7B 07 01 8C FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1C 01 00 35 04 06 00 CE 85 13 FF 66 7D EB 22 C5 4F C9 98 2E 2B [17:26:06]CheckFolder [17:26:06]dirname=/storage/ofd_packets [17:26:06]CheckFolder done [17:26:06]ProducePacketName [17:26:06]name=ofd_packets/00072881 [17:26:06]NVStorageSaveData ofd_packets/00072881 [17:26:06]File name is /storage/ofd_packets/00072881 [17:26:06]Write 301 bytes [17:26:06]NVStorageSaveData done [17:26:06]OFDSenderStorePacket done [17:26:06]KKMCreateOFDPacket done [17:26:06]NVStorageSaveData kkm_last_timestamp [17:26:06]File name is /storage/kkm_last_timestamp [17:26:06]Write 4 bytes [17:26:06]NVStorageSaveData done [17:26:06]ExternCall_PrintAddStr [17:26:06]wPrintStart [17:26:06]Write to MH i2c: 01 00 00 31 00 31 [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: 01 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: 01 07 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [17:26:06]RasterBufferAndPrint [17:26:06]line Счет N : (1)952468 [17:26:06]line ИНН: 02508201610067 [17:26:06]line Контрольно-Кассовый Чек [17:26:06]line ПРОДАЖА [17:26:06]line ТРК (МРК, ГНК) : 53 [17:26:06]line Товар: 2710124130 [17:26:06]line Аи-92-К-5 [17:26:06]line 40.000 * 0.00 [17:26:06]line = 0.00 [17:26:06]line НДС 12% НСП 1% [17:26:06]line > о реализуемом товаре [17:26:06]line ИТОГО: 0.00 [17:26:06]line НСП 1% : 0.00 [17:26:06]line НДС 12% : 0.00 [17:26:06]line Наличными: 0.00 [17:26:06]line Безнал.: 0.00 [17:26:06]line Место: АЗС № 113 "Партнер Нефть" [17:26:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:26:06]line СНО: Общий режим [17:26:06]line Чек 118 30.10.2024 17:26 [17:26:06]line Смена: 556 ФФД: 1.0 [17:26:06]line ЗНМ: 0300000087 [17:26:06]line РНМ: 0000000000091644 [17:26:06]line Версия ККМ: 001 [17:26:06]line Талоны: Топливная Карта [17:26:06]line 03047 [17:26:06]line ФМ: 0000000000874662 [17:26:06]line ФД: 72881 [17:26:06]line ФПД: 227070961477245 [17:26:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172605&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72881&fm=227070961477245&tin=02508201610067®Number=0000000000091644&sum=0 [17:26:06]written 0, free lines is 4095 [17:26:06]OFD Sender: Processing packet 72881 [packets to send 279, broken 278] [17:26:06]ProducePacketName [17:26:06]name=ofd_packets/00072881 [17:26:06]OFD Sender: To server: pG, [17:26:06]CommunicateWithHost lk.salyk.kg:30040 [17:26:06]ConnectInit lk.salyk.kg [17:26:07]Write to MH i2c: 01 00 00 5B 00 5B [17:26:07]Write i2c OK [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: 01 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: 01 07 00 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E4 0C 52 [17:26:07]RasterBufferAndPrint [17:26:07]line [17:26:07]line [17:26:07]line [17:26:07]line [17:26:07]line [17:26:07]written 0, free lines is 3306 [17:26:07]MH_Cut [17:26:07]Write to MH i2c: D1 01 00 62 00 01 34 [17:26:07]Write i2c OK [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: D1 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: D1 01 00 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: D1 01 00 62 00 00 33 [17:26:07]Write to MH i2c: 01 00 00 63 00 63 [17:26:07]Write i2c OK [17:26:07]MH_I2C_Read... [17:26:08]*** Cut start [17:26:08]*** Partial cut [17:26:08]*** CUTSNS_PIN = 1 [17:26:08]*** CUTSNS_PIN = 0 [17:26:08]Connected sock=10 [17:26:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8D 7B 07 01 8C FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1C 01 00 35 04 06 00 CE 85 13 FF 66 7D EB 22 C5 4F C9 98 2E 2B [17:26:08]*** Brake cut motor [17:26:08]Read from MH i2c: 01 [17:26:08]MH_I2C_Read... [17:26:08]*** Stop cut motor [17:26:08]*** Cut end [17:26:08]Read from MH i2c: 01 07 00 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [17:26:08]process_action close_receipt done [17:26:08]requested_data is exist [17:26:08]produce_requested_data [17:26:08]requested_item fm.sn is exist - process it [17:26:08]wFMCommunicate request_size=4 [17:26:08]MH_SAM_APDU [17:26:08]CAPDU: 80 11 00 00 [17:26:08]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [17:26:08]Write i2c OK [17:26:08]MH_I2C_Read... [17:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:08]Read from MH i2c: E2 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: E2 17 00 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [17:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:26:08]wFMCommunicate OK [17:26:08]requested_item fd.num is exist - process it [17:26:08]SAM_PROTO_GetFieldsCounters [17:26:08]wFMCommunicate request_size=4 [17:26:08]MH_SAM_APDU [17:26:08]CAPDU: 80 13 00 00 [17:26:08]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [17:26:08]Write i2c OK [17:26:08]MH_I2C_Read... [17:26:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:08]Read from MH i2c: E2 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: E2 62 00 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B1 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [17:26:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B1 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:08]wFMCommunicate OK [17:26:08]SAM_PROTO_GetFieldsCounters done [17:26:08]requested_item shift.num is exist - process it [17:26:08]requested_item shift.opened is exist - process it [17:26:08]req_shift_opened [17:26:08]FM_GetShiftState [17:26:08]SAM_PROTO_GetShiftState [17:26:08]wFMCommunicate request_size=4 [17:26:08]MH_SAM_APDU [17:26:08]CAPDU: 80 13 01 00 [17:26:08]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [17:26:08]Write i2c OK [17:26:08]MH_I2C_Read... [17:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:08]Read from MH i2c: E2 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: E2 0E 00 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B5 [17:26:08]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:26:08]wFMCommunicate OK [17:26:08]SAM_PROTO_GetShiftState done [17:26:08]FM_GetShiftState done [17:26:08]req_shift_opened done [17:26:08]requested_item shift.open_date is exist - process it [17:26:08]req_shift_open_date [17:26:08]req_shift_open_date done [17:26:08]produce_requested_data done [17:26:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72881,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:26:08]process_action_free close_receipt [17:26:08]json_value_free [17:26:08]json_value_free done [17:26:08]process_json_proto returns [17:26:08]Send response to host [17:26:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72881,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:26:08]free response buf [17:26:08]execute_script done [17:26:08]execute_script returns [17:26:08]free content buf [17:26:08]Sock 7.Close socket [17:26:08]Sock 7.Thread stoped [17:26:13]recv_with_timeout no data received [17:26:13]CommunicateWithHost answer receiving error [17:26:13]CommunicateWithHost err = -3 [17:26:13]OFD Sender: Server communicate error [17:26:13]recv_with_timeout no data received [17:26:18]OFD Sender: Processing packet 72881 [packets to send 279, broken 278] [17:26:18]ProducePacketName [17:26:18]name=ofd_packets/00072881 [17:26:18]OFD Sender: To server: pG, [17:26:18]CommunicateWithHost lk.salyk.kg:30040 [17:26:18]ConnectInit lk.salyk.kg [17:26:18]Connected sock=8 [17:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8D 7B 07 01 8C FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1C 01 00 35 04 06 00 CE 85 13 FF 66 7D EB 22 C5 4F C9 98 2E 2B [17:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0C B2 47 00 D9 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1C 01 00 F4 03 04 00 F1 16 22 67 B6 04 01 00 00 45 C2 76 50 83 E6 91 5B [17:26:19]CommunicateWithHost err = 0 [17:26:19]CheckOFDResponse [17:26:19]1017 (14) - 77093643461234 [17:26:19]1041 (16) - 0000000000874662 [17:26:19]1040 (4) - 72881 [17:26:19]1012 (4) - 30.10.2024 11:22 [17:26:19]1206 (1) - 0 [17:26:19]OFD Sender: Remove packet 72881 [17:26:19]ProducePacketName [17:26:19]name=ofd_packets/00072881 [17:26:19]NVStorageDeleteData [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:45]accept exits with 9 [17:26:45]New connection [17:26:45]New thread 3066932580 created [17:26:45]Thread 3067075940 joined [17:26:45]Waiting for new connection... [17:26:45] Sock 9.Parse request [17:26:45]Sock 9.Check first char [17:26:45]Sock 9.First char is OK [17:26:45]request: POST /json_proto HTTP/1.0 [17:26:45]Method: POST [17:26:45]URL: /json_proto [17:26:45]Method is POST - this is cgi request [17:26:45]url: /json_proto [17:26:45]query_string will be loaded in cgi processing [17:26:45]execute_cgi json_proto POST (null) [17:26:45]execute_cgi path=json_proto method=POST [17:26:45]POST find Content-Length [17:26:45]Host: 172.17.43.195:8080 [17:26:45]Content-Length: 792 [17:26:45]Content-Type: application/json [17:26:45] [17:26:45]POST finish read [17:26:45]Found Content-Length = 792 [17:26:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:45]execute_script... [17:26:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.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\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:45]POST & json_proto [17:26:45]process_json_proto [17:26:45]json parsed OK: [17:26:45]protocol is kg_v1.0 [17:26:45]action value=close_receipt [17:26:45]process_action close_receipt [17:26:45]cmd_close_receipt [17:26:45]MH_GetDate [17:26:45]Write to MH i2c: F0 00 00 67 00 56 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: F0 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: F0 09 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: F0 09 00 67 00 00 55 6C 22 67 74 2C AD 66 5C [17:26:45]GetLastDocTimeStamp 1730309165 [17:26:45]current date 1730309205 [17:26:45]FM_GetShiftState [17:26:45]SAM_PROTO_GetShiftState [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 13 01 00 [17:26:45]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 0E 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B7 [17:26:45]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:26:45]wFMCommunicate OK [17:26:45]SAM_PROTO_GetShiftState done [17:26:45]FM_GetShiftState done [17:26:45]opened in 1730247109 [17:26:45]opened+sec_in_day 1730333509 [17:26:45]quantity*price = 0 [17:26:45]sum+1 = 1 [17:26:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 119 30.10.2024 17:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 72882 ФПД: 223012507237888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172645&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72882&fm=223012507237888&tin=02508201610067®Number=0000000000091644&sum=0 [17:26:46]StoreToDocumentArchive [17:26:46]shift 556 fd 72882 [17:26:46]save to /storage/0556/doc_00072882 [17:26:46]save last doc name /storage/0556/doc_00072882 to /storage/kkm_last_doc_name [17:26:46]save OK [17:26:46]Clear old archive folders... [17:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:46]tlvbuf is 00A45690 [17:26:46]SAM_PROTO_ClearQueue [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 09 00 00 [17:26:46]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [17:26:46]RAPDU: 90 00 [17:26:46]wFMCommunicate OK [17:26:46]SAM_PROTO_ClearQueue done [17:26:46]KKMCreateOFDPacket [17:26:46]OFDProtocolAddRootSTLVToBuf [17:26:46]FM_MakeSignedData [17:26:46]FM_MakeSignedData [17:26:46]SAM_PROTO_SignData [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 0D 01 02 [17:26:46]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:26:46]RAPDU: 90 00 [17:26:46]wFMCommunicate OK [17:26:46]wFMCommunicate request_size=255 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 77 00 00 00 F4 03 04 00 55 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1C 01 00 35 04 06 00 CA [17:26:46]Write to MH i2c: E2 02 01 77 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 98 3A 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 77 00 00 00 F4 03 04 00 55 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1C 01 00 35 04 06 00 CA 00 00 53 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:26:46]RAPDU: 90 00 [17:26:46]wFMCommunicate OK [17:26:46]wFMCommunicate request_size=10 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 0D 02 02 05 D4 25 46 3E 00 [17:26:46]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 D4 25 46 3E 00 00 00 79 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:46]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [17:26:47]RAPDU: 90 00 [17:26:47]wFMCommunicate OK [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 0D 03 02 [17:26:47]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 0B 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 0B 00 79 00 00 EF 58 BA 1E EB B5 9F 86 90 00 D9 [17:26:47]RAPDU: EF 58 BA 1E EB B5 9F 86 90 00 [17:26:47]wFMCommunicate OK [17:26:47]SAM_PROTO_SignData done [17:26:47]FM_MakeSignedData done [17:26:47]CreateOFDProtocolMessage [17:26:47]wFMCommunicate request_size=4 [17:26:47]MH_SAM_APDU [17:26:47]CAPDU: 80 11 00 00 [17:26:47]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:47]Read from MH i2c: E2 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 17 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [17:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:26:47]wFMCommunicate OK [17:26:47]CreateOFDProtocolMessage done [17:26:47]OFDSenderStorePacket 72882 [17:26:47]StoreOFDPacket docnum=72882 [17:26:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 88 1B 07 01 C0 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 77 00 00 00 F4 03 04 00 55 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1C 01 00 35 04 06 00 CA D4 25 46 3E 00 EF 58 BA 1E EB B5 9F 86 [17:26:47]CheckFolder [17:26:47]dirname=/storage/ofd_packets [17:26:47]CheckFolder done [17:26:47]ProducePacketName [17:26:47]name=ofd_packets/00072882 [17:26:47]NVStorageSaveData ofd_packets/00072882 [17:26:47]File name is /storage/ofd_packets/00072882 [17:26:47]Write 301 bytes [17:26:47]NVStorageSaveData done [17:26:47]OFDSenderStorePacket done [17:26:47]KKMCreateOFDPacket done [17:26:47]NVStorageSaveData kkm_last_timestamp [17:26:47]File name is /storage/kkm_last_timestamp [17:26:47]Write 4 bytes [17:26:47]NVStorageSaveData done [17:26:47]ExternCall_PrintAddStr [17:26:47]wPrintStart [17:26:47]Write to MH i2c: 01 00 00 7B 00 7B [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [17:26:47]RasterBufferAndPrint [17:26:47]line Счет N : (1)952469 [17:26:47]line ИНН: 02508201610067 [17:26:47]line Контрольно-Кассовый Чек [17:26:47]line ПРОДАЖА [17:26:47]line ТРК (МРК, ГНК) : 63 [17:26:47]line Товар: 2710124130 [17:26:47]line Аи-92-К-5 [17:26:47]line 15.000 * 0.00 [17:26:47]line = 0.00 [17:26:47]line НДС 12% НСП 1% [17:26:47]line > о реализуемом товаре [17:26:47]line ИТОГО: 0.00 [17:26:47]line НСП 1% : 0.00 [17:26:47]line НДС 12% : 0.00 [17:26:47]line Наличными: 0.00 [17:26:47]line Безнал.: 0.00 [17:26:47]line Место: АЗС № 113 "Партнер Нефть" [17:26:47]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:26:47]line СНО: Общий режим [17:26:47]line Чек 119 30.10.2024 17:26 [17:26:47]line Смена: 556 ФФД: 1.0 [17:26:47]line ЗНМ: 0300000087 [17:26:47]line РНМ: 0000000000091644 [17:26:47]line Версия ККМ: 001 [17:26:47]line Талоны: Топливная Карта [17:26:47]line 02645 [17:26:47]line ФМ: 0000000000874662 [17:26:47]line ФД: 72882 [17:26:47]line ФПД: 223012507237888 [17:26:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172645&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72882&fm=223012507237888&tin=02508201610067®Number=0000000000091644&sum=0 [17:26:47]written 0, free lines is 4095 [17:26:47]OFD Sender: Processing packet 72882 [packets to send 279, broken 278] [17:26:47]ProducePacketName [17:26:47]name=ofd_packets/00072882 [17:26:47]OFD Sender: To server: pG, [17:26:47]CommunicateWithHost lk.salyk.kg:30040 [17:26:47]ConnectInit lk.salyk.kg [17:26:47]Write to MH i2c: 01 00 00 A5 00 A5 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E5 0C 9D [17:26:47]RasterBufferAndPrint [17:26:47]line [17:26:47]line [17:26:47]line [17:26:47]line [17:26:47]line [17:26:47]written 0, free lines is 3308 [17:26:47]MH_Cut [17:26:47]Write to MH i2c: D1 01 00 AC 00 01 7E [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: D1 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: D1 01 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: D1 01 00 AC 00 00 7D [17:26:47]Write to MH i2c: 01 00 00 AD 00 AD [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:48]*** Cut start [17:26:48]*** Partial cut [17:26:48]*** CUTSNS_PIN = 1 [17:26:48]*** CUTSNS_PIN = 0 [17:26:48]*** Brake cut motor [17:26:48]Connected sock=10 [17:26:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 88 1B 07 01 C0 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 77 00 00 00 F4 03 04 00 55 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1C 01 00 35 04 06 00 CA D4 25 46 3E 00 EF 58 BA 1E EB B5 9F 86 [17:26:48]Read from MH i2c: 01 [17:26:48]MH_I2C_Read... [17:26:48]*** Stop cut motor [17:26:48]*** Cut end [17:26:48]Read from MH i2c: 01 07 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [17:26:48]process_action close_receipt done [17:26:48]requested_data is exist [17:26:48]produce_requested_data [17:26:48]requested_item fm.sn is exist - process it [17:26:48]wFMCommunicate request_size=4 [17:26:48]MH_SAM_APDU [17:26:48]CAPDU: 80 11 00 00 [17:26:48]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:48]Read from MH i2c: E2 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 17 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [17:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:26:48]wFMCommunicate OK [17:26:48]requested_item fd.num is exist - process it [17:26:48]SAM_PROTO_GetFieldsCounters [17:26:48]wFMCommunicate request_size=4 [17:26:48]MH_SAM_APDU [17:26:48]CAPDU: 80 13 00 00 [17:26:48]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:49]Read from MH i2c: E2 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: E2 62 00 [17:26:49]MH_I2C_Read... [17:26:49]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B2 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [17:26:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B2 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:49]wFMCommunicate OK [17:26:49]SAM_PROTO_GetFieldsCounters done [17:26:49]requested_item shift.num is exist - process it [17:26:49]requested_item shift.opened is exist - process it [17:26:49]req_shift_opened [17:26:49]FM_GetShiftState [17:26:49]SAM_PROTO_GetShiftState [17:26:49]wFMCommunicate request_size=4 [17:26:49]MH_SAM_APDU [17:26:49]CAPDU: 80 13 01 00 [17:26:49]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [17:26:49]Write i2c OK [17:26:49]MH_I2C_Read... [17:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:49]Read from MH i2c: E2 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: E2 0E 00 [17:26:49]MH_I2C_Read... [17:26:49]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 FF [17:26:49]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:26:49]wFMCommunicate OK [17:26:49]SAM_PROTO_GetShiftState done [17:26:49]FM_GetShiftState done [17:26:49]req_shift_opened done [17:26:49]requested_item shift.open_date is exist - process it [17:26:49]req_shift_open_date [17:26:49]req_shift_open_date done [17:26:49]produce_requested_data done [17:26:49]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72882,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:26:49]process_action_free close_receipt [17:26:49]json_value_free [17:26:49]json_value_free done [17:26:49]process_json_proto returns [17:26:49]Send response to host [17:26:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72882,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:26:49]free response buf [17:26:49]execute_script done [17:26:49]execute_script returns [17:26:49]free content buf [17:26:49]Sock 9.Close socket [17:26:49]Sock 9.Thread stoped [17:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 84 A6 47 00 A6 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1C 01 00 F4 03 04 00 0F 17 22 67 B6 04 01 00 00 BB 9C C0 33 4C E6 3D B8 [17:26:50]CommunicateWithHost err = 0 [17:26:50]CheckOFDResponse [17:26:50]1017 (14) - 77093643461234 [17:26:50]1041 (16) - 0000000000874662 [17:26:50]1040 (4) - 72882 [17:26:50]1012 (4) - 30.10.2024 11:22 [17:26:50]1206 (1) - 0 [17:26:50]OFD Sender: Remove packet 72882 [17:26:50]ProducePacketName [17:26:50]name=ofd_packets/00072882 [17:26:50]NVStorageDeleteData [17:26:51]OFD Sender: No OFD packet to send [17:26:55]recv_with_timeout no data received [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:11]recv_with_timeout no data received [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:22]recv_with_timeout no data received [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:09]recv_with_timeout no data received [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:52]recv_with_timeout no data received [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:09]recv_with_timeout no data received [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:29]recv_with_timeout no data received [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:54]recv_with_timeout no data received [17:30:54]accept exits with 8 [17:30:54]New connection [17:30:54]New thread 3067075940 created [17:30:54]Thread 3066932580 joined [17:30:54]Waiting for new connection... [17:30:54] Sock 8.Parse request [17:30:54]Sock 8.Check first char [17:30:54]Sock 8.First char is OK [17:30:54]request: POST /json_proto HTTP/1.0 [17:30:54]Method: POST [17:30:54]URL: /json_proto [17:30:54]Method is POST - this is cgi request [17:30:54]url: /json_proto [17:30:54]query_string will be loaded in cgi processing [17:30:54]execute_cgi json_proto POST (null) [17:30:54]execute_cgi path=json_proto method=POST [17:30:54]POST find Content-Length [17:30:54]Host: 172.17.43.195:8080 [17:30:54]Content-Length: 797 [17:30:54]Content-Type: application/json [17:30:54] [17:30:54]POST finish read [17:30:54]Found Content-Length = 797 [17:30:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952470", "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" : 0.00, "quantity" : 24.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:54]execute_script... [17:30:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952470", "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" : 0.00, "quantity" : 24.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:54]POST & json_proto [17:30:54]process_json_proto [17:30:54]json parsed OK: [17:30:54]protocol is kg_v1.0 [17:30:54]action value=close_receipt [17:30:54]process_action close_receipt [17:30:54]cmd_close_receipt [17:30:54]MH_GetDate [17:30:54]Write to MH i2c: F0 00 00 B1 00 A0 [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 09 00 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 09 00 B1 00 00 4F 6D 22 67 74 2C AD 66 A1 [17:30:54]GetLastDocTimeStamp 1730309205 [17:30:54]current date 1730309455 [17:30:54]FM_GetShiftState [17:30:54]SAM_PROTO_GetShiftState [17:30:54]wFMCommunicate request_size=4 [17:30:54]MH_SAM_APDU [17:30:54]CAPDU: 80 13 01 00 [17:30:54]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:54]Read from MH i2c: E2 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: E2 0E 00 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 01 [17:30:54]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:30:54]wFMCommunicate OK [17:30:54]SAM_PROTO_GetShiftState done [17:30:54]FM_GetShiftState done [17:30:54]opened in 1730247109 [17:30:54]opened+sec_in_day 1730333509 [17:30:54]quantity*price = 0 [17:30:54]sum+1 = 1 [17:30:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 120 30.10.2024 17:30 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72883 ФПД: 11360799150907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173055&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72883&fm=11360799150907&tin=02508201610067®Number=0000000000091644&sum=0 [17:30:56]StoreToDocumentArchive [17:30:56]shift 556 fd 72883 [17:30:56]save to /storage/0556/doc_00072883 [17:30:56]save last doc name /storage/0556/doc_00072883 to /storage/kkm_last_doc_name [17:30:56]save OK [17:30:56]Clear old archive folders... [17:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:30:56]tlvbuf is 00A3E1E0 [17:30:56]SAM_PROTO_ClearQueue [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 09 00 00 [17:30:56]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [17:30:56]RAPDU: 90 00 [17:30:56]wFMCommunicate OK [17:30:56]SAM_PROTO_ClearQueue done [17:30:56]KKMCreateOFDPacket [17:30:56]OFDProtocolAddRootSTLVToBuf [17:30:56]FM_MakeSignedData [17:30:56]FM_MakeSignedData [17:30:56]SAM_PROTO_SignData [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 0D 01 02 [17:30:56]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [17:30:56]RAPDU: 90 00 [17:30:56]wFMCommunicate OK [17:30:56]wFMCommunicate request_size=255 [17:30:56]MH_SAM_APDU [17:30:56]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 C0 5D 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 78 00 00 00 F4 03 04 00 4F 6D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1C 01 00 35 04 06 00 [17:30:56]Write to MH i2c: E2 02 01 C1 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 C0 5D 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 78 00 00 00 F4 03 04 00 4F 6D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1C 01 00 35 04 06 00 00 00 56 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [17:30:56]RAPDU: 90 00 [17:30:56]wFMCommunicate OK [17:30:56]wFMCommunicate request_size=11 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 0D 02 02 06 0A 55 24 65 D3 3B [17:30:56]Write to MH i2c: E2 0E 00 C2 00 80 0D 02 02 06 00 0A 55 24 65 D3 3B 00 00 3E [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [17:30:56]RAPDU: 90 00 [17:30:56]wFMCommunicate OK [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 0D 03 02 [17:30:56]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 0B 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 0B 00 C3 00 00 1E 48 91 69 D3 17 C6 B0 90 00 FF [17:30:56]RAPDU: 1E 48 91 69 D3 17 C6 B0 90 00 [17:30:56]wFMCommunicate OK [17:30:56]SAM_PROTO_SignData done [17:30:56]FM_MakeSignedData done [17:30:56]CreateOFDProtocolMessage [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 11 00 00 [17:30:56]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 17 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [17:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:30:56]wFMCommunicate OK [17:30:56]CreateOFDProtocolMessage done [17:30:56]OFDSenderStorePacket 72883 [17:30:56]StoreOFDPacket docnum=72883 [17:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 25 69 08 01 01 CD 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 C0 5D 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 78 00 00 00 F4 03 04 00 4F 6D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1C 01 00 35 04 06 00 0A 55 24 65 D3 3B 1E 48 91 69 D3 17 C6 B0 [17:30:56]CheckFolder [17:30:56]dirname=/storage/ofd_packets [17:30:56]CheckFolder done [17:30:56]ProducePacketName [17:30:56]name=ofd_packets/00072883 [17:30:56]NVStorageSaveData ofd_packets/00072883 [17:30:56]File name is /storage/ofd_packets/00072883 [17:30:56]Write 302 bytes [17:30:56]NVStorageSaveData done [17:30:56]OFDSenderStorePacket done [17:30:56]KKMCreateOFDPacket done [17:30:56]NVStorageSaveData kkm_last_timestamp [17:30:56]File name is /storage/kkm_last_timestamp [17:30:56]Write 4 bytes [17:30:56]NVStorageSaveData done [17:30:56]ExternCall_PrintAddStr [17:30:56]wPrintStart [17:30:56]Write to MH i2c: 01 00 00 C5 00 C5 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [17:30:56]RasterBufferAndPrint [17:30:56]line Счет N : (1)952470 [17:30:56]line ИНН: 02508201610067 [17:30:56]line Контрольно-Кассовый Чек [17:30:56]line ПРОДАЖА [17:30:56]line ТРК (МРК, ГНК) : 33 [17:30:56]line Товар: 2710194210 [17:30:56]line ДТ(л)-К-5 [17:30:56]line 24.000 * 0.00 [17:30:56]line = 0.00 [17:30:56]line НДС 12% НСП 1% [17:30:56]line > о реализуемом товаре [17:30:56]line ИТОГО: 0.00 [17:30:56]line НСП 1% : 0.00 [17:30:56]line НДС 12% : 0.00 [17:30:56]line Наличными: 0.00 [17:30:56]line Безнал.: 0.00 [17:30:56]line Место: АЗС № 113 "Партнер Нефть" [17:30:56]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:30:56]line СНО: Общий режим [17:30:56]line Чек 120 30.10.2024 17:30 [17:30:56]line Смена: 556 ФФД: 1.0 [17:30:56]line ЗНМ: 0300000087 [17:30:56]line РНМ: 0000000000091644 [17:30:56]line Версия ККМ: 001 [17:30:56]line Талоны: Топливная Карта [17:30:56]line 02083 [17:30:56]line ФМ: 0000000000874662 [17:30:56]line ФД: 72883 [17:30:56]line ФПД: 11360799150907 [17:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173055&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72883&fm=11360799150907&tin=02508201610067®Number=0000000000091644&sum=0 [17:30:56]written 0, free lines is 4095 [17:30:56]OFD Sender: Processing packet 72883 [packets to send 279, broken 278] [17:30:56]ProducePacketName [17:30:56]name=ofd_packets/00072883 [17:30:56]OFD Sender: To server: pG, [17:30:56]CommunicateWithHost lk.salyk.kg:30040 [17:30:56]ConnectInit lk.salyk.kg [17:30:57]Write to MH i2c: 01 00 00 EF 00 EF [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: 01 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: 01 07 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 DA 0C DC [17:30:57]RasterBufferAndPrint [17:30:57]line [17:30:57]line [17:30:57]line [17:30:57]line [17:30:57]line [17:30:57]written 0, free lines is 3296 [17:30:57]MH_Cut [17:30:57]Write to MH i2c: D1 01 00 F6 00 01 C8 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: D1 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: D1 01 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: D1 01 00 F6 00 00 C7 [17:30:57]Write to MH i2c: 01 00 00 F7 00 F7 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:58]*** Cut start [17:30:58]*** Partial cut [17:30:58]*** CUTSNS_PIN = 1 [17:30:58]*** CUTSNS_PIN = 0 [17:30:58]*** Brake cut motor [17:30:58]Read from MH i2c: 01 [17:30:58]MH_I2C_Read... [17:30:58]*** Stop cut motor [17:30:58]*** Cut end [17:30:58]Read from MH i2c: 01 07 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [17:30:58]process_action close_receipt done [17:30:58]requested_data is exist [17:30:58]produce_requested_data [17:30:58]requested_item fm.sn is exist - process it [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 11 00 00 [17:30:58]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 17 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C6 [17:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:30:58]wFMCommunicate OK [17:30:58]requested_item fd.num is exist - process it [17:30:58]SAM_PROTO_GetFieldsCounters [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 13 00 00 [17:30:58]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]Connected sock=10 [17:30:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 25 69 08 01 01 CD 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 C0 5D 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 78 00 00 00 F4 03 04 00 4F 6D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1C 01 00 35 04 06 00 0A 55 24 65 D3 3B 1E 48 91 69 D3 17 C6 B0 [17:30:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 62 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B3 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [17:30:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B3 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:58]wFMCommunicate OK [17:30:58]SAM_PROTO_GetFieldsCounters done [17:30:58]requested_item shift.num is exist - process it [17:30:58]requested_item shift.opened is exist - process it [17:30:58]req_shift_opened [17:30:58]FM_GetShiftState [17:30:58]SAM_PROTO_GetShiftState [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 13 01 00 [17:30:58]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 0E 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 49 [17:30:58]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:30:58]wFMCommunicate OK [17:30:58]SAM_PROTO_GetShiftState done [17:30:58]FM_GetShiftState done [17:30:58]req_shift_opened done [17:30:58]requested_item shift.open_date is exist - process it [17:30:58]req_shift_open_date [17:30:58]req_shift_open_date done [17:30:58]produce_requested_data done [17:30:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72883,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:30:58]process_action_free close_receipt [17:30:58]json_value_free [17:30:58]json_value_free done [17:30:58]process_json_proto returns [17:30:58]Send response to host [17:30:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72883,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:30:58]free response buf [17:30:58]execute_script done [17:30:58]execute_script returns [17:30:58]free content buf [17:30:58]Sock 8.Close socket [17:30:58]Sock 8.Thread stoped [17:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E1 50 47 00 C3 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 38 37 34 36 36 32 10 04 04 00 B3 1C 01 00 F4 03 04 00 09 18 22 67 B6 04 01 00 00 87 2D D4 C0 D4 E1 78 B5 [17:30:59]CommunicateWithHost err = 0 [17:30:59]CheckOFDResponse [17:30:59]1017 (14) - 77093643461234 [17:30:59]1041 (16) - 0000000000874662 [17:30:59]1040 (4) - 72883 [17:30:59]1012 (4) - 30.10.2024 11:27 [17:30:59]1206 (1) - 0 [17:30:59]OFD Sender: Remove packet 72883 [17:30:59]ProducePacketName [17:30:59]name=ofd_packets/00072883 [17:30:59]NVStorageDeleteData [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:13]recv_with_timeout no data received [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:33]recv_with_timeout no data received [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:53]recv_with_timeout no data received [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:22]recv_with_timeout no data received [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:46]recv_with_timeout no data received [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:16]recv_with_timeout no data received [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:51]recv_with_timeout no data received [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:09]recv_with_timeout no data received [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:29]recv_with_timeout no data received [17:36:30]OFD Sender: No OFD packet to send [17:36:34]accept exits with 9 [17:36:34]New connection [17:36:34]New thread 3066932580 created [17:36:34]Thread 3067075940 joined [17:36:34]Waiting for new connection... [17:36:34] Sock 9.Parse request [17:36:34]Sock 9.Check first char [17:36:34]Sock 9.First char is OK [17:36:34]request: POST /json_proto HTTP/1.0 [17:36:34]Method: POST [17:36:34]URL: /json_proto [17:36:34]Method is POST - this is cgi request [17:36:34]url: /json_proto [17:36:34]query_string will be loaded in cgi processing [17:36:34]execute_cgi json_proto POST (null) [17:36:34]execute_cgi path=json_proto method=POST [17:36:34]POST find Content-Length [17:36:34]Host: 172.17.43.195:8080 [17:36:34]Content-Length: 803 [17:36:34]Content-Type: application/json [17:36:34] [17:36:34]POST finish read [17:36:34]Found Content-Length = 803 [17:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:34]execute_script... [17:36:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 7.720, "sum" : 300.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:34]POST & json_proto [17:36:34]process_json_proto [17:36:34]json parsed OK: [17:36:34]protocol is kg_v1.0 [17:36:34]action value=close_receipt [17:36:34]process_action close_receipt [17:36:34]cmd_close_receipt [17:36:34]MH_GetDate [17:36:34]Write to MH i2c: F0 00 00 FB 00 EA [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: F0 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: F0 09 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: F0 09 00 FB 00 00 A2 6E 22 67 74 2C AD 66 3F [17:36:34]GetLastDocTimeStamp 1730309455 [17:36:34]current date 1730309794 [17:36:34]FM_GetShiftState [17:36:34]SAM_PROTO_GetShiftState [17:36:34]wFMCommunicate request_size=4 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 13 01 00 [17:36:34]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 0E 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4B [17:36:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:36:34]wFMCommunicate OK [17:36:34]SAM_PROTO_GetShiftState done [17:36:34]FM_GetShiftState done [17:36:34]opened in 1730247109 [17:36:34]opened+sec_in_day 1730333509 [17:36:34]quantity*price = 30030 [17:36:34]sum+1 = 30032 [17:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.31 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.31 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 121 30.10.2024 17:36 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72884 ФПД: 239412959018390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173634&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72884&fm=239412959018390&tin=02508201610067®Number=0000000000091644&sum=30031 [17:36:35]StoreToDocumentArchive [17:36:35]shift 556 fd 72884 [17:36:35]save to /storage/0556/doc_00072884 [17:36:35]save last doc name /storage/0556/doc_00072884 to /storage/kkm_last_doc_name [17:36:35]save OK [17:36:35]Clear old archive folders... [17:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:36:35]tlvbuf is 00A520B0 [17:36:35]SAM_PROTO_ClearQueue [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 09 00 00 [17:36:35]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]SAM_PROTO_ClearQueue done [17:36:35]KKMCreateOFDPacket [17:36:35]OFDProtocolAddRootSTLVToBuf [17:36:35]FM_MakeSignedData [17:36:35]FM_MakeSignedData [17:36:35]SAM_PROTO_SignData [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 01 02 [17:36:35]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=255 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A2 6E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1C 01 00 35 04 06 00 D9 BE [17:36:35]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A2 6E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1C 01 00 35 04 06 00 D9 BE 00 00 3A [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]OFD Sender: No OFD packet to send [17:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=9 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 02 02 04 AC 60 7D 96 [17:36:35]Write to MH i2c: E2 0C 00 0C 01 80 0D 02 02 04 00 AC 60 7D 96 00 00 AE [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:35]Read from MH i2c: E2 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [17:36:35]RAPDU: 90 00 [17:36:35]wFMCommunicate OK [17:36:35]wFMCommunicate request_size=4 [17:36:35]MH_SAM_APDU [17:36:35]CAPDU: 80 0D 03 02 [17:36:35]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:36]Read from MH i2c: E2 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: E2 0B 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: E2 0B 00 0D 01 00 4E 42 50 22 D6 9F 7E 7D 90 00 FC [17:36:36]RAPDU: 4E 42 50 22 D6 9F 7E 7D 90 00 [17:36:36]wFMCommunicate OK [17:36:36]SAM_PROTO_SignData done [17:36:36]FM_MakeSignedData done [17:36:36]CreateOFDProtocolMessage [17:36:36]wFMCommunicate request_size=4 [17:36:36]MH_SAM_APDU [17:36:36]CAPDU: 80 11 00 00 [17:36:36]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:36]Read from MH i2c: E2 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: E2 17 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DD [17:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:36:36]wFMCommunicate OK [17:36:36]CreateOFDProtocolMessage done [17:36:36]OFDSenderStorePacket 72884 [17:36:36]StoreOFDPacket docnum=72884 [17:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 53 5B 06 01 B1 02 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A2 6E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1C 01 00 35 04 06 00 D9 BE AC 60 7D 96 4E 42 50 22 D6 9F 7E 7D [17:36:36]CheckFolder [17:36:36]dirname=/storage/ofd_packets [17:36:36]CheckFolder done [17:36:36]ProducePacketName [17:36:36]name=ofd_packets/00072884 [17:36:36]NVStorageSaveData ofd_packets/00072884 [17:36:36]File name is /storage/ofd_packets/00072884 [17:36:36]Write 300 bytes [17:36:36]NVStorageSaveData done [17:36:36]OFDSenderStorePacket done [17:36:36]KKMCreateOFDPacket done [17:36:36]NVStorageSaveData kkm_last_timestamp [17:36:36]File name is /storage/kkm_last_timestamp [17:36:36]Write 4 bytes [17:36:36]NVStorageSaveData done [17:36:36]ExternCall_PrintAddStr [17:36:36]wPrintStart [17:36:36]Write to MH i2c: 01 00 00 0F 01 10 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [17:36:36]RasterBufferAndPrint [17:36:36]line Счет N : (1)952471 [17:36:36]line ИНН: 02508201610067 [17:36:36]line Контрольно-Кассовый Чек [17:36:36]line ПРОДАЖА [17:36:36]line ТРК (МРК, ГНК) : 71 [17:36:36]line Товар: 2711190000 [17:36:36]line ГАЗ-К-3 [17:36:36]line 7.720 * 38.90 [17:36:36]line = 300.31 [17:36:36]line НДС 12% НСП 1% [17:36:36]line > о реализуемом товаре [17:36:36]line ИТОГО: 300.31 [17:36:36]line НСП 1% : 2.66 [17:36:36]line НДС 12% : 31.89 [17:36:36]line Наличными: 0.00 [17:36:36]line Безнал.: 300.31 [17:36:36]line Место: АЗС № 113 "Партнер Нефть" [17:36:36]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:36:36]line СНО: Общий режим [17:36:36]line Чек 121 30.10.2024 17:36 [17:36:36]line Смена: 556 ФФД: 1.0 [17:36:36]line ЗНМ: 0300000087 [17:36:36]line РНМ: 0000000000091644 [17:36:36]line Версия ККМ: 001 [17:36:36]line Платежная система: O! деньги [17:36:36]line ФМ: 0000000000874662 [17:36:36]line ФД: 72884 [17:36:36]line ФПД: 239412959018390 [17:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173634&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72884&fm=239412959018390&tin=02508201610067®Number=0000000000091644&sum=30031 [17:36:36]OFD Sender: Processing packet 72884 [packets to send 279, broken 278] [17:36:36]ProducePacketName [17:36:36]name=ofd_packets/00072884 [17:36:36]OFD Sender: To server: pG, [17:36:36]CommunicateWithHost lk.salyk.kg:30040 [17:36:36]ConnectInit lk.salyk.kg [17:36:36]written 0, free lines is 4095 [17:36:36]Write to MH i2c: 01 00 00 39 01 3A [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 E2 0C 2F [17:36:36]RasterBufferAndPrint [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]line [17:36:36]written 0, free lines is 3303 [17:36:36]MH_Cut [17:36:36]Write to MH i2c: D1 01 00 40 01 01 13 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 01 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: D1 01 00 40 01 00 12 [17:36:36]Write to MH i2c: 01 00 00 41 01 42 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:37]*** Cut start [17:36:37]*** Partial cut [17:36:37]*** CUTSNS_PIN = 1 [17:36:37]*** CUTSNS_PIN = 0 [17:36:37]*** Brake cut motor [17:36:38]Read from MH i2c: 01 [17:36:38]MH_I2C_Read... [17:36:38]*** Stop cut motor [17:36:38]*** Cut end [17:36:38]Read from MH i2c: 01 07 00 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [17:36:38]process_action close_receipt done [17:36:38]requested_data is exist [17:36:38]produce_requested_data [17:36:38]requested_item fm.sn is exist - process it [17:36:38]wFMCommunicate request_size=4 [17:36:38]MH_SAM_APDU [17:36:38]CAPDU: 80 11 00 00 [17:36:38]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [17:36:38]Write i2c OK [17:36:38]MH_I2C_Read... [17:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:38]Read from MH i2c: E2 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 17 00 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [17:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:36:38]wFMCommunicate OK [17:36:38]requested_item fd.num is exist - process it [17:36:38]SAM_PROTO_GetFieldsCounters [17:36:38]wFMCommunicate request_size=4 [17:36:38]MH_SAM_APDU [17:36:38]CAPDU: 80 13 00 00 [17:36:38]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [17:36:38]Write i2c OK [17:36:38]MH_I2C_Read... [17:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:38]Read from MH i2c: E2 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 62 00 [17:36:38]MH_I2C_Read... [17:36:38]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B4 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [17:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B4 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:38]wFMCommunicate OK [17:36:38]SAM_PROTO_GetFieldsCounters done [17:36:38]requested_item shift.num is exist - process it [17:36:38]requested_item shift.opened is exist - process it [17:36:38]req_shift_opened [17:36:38]FM_GetShiftState [17:36:38]SAM_PROTO_GetShiftState [17:36:38]wFMCommunicate request_size=4 [17:36:38]MH_SAM_APDU [17:36:38]CAPDU: 80 13 01 00 [17:36:38]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [17:36:38]Write i2c OK [17:36:38]MH_I2C_Read... [17:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:38]Read from MH i2c: E2 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 0E 00 [17:36:38]MH_I2C_Read... [17:36:38]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 94 [17:36:38]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:36:38]wFMCommunicate OK [17:36:38]SAM_PROTO_GetShiftState done [17:36:38]FM_GetShiftState done [17:36:38]req_shift_opened done [17:36:38]requested_item shift.open_date is exist - process it [17:36:38]req_shift_open_date [17:36:38]req_shift_open_date done [17:36:38]produce_requested_data done [17:36:38]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72884,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:36:38]process_action_free close_receipt [17:36:38]json_value_free [17:36:38]json_value_free done [17:36:38]process_json_proto returns [17:36:38]Send response to host [17:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72884,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:36:38]free response buf [17:36:38]execute_script done [17:36:38]execute_script returns [17:36:38]free content buf [17:36:38]Sock 9.Close socket [17:36:38]Sock 9.Thread stoped [17:36:41]ConnectInit Can't take IP for lk.salyk.kg [17:36:41]CommunicateWithHost connect error [17:36:41]CommunicateWithHost err = -1 [17:36:41]OFD Sender: Server communicate error [17:36:46]OFD Sender: Processing packet 72884 [packets to send 279, broken 278] [17:36:46]ProducePacketName [17:36:46]name=ofd_packets/00072884 [17:36:46]OFD Sender: To server: pG, [17:36:46]CommunicateWithHost lk.salyk.kg:30040 [17:36:46]ConnectInit lk.salyk.kg [17:36:47]accept exits with 8 [17:36:47]New connection [17:36:47]New thread 3067075940 created [17:36:47]Thread 3066932580 joined [17:36:47]Waiting for new connection... [17:36:47] Sock 8.Parse request [17:36:47]Sock 8.Check first char [17:36:47]Sock 8.First char is OK [17:36:47]request: POST /json_proto HTTP/1.0 [17:36:47]Method: POST [17:36:47]URL: /json_proto [17:36:47]Method is POST - this is cgi request [17:36:47]url: /json_proto [17:36:47]query_string will be loaded in cgi processing [17:36:47]execute_cgi json_proto POST (null) [17:36:47]execute_cgi path=json_proto method=POST [17:36:47]POST find Content-Length [17:36:47]Host: 172.17.43.195:8080 [17:36:47]Content-Length: 792 [17:36:47]Content-Type: application/json [17:36:47] [17:36:47]POST finish read [17:36:47]Found Content-Length = 792 [17:36:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:47]execute_script... [17:36: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)952472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:47]POST & json_proto [17:36:47]process_json_proto [17:36:47]json parsed OK: [17:36:47]protocol is kg_v1.0 [17:36:47]action value=close_receipt [17:36:47]process_action close_receipt [17:36:47]cmd_close_receipt [17:36:47]MH_GetDate [17:36:47]Write to MH i2c: F0 00 00 45 01 35 [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: F0 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: F0 09 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: F0 09 00 45 01 00 AF 6E 22 67 74 2C AD 66 97 [17:36:47]GetLastDocTimeStamp 1730309794 [17:36:47]current date 1730309807 [17:36:47]FM_GetShiftState [17:36:47]SAM_PROTO_GetShiftState [17:36:47]wFMCommunicate request_size=4 [17:36:47]MH_SAM_APDU [17:36:47]CAPDU: 80 13 01 00 [17:36:47]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [17:36:47]Write i2c OK [17:36:47]MH_I2C_Read... [17:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:47]Read from MH i2c: E2 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 0E 00 [17:36:47]MH_I2C_Read... [17:36:47]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 96 [17:36:47]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:36:47]wFMCommunicate OK [17:36:47]SAM_PROTO_GetShiftState done [17:36:47]FM_GetShiftState done [17:36:47]opened in 1730247109 [17:36:47]opened+sec_in_day 1730333509 [17:36:47]quantity*price = 0 [17:36:47]sum+1 = 1 [17:36:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 122 30.10.2024 17:36 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72885 ФПД: 82783828833493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173647&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72885&fm=82783828833493&tin=02508201610067®Number=0000000000091644&sum=0 [17:36:48]StoreToDocumentArchive [17:36:48]shift 556 fd 72885 [17:36:48]save to /storage/0556/doc_00072885 [17:36:48]save last doc name /storage/0556/doc_00072885 to /storage/kkm_last_doc_name [17:36:48]save OK [17:36:48]Clear old archive folders... [17:36:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:48]tlvbuf is 00A4C7F0 [17:36:48]SAM_PROTO_ClearQueue [17:36:48]wFMCommunicate request_size=4 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 09 00 00 [17:36:48]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [17:36:48]RAPDU: 90 00 [17:36:48]wFMCommunicate OK [17:36:48]SAM_PROTO_ClearQueue done [17:36:48]KKMCreateOFDPacket [17:36:48]OFDProtocolAddRootSTLVToBuf [17:36:48]FM_MakeSignedData [17:36:48]FM_MakeSignedData [17:36:48]SAM_PROTO_SignData [17:36:48]wFMCommunicate request_size=4 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 0D 01 02 [17:36:48]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [17:36:48]RAPDU: 90 00 [17:36:48]wFMCommunicate OK [17:36:48]wFMCommunicate request_size=255 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 AF 6E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1C 01 00 35 04 06 00 4B [17:36:48]Write to MH i2c: E2 02 01 55 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 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 7A 00 00 00 F4 03 04 00 AF 6E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1C 01 00 35 04 06 00 4B 00 00 7A [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [17:36:48]RAPDU: 90 00 [17:36:48]wFMCommunicate OK [17:36:48]wFMCommunicate request_size=10 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 0D 02 02 05 4A 9C B5 F4 D5 [17:36:48]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 4A 9C B5 F4 D5 00 00 3F [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [17:36:48]RAPDU: 90 00 [17:36:48]wFMCommunicate OK [17:36:48]wFMCommunicate request_size=4 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 0D 03 02 [17:36:48]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 0B 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 0B 00 57 01 00 9D 8F B0 01 D6 F3 88 72 90 00 74 [17:36:48]RAPDU: 9D 8F B0 01 D6 F3 88 72 90 00 [17:36:48]wFMCommunicate OK [17:36:48]SAM_PROTO_SignData done [17:36:48]FM_MakeSignedData done [17:36:48]CreateOFDProtocolMessage [17:36:48]wFMCommunicate request_size=4 [17:36:48]MH_SAM_APDU [17:36:48]CAPDU: 80 11 00 00 [17:36:48]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:48]Read from MH i2c: E2 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 17 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [17:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:36:48]wFMCommunicate OK [17:36:48]CreateOFDProtocolMessage done [17:36:48]OFDSenderStorePacket 72885 [17:36:48]StoreOFDPacket docnum=72885 [17:36:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 6E 15 07 01 54 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 AF 6E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1C 01 00 35 04 06 00 4B 4A 9C B5 F4 D5 9D 8F B0 01 D6 F3 88 72 [17:36:48]CheckFolder [17:36:48]dirname=/storage/ofd_packets [17:36:48]CheckFolder done [17:36:48]ProducePacketName [17:36:48]name=ofd_packets/00072885 [17:36:48]NVStorageSaveData ofd_packets/00072885 [17:36:48]File name is /storage/ofd_packets/00072885 [17:36:48]Write 301 bytes [17:36:48]NVStorageSaveData done [17:36:48]OFDSenderStorePacket done [17:36:48]KKMCreateOFDPacket done [17:36:48]NVStorageSaveData kkm_last_timestamp [17:36:48]File name is /storage/kkm_last_timestamp [17:36:48]Write 4 bytes [17:36:48]NVStorageSaveData done [17:36:48]ExternCall_PrintAddStr [17:36:48]wPrintStart [17:36:48]Write to MH i2c: 01 00 00 59 01 5A [17:36:48]Write i2c OK [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 07 00 [17:36:48]MH_I2C_Read... [17:36:48]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [17:36:48]RasterBufferAndPrint [17:36:48]line Счет N : (1)952472 [17:36:48]line ИНН: 02508201610067 [17:36:48]line Контрольно-Кассовый Чек [17:36:48]line ПРОДАЖА [17:36:48]line ТРК (МРК, ГНК) : 63 [17:36:48]line Товар: 2710124130 [17:36:48]line Аи-92-К-5 [17:36:48]line 10.000 * 0.00 [17:36:48]line = 0.00 [17:36:48]line НДС 12% НСП 1% [17:36:48]line > о реализуемом товаре [17:36:48]line ИТОГО: 0.00 [17:36:48]line НСП 1% : 0.00 [17:36:48]line НДС 12% : 0.00 [17:36:48]line Наличными: 0.00 [17:36:48]line Безнал.: 0.00 [17:36:48]line Место: АЗС № 113 "Партнер Нефть" [17:36:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:36:48]line СНО: Общий режим [17:36:48]line Чек 122 30.10.2024 17:36 [17:36:48]line Смена: 556 ФФД: 1.0 [17:36:48]line ЗНМ: 0300000087 [17:36:48]line РНМ: 0000000000091644 [17:36:48]line Версия ККМ: 001 [17:36:48]line Талоны: Топливная Карта [17:36:48]line 03047 [17:36:48]line ФМ: 0000000000874662 [17:36:48]line ФД: 72885 [17:36:48]line ФПД: 82783828833493 [17:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173647&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72885&fm=82783828833493&tin=02508201610067®Number=0000000000091644&sum=0 [17:36:48]written 0, free lines is 4095 [17:36:49]Write to MH i2c: 01 00 00 83 01 84 [17:36:49]Write i2c OK [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: 01 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: 01 07 00 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 E7 0C 7E [17:36:49]RasterBufferAndPrint [17:36:49]line [17:36:49]line [17:36:49]line [17:36:49]line [17:36:49]line [17:36:49]written 0, free lines is 3316 [17:36:49]MH_Cut [17:36:49]Write to MH i2c: D1 01 00 8A 01 01 5D [17:36:49]Write i2c OK [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: D1 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: D1 01 00 [17:36:49]MH_I2C_Read... [17:36:49]Read from MH i2c: D1 01 00 8A 01 00 5C [17:36:49]Write to MH i2c: 01 00 00 8B 01 8C [17:36:49]Write i2c OK [17:36:49]MH_I2C_Read... [17:36:49]recv_with_timeout no data received [17:36:50]*** Cut start [17:36:50]*** Partial cut [17:36:50]*** CUTSNS_PIN = 1 [17:36:50]*** CUTSNS_PIN = 0 [17:36:50]*** Brake cut motor [17:36:50]Read from MH i2c: 01 [17:36:50]MH_I2C_Read... [17:36:50]*** Stop cut motor [17:36:50]*** Cut end [17:36:50]Read from MH i2c: 01 07 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [17:36:50]process_action close_receipt done [17:36:50]requested_data is exist [17:36:50]produce_requested_data [17:36:50]requested_item fm.sn is exist - process it [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 11 00 00 [17:36:50]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:50]Read from MH i2c: E2 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 17 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [17:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:36:50]wFMCommunicate OK [17:36:50]requested_item fd.num is exist - process it [17:36:50]SAM_PROTO_GetFieldsCounters [17:36:50]wFMCommunicate request_size=4 [17:36:50]MH_SAM_APDU [17:36:50]CAPDU: 80 13 00 00 [17:36:50]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:50]Read from MH i2c: E2 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: E2 62 00 [17:36:50]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 62 00 8D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B5 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [17:36:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B5 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:51]wFMCommunicate OK [17:36:51]SAM_PROTO_GetFieldsCounters done [17:36:51]requested_item shift.num is exist - process it [17:36:51]requested_item shift.opened is exist - process it [17:36:51]req_shift_opened [17:36:51]FM_GetShiftState [17:36:51]SAM_PROTO_GetShiftState [17:36:51]wFMCommunicate request_size=4 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 13 01 00 [17:36:51]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 0E 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 DE [17:36:51]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:36:51]wFMCommunicate OK [17:36:51]SAM_PROTO_GetShiftState done [17:36:51]FM_GetShiftState done [17:36:51]req_shift_opened done [17:36:51]requested_item shift.open_date is exist - process it [17:36:51]req_shift_open_date [17:36:51]req_shift_open_date done [17:36:51]produce_requested_data done [17:36:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72885,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:36:51]process_action_free close_receipt [17:36:51]json_value_free [17:36:51]json_value_free done [17:36:51]process_json_proto returns [17:36:51]Send response to host [17:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72885,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:36:51]free response buf [17:36:51]execute_script done [17:36:51]execute_script returns [17:36:51]free content buf [17:36:51]Sock 8.Close socket [17:36:51]Sock 8.Thread stoped [17:36:51]ConnectInit Can't take IP for lk.salyk.kg [17:36:51]CommunicateWithHost connect error [17:36:51]CommunicateWithHost err = -1 [17:36:51]OFD Sender: Server communicate error [17:36:51]OFD Sender: Processing packet 72884 [packets to send 280, broken 278] [17:36:51]ProducePacketName [17:36:51]name=ofd_packets/00072884 [17:36:51]OFD Sender: To server: pG, [17:36:51]CommunicateWithHost lk.salyk.kg:30040 [17:36:51]ConnectInit lk.salyk.kg [17:36:55]Connected sock=8 [17:36:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 53 5B 06 01 B1 02 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 28 1E 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 4F 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4F 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4F 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A2 6E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1C 01 00 35 04 06 00 D9 BE AC 60 7D 96 4E 42 50 22 D6 9F 7E 7D [17:36:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1E 3C 47 00 75 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1C 01 00 F4 03 04 00 6F 19 22 67 B6 04 01 00 00 16 A7 80 40 07 98 38 14 [17:36:57]CommunicateWithHost err = 0 [17:36:57]CheckOFDResponse [17:36:57]1017 (14) - 77093643461234 [17:36:57]1041 (16) - 0000000000874662 [17:36:57]1040 (4) - 72884 [17:36:57]1012 (4) - 30.10.2024 11:33 [17:36:57]1206 (1) - 0 [17:36:57]OFD Sender: Remove packet 72884 [17:36:57]ProducePacketName [17:36:57]name=ofd_packets/00072884 [17:36:57]NVStorageDeleteData [17:36:57]OFD Sender: Processing packet 72885 [packets to send 279, broken 278] [17:36:57]ProducePacketName [17:36:57]name=ofd_packets/00072885 [17:36:57]OFD Sender: To server: pG, [17:36:57]CommunicateWithHost lk.salyk.kg:30040 [17:36:57]ConnectInit lk.salyk.kg [17:37:00]recv_with_timeout no data received [17:37:02]ConnectInit Can't take IP for lk.salyk.kg [17:37:02]CommunicateWithHost connect error [17:37:02]CommunicateWithHost err = -1 [17:37:02]OFD Sender: Server communicate error [17:37:07]OFD Sender: Processing packet 72885 [packets to send 279, broken 278] [17:37:07]ProducePacketName [17:37:07]name=ofd_packets/00072885 [17:37:07]OFD Sender: To server: pG, [17:37:07]CommunicateWithHost lk.salyk.kg:30040 [17:37:07]ConnectInit lk.salyk.kg [17:37:16]recv_with_timeout no data received [17:37:25]Connected sock=9 [17:37:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 6E 15 07 01 54 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 AF 6E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1C 01 00 35 04 06 00 4B 4A 9C B5 F4 D5 9D 8F B0 01 D6 F3 88 72 [17:37:30]recv_with_timeout no data received [17:37:30]CommunicateWithHost answer receiving error [17:37:30]CommunicateWithHost err = -3 [17:37:30]OFD Sender: Server communicate error [17:37:30]recv_with_timeout no data received [17:37:35]OFD Sender: Processing packet 72885 [packets to send 279, broken 278] [17:37:35]ProducePacketName [17:37:35]name=ofd_packets/00072885 [17:37:35]OFD Sender: To server: pG, [17:37:35]CommunicateWithHost lk.salyk.kg:30040 [17:37:35]ConnectInit lk.salyk.kg [17:37:44]recv_with_timeout no data received [17:37:51]Connected sock=9 [17:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 6E 15 07 01 54 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 7A 00 00 00 F4 03 04 00 AF 6E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1C 01 00 35 04 06 00 4B 4A 9C B5 F4 D5 9D 8F B0 01 D6 F3 88 72 [17:37:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 13 B9 47 00 98 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1C 01 00 F4 03 04 00 A7 19 22 67 B6 04 01 00 00 51 76 75 A4 DD 49 37 FD [17:37:53]CommunicateWithHost err = 0 [17:37:53]CheckOFDResponse [17:37:53]1017 (14) - 77093643461234 [17:37:53]1041 (16) - 0000000000874662 [17:37:53]1040 (4) - 72885 [17:37:53]1012 (4) - 30.10.2024 11:33 [17:37:53]1206 (1) - 0 [17:37:53]OFD Sender: Remove packet 72885 [17:37:53]ProducePacketName [17:37:53]name=ofd_packets/00072885 [17:37:53]NVStorageDeleteData [17:37:53]OFD Sender: No OFD packet to send [17:37:57]recv_with_timeout no data received [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:11]recv_with_timeout no data received [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:24]recv_with_timeout no data received [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]recv_with_timeout no data received [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:54]recv_with_timeout no data received [17:39:58]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:24]recv_with_timeout no data received [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:35]recv_with_timeout no data received [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:57]recv_with_timeout no data received [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:24]recv_with_timeout no data received [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:19]recv_with_timeout no data received [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:30]accept exits with 12 [17:44:30]New connection [17:44:30]New thread 3066932580 created [17:44:30]Thread 3067075940 joined [17:44:30]Waiting for new connection... [17:44:30] Sock 12.Parse request [17:44:30]Sock 12.Check first char [17:44:30]Sock 12.First char is OK [17:44:30]request: POST /json_proto HTTP/1.0 [17:44:30]Method: POST [17:44:30]URL: /json_proto [17:44:30]Method is POST - this is cgi request [17:44:30]url: /json_proto [17:44:30]query_string will be loaded in cgi processing [17:44:30]execute_cgi json_proto POST (null) [17:44:30]execute_cgi path=json_proto method=POST [17:44:30]POST find Content-Length [17:44:30]Host: 172.17.43.195:8080 [17:44:30]Content-Length: 797 [17:44:30]Content-Type: application/json [17:44:30] [17:44:30]POST finish read [17:44:30]Found Content-Length = 797 [17:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A73047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:30]execute_script... [17:44: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)952474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A73047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:30]POST & json_proto [17:44:30]process_json_proto [17:44:30]json parsed OK: [17:44:30]protocol is kg_v1.0 [17:44:30]action value=close_receipt [17:44:30]process_action close_receipt [17:44:30]cmd_close_receipt [17:44:30]MH_GetDate [17:44:30]Write to MH i2c: F0 00 00 8F 01 7F [17:44:30]Write i2c OK [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: F0 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: F0 09 00 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: F0 09 00 8F 01 00 7F 70 22 67 74 2C AD 66 B3 [17:44:30]GetLastDocTimeStamp 1730309807 [17:44:30]current date 1730310271 [17:44:30]FM_GetShiftState [17:44:30]SAM_PROTO_GetShiftState [17:44:30]wFMCommunicate request_size=4 [17:44:30]MH_SAM_APDU [17:44:30]CAPDU: 80 13 01 00 [17:44:30]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [17:44:30]Write i2c OK [17:44:30]MH_I2C_Read... [17:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:30]Read from MH i2c: E2 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 0E 00 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E0 [17:44:30]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:44:30]wFMCommunicate OK [17:44:30]SAM_PROTO_GetShiftState done [17:44:30]FM_GetShiftState done [17:44:30]opened in 1730247109 [17:44:30]opened+sec_in_day 1730333509 [17:44:30]quantity*price = 0 [17:44:30]sum+1 = 1 [17:44:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 123 30.10.2024 17:44 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 73047 ФМ: 0000000000874662 ФД: 72886 ФПД: 268287914867396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174431&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72886&fm=268287914867396&tin=02508201610067®Number=0000000000091644&sum=0 [17:44:31]StoreToDocumentArchive [17:44:31]shift 556 fd 72886 [17:44:31]save to /storage/0556/doc_00072886 [17:44:31]save last doc name /storage/0556/doc_00072886 to /storage/kkm_last_doc_name [17:44:31]save OK [17:44:31]Clear old archive folders... [17:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:44:32]tlvbuf is 00A43A90 [17:44:32]SAM_PROTO_ClearQueue [17:44:32]wFMCommunicate request_size=4 [17:44:32]MH_SAM_APDU [17:44:32]CAPDU: 80 09 00 00 [17:44:32]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [17:44:32]Write i2c OK [17:44:32]MH_I2C_Read... [17:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:32]Read from MH i2c: E2 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 03 00 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [17:44:32]RAPDU: 90 00 [17:44:32]wFMCommunicate OK [17:44:32]SAM_PROTO_ClearQueue done [17:44:32]KKMCreateOFDPacket [17:44:32]OFDProtocolAddRootSTLVToBuf [17:44:32]FM_MakeSignedData [17:44:32]FM_MakeSignedData [17:44:32]SAM_PROTO_SignData [17:44:32]wFMCommunicate request_size=4 [17:44:32]MH_SAM_APDU [17:44:32]CAPDU: 80 0D 01 02 [17:44:32]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [17:44:32]Write i2c OK [17:44:32]MH_I2C_Read... [17:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:32]Read from MH i2c: E2 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 03 00 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [17:44:32]RAPDU: 90 00 [17:44:32]wFMCommunicate OK [17:44:32]wFMCommunicate request_size=255 [17:44:32]MH_SAM_APDU [17:44: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 7F 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1C 01 00 35 04 06 00 [17:44:32]Write to MH i2c: E2 02 01 9F 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 7F 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1C 01 00 35 04 06 00 00 00 BF [17:44:32]Write i2c OK [17:44:32]MH_I2C_Read... [17:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:32]Read from MH i2c: E2 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 03 00 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [17:44:32]RAPDU: 90 00 [17:44:32]wFMCommunicate OK [17:44:32]wFMCommunicate request_size=11 [17:44:32]MH_SAM_APDU [17:44:32]CAPDU: 80 0D 02 02 06 F4 01 A5 DC FA C4 [17:44:32]Write to MH i2c: E2 0E 00 A0 01 80 0D 02 02 06 00 F4 01 A5 DC FA C4 00 00 5B [17:44:32]Write i2c OK [17:44:32]MH_I2C_Read... [17:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:32]Read from MH i2c: E2 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 03 00 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [17:44:32]RAPDU: 90 00 [17:44:32]wFMCommunicate OK [17:44:32]wFMCommunicate request_size=4 [17:44:32]MH_SAM_APDU [17:44:32]CAPDU: 80 0D 03 02 [17:44:32]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [17:44:32]Write i2c OK [17:44:32]MH_I2C_Read... [17:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:32]Read from MH i2c: E2 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 0B 00 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 0B 00 A1 01 00 D0 51 73 B5 EC 66 04 70 90 00 2D [17:44:32]RAPDU: D0 51 73 B5 EC 66 04 70 90 00 [17:44:32]wFMCommunicate OK [17:44:32]SAM_PROTO_SignData done [17:44:32]FM_MakeSignedData done [17:44:32]CreateOFDProtocolMessage [17:44:32]wFMCommunicate request_size=4 [17:44:32]MH_SAM_APDU [17:44:32]CAPDU: 80 11 00 00 [17:44:32]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [17:44:32]Write i2c OK [17:44:32]MH_I2C_Read... [17:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:32]Read from MH i2c: E2 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 17 00 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 71 [17:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:44:32]wFMCommunicate OK [17:44:32]CreateOFDProtocolMessage done [17:44:32]OFDSenderStorePacket 72886 [17:44:32]StoreOFDPacket docnum=72886 [17:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 65 C4 08 01 72 7D 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 7F 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1C 01 00 35 04 06 00 F4 01 A5 DC FA C4 D0 51 73 B5 EC 66 04 70 [17:44:32]CheckFolder [17:44:32]dirname=/storage/ofd_packets [17:44:32]CheckFolder done [17:44:32]ProducePacketName [17:44:32]name=ofd_packets/00072886 [17:44:32]NVStorageSaveData ofd_packets/00072886 [17:44:32]File name is /storage/ofd_packets/00072886 [17:44:32]Write 302 bytes [17:44:32]NVStorageSaveData done [17:44:32]OFDSenderStorePacket done [17:44:32]KKMCreateOFDPacket done [17:44:32]NVStorageSaveData kkm_last_timestamp [17:44:32]File name is /storage/kkm_last_timestamp [17:44:32]Write 4 bytes [17:44:32]NVStorageSaveData done [17:44:32]ExternCall_PrintAddStr [17:44:32]wPrintStart [17:44:32]Write to MH i2c: 01 00 00 A3 01 A4 [17:44:32]Write i2c OK [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: 01 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: 01 07 00 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [17:44:32]RasterBufferAndPrint [17:44:32]line Счет N : (1)952474 [17:44:32]line ИНН: 02508201610067 [17:44:32]line Контрольно-Кассовый Чек [17:44:32]line ПРОДАЖА [17:44:32]line ТРК (МРК, ГНК) : 22 [17:44:32]line Товар: 2710194210 [17:44:32]line ДТ(л)-К-5 [17:44:32]line 20.000 * 0.00 [17:44:32]line = 0.00 [17:44:32]line НДС 12% НСП 1% [17:44:32]line > о реализуемом товаре [17:44:32]line ИТОГО: 0.00 [17:44:32]line НСП 1% : 0.00 [17:44:32]line НДС 12% : 0.00 [17:44:32]line Наличными: 0.00 [17:44:32]line Безнал.: 0.00 [17:44:32]line Место: АЗС № 113 "Партнер Нефть" [17:44:32]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:44:32]line СНО: Общий режим [17:44:32]line Чек 123 30.10.2024 17:44 [17:44:32]line Смена: 556 ФФД: 1.0 [17:44:32]line ЗНМ: 0300000087 [17:44:32]line РНМ: 0000000000091644 [17:44:32]line Версия ККМ: 001 [17:44:32]line Талоны: Топливная Карта [17:44:32]line 73047 [17:44:32]line ФМ: 0000000000874662 [17:44:32]line ФД: 72886 [17:44:32]line ФПД: 268287914867396 [17:44:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174431&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72886&fm=268287914867396&tin=02508201610067®Number=0000000000091644&sum=0 [17:44:32]written 0, free lines is 4095 [17:44:32]OFD Sender: Processing packet 72886 [packets to send 279, broken 278] [17:44:32]ProducePacketName [17:44:32]name=ofd_packets/00072886 [17:44:32]OFD Sender: To server: pG, [17:44:32]CommunicateWithHost lk.salyk.kg:30040 [17:44:32]ConnectInit lk.salyk.kg [17:44:33]Write to MH i2c: 01 00 00 CD 01 CE [17:44:33]Write i2c OK [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: 01 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: 01 07 00 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 E4 0C C5 [17:44:33]RasterBufferAndPrint [17:44:33]line [17:44:33]line [17:44:33]line [17:44:33]line [17:44:33]line [17:44:33]written 0, free lines is 3306 [17:44:33]MH_Cut [17:44:33]Write to MH i2c: D1 01 00 D4 01 01 A7 [17:44:33]Write i2c OK [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: D1 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: D1 01 00 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: D1 01 00 D4 01 00 A6 [17:44:33]Write to MH i2c: 01 00 00 D5 01 D6 [17:44:33]Write i2c OK [17:44:33]MH_I2C_Read... [17:44:33]Connected sock=9 [17:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 65 C4 08 01 72 7D 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 7F 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1C 01 00 35 04 06 00 F4 01 A5 DC FA C4 D0 51 73 B5 EC 66 04 70 [17:44:34]*** Cut start [17:44:34]*** Partial cut [17:44:34]*** CUTSNS_PIN = 1 [17:44:34]*** CUTSNS_PIN = 0 [17:44:34]*** Brake cut motor [17:44:34]Read from MH i2c: 01 [17:44:34]MH_I2C_Read... [17:44:34]*** Stop cut motor [17:44:34]*** Cut end [17:44:34]Read from MH i2c: 01 07 00 [17:44:34]MH_I2C_Read... [17:44:34]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [17:44:34]process_action close_receipt done [17:44:34]requested_data is exist [17:44:34]produce_requested_data [17:44:34]requested_item fm.sn is exist - process it [17:44:34]wFMCommunicate request_size=4 [17:44:34]MH_SAM_APDU [17:44:34]CAPDU: 80 11 00 00 [17:44:34]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [17:44:34]Write i2c OK [17:44:34]MH_I2C_Read... [17:44:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D7 A5 47 00 15 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1C 01 00 F4 03 04 00 38 1B 22 67 B6 04 01 00 00 47 41 D9 66 19 90 DF 33 [17:44:34]CommunicateWithHost err = 0 [17:44:34]CheckOFDResponse [17:44:34]1017 (14) - 77093643461234 [17:44:34]1041 (16) - 0000000000874662 [17:44:34]1040 (4) - 72886 [17:44:34]1012 (4) - 30.10.2024 11:40 [17:44:34]1206 (1) - 0 [17:44:34]OFD Sender: Remove packet 72886 [17:44:34]ProducePacketName [17:44:34]name=ofd_packets/00072886 [17:44:34]NVStorageDeleteData [17:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:34]Read from MH i2c: E2 [17:44:34]MH_I2C_Read... [17:44:34]Read from MH i2c: E2 17 00 [17:44:34]MH_I2C_Read... [17:44:34]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A5 [17:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:44:34]wFMCommunicate OK [17:44:34]requested_item fd.num is exist - process it [17:44:34]SAM_PROTO_GetFieldsCounters [17:44:34]wFMCommunicate request_size=4 [17:44:34]MH_SAM_APDU [17:44:34]CAPDU: 80 13 00 00 [17:44:34]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [17:44:34]Write i2c OK [17:44:34]MH_I2C_Read... [17:44:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:34]Read from MH i2c: E2 [17:44:34]MH_I2C_Read... [17:44:34]Read from MH i2c: E2 62 00 [17:44:34]MH_I2C_Read... [17:44:34]Read from MH i2c: E2 62 00 D7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B6 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [17:44:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B6 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:34]wFMCommunicate OK [17:44:34]SAM_PROTO_GetFieldsCounters done [17:44:34]requested_item shift.num is exist - process it [17:44:34]requested_item shift.opened is exist - process it [17:44:34]req_shift_opened [17:44:34]FM_GetShiftState [17:44:34]SAM_PROTO_GetShiftState [17:44:34]wFMCommunicate request_size=4 [17:44:34]MH_SAM_APDU [17:44:34]CAPDU: 80 13 01 00 [17:44:34]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [17:44:34]Write i2c OK [17:44:34]MH_I2C_Read... [17:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:34]Read from MH i2c: E2 [17:44:34]MH_I2C_Read... [17:44:34]Read from MH i2c: E2 0E 00 [17:44:34]MH_I2C_Read... [17:44:34]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 28 [17:44:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:44:34]wFMCommunicate OK [17:44:34]SAM_PROTO_GetShiftState done [17:44:34]FM_GetShiftState done [17:44:34]req_shift_opened done [17:44:34]requested_item shift.open_date is exist - process it [17:44:34]req_shift_open_date [17:44:34]req_shift_open_date done [17:44:34]produce_requested_data done [17:44:34]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72886,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:44:34]process_action_free close_receipt [17:44:34]json_value_free [17:44:34]json_value_free done [17:44:34]process_json_proto returns [17:44:34]Send response to host [17:44:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72886,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:44:34]free response buf [17:44:34]execute_script done [17:44:34]execute_script returns [17:44:34]free content buf [17:44:34]Sock 12.Close socket [17:44:34]Sock 12.Thread stoped [17:44:35]OFD Sender: No OFD packet to send [17:44:39]recv_with_timeout no data received [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]recv_with_timeout no data received [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:07]recv_with_timeout no data received [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:27]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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]recv_with_timeout no data received [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:39]recv_with_timeout no data received [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:12]recv_with_timeout no data received [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:00]recv_with_timeout no data received [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:10]recv_with_timeout no data received [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:55]recv_with_timeout no data received [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:12]recv_with_timeout no data received [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:22]recv_with_timeout no data received [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:22]recv_with_timeout no data received [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:55]accept exits with 8 [17:55:55]New connection [17:55:55]New thread 3067075940 created [17:55:55]Thread 3066932580 joined [17:55:55]Waiting for new connection... [17:55:55] Sock 8.Parse request [17:55:55]Sock 8.Check first char [17:55:55]Sock 8.First char is OK [17:55:55]request: POST /json_proto HTTP/1.0 [17:55:55]Method: POST [17:55:55]URL: /json_proto [17:55:55]Method is POST - this is cgi request [17:55:55]url: /json_proto [17:55:55]query_string will be loaded in cgi processing [17:55:55]execute_cgi json_proto POST (null) [17:55:55]execute_cgi path=json_proto method=POST [17:55:55]POST find Content-Length [17:55:55]Host: 172.17.43.195:8080 [17:55:55]Content-Length: 843 [17:55:55]Content-Type: application/json [17:55:55] [17:55:55]POST finish read [17:55:55]Found Content-Length = 843 [17:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:55]execute_script... [17:55:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:55]POST & json_proto [17:55:55]process_json_proto [17:55:55]json parsed OK: [17:55:55]protocol is kg_v1.0 [17:55:55]action value=close_receipt [17:55:55]process_action close_receipt [17:55:55]cmd_close_receipt [17:55:55]MH_GetDate [17:55:55]Write to MH i2c: F0 00 00 D9 01 C9 [17:55:55]Write i2c OK [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: F0 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: F0 09 00 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: F0 09 00 D9 01 00 2C 73 22 67 74 2C AD 66 AD [17:55:55]GetLastDocTimeStamp 1730310271 [17:55:55]current date 1730310956 [17:55:55]FM_GetShiftState [17:55:55]SAM_PROTO_GetShiftState [17:55:55]wFMCommunicate request_size=4 [17:55:55]MH_SAM_APDU [17:55:55]CAPDU: 80 13 01 00 [17:55:55]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [17:55:55]Write i2c OK [17:55:55]MH_I2C_Read... [17:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:55]Read from MH i2c: E2 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: E2 0E 00 [17:55:55]MH_I2C_Read... [17:55:55]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 2A [17:55:55]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:55:55]wFMCommunicate OK [17:55:55]SAM_PROTO_GetShiftState done [17:55:55]FM_GetShiftState done [17:55:55]opened in 1730247109 [17:55:55]opened+sec_in_day 1730333509 [17:55:55]quantity*price = 400012 [17:55:55]sum+1 = 400013 [17:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.12 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.12 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 124 30.10.2024 17:55 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72887 ФПД: 24483489474976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T175556&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72887&fm=24483489474976&tin=02508201610067®Number=0000000000091644&sum=400012 [17:55:56]StoreToDocumentArchive [17:55:56]shift 556 fd 72887 [17:55:56]save to /storage/0556/doc_00072887 [17:55:56]save last doc name /storage/0556/doc_00072887 to /storage/kkm_last_doc_name [17:55:56]save OK [17:55:56]Clear old archive folders... [17:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:56]tlvbuf is 00A43910 [17:55:56]SAM_PROTO_ClearQueue [17:55:56]wFMCommunicate request_size=4 [17:55:56]MH_SAM_APDU [17:55:56]CAPDU: 80 09 00 00 [17:55:56]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [17:55:56]Write i2c OK [17:55:56]MH_I2C_Read... [17:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:56]Read from MH i2c: E2 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: E2 03 00 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [17:55:56]RAPDU: 90 00 [17:55:56]wFMCommunicate OK [17:55:56]SAM_PROTO_ClearQueue done [17:55:56]KKMCreateOFDPacket [17:55:56]OFDProtocolAddRootSTLVToBuf [17:55:56]FM_MakeSignedData [17:55:56]FM_MakeSignedData [17:55:56]SAM_PROTO_SignData [17:55:56]wFMCommunicate request_size=4 [17:55:56]MH_SAM_APDU [17:55:56]CAPDU: 80 0D 01 02 [17:55:56]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [17:55:56]Write i2c OK [17:55:56]MH_I2C_Read... [17:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:56]Read from MH i2c: E2 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: E2 03 00 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [17:55:56]RAPDU: 90 00 [17:55:56]wFMCommunicate OK [17:55:56]wFMCommunicate request_size=255 [17:55:56]MH_SAM_APDU [17:55:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2C 73 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1C 01 00 35 04 06 00 16 [17:55:56]Write to MH i2c: E2 02 01 E9 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 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2C 73 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1C 01 00 35 04 06 00 16 00 00 23 [17:55:56]Write i2c OK [17:55:56]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [17:55:57]RAPDU: 90 00 [17:55:57]wFMCommunicate OK [17:55:57]wFMCommunicate request_size=10 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 0D 02 02 05 44 81 B1 69 A0 [17:55:57]Write to MH i2c: E2 0D 00 EA 01 80 0D 02 02 05 00 44 81 B1 69 A0 00 00 EE [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [17:55:57]RAPDU: 90 00 [17:55:57]wFMCommunicate OK [17:55:57]wFMCommunicate request_size=4 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 0D 03 02 [17:55:57]Write to MH i2c: E2 08 00 EB 01 80 0D 03 02 00 00 00 00 67 [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 0B 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 0B 00 EB 01 00 27 73 1E A2 D5 CF 55 8C 90 00 47 [17:55:57]RAPDU: 27 73 1E A2 D5 CF 55 8C 90 00 [17:55:57]wFMCommunicate OK [17:55:57]SAM_PROTO_SignData done [17:55:57]FM_MakeSignedData done [17:55:57]CreateOFDProtocolMessage [17:55:57]wFMCommunicate request_size=4 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 11 00 00 [17:55:57]Write to MH i2c: E2 08 00 EC 01 80 11 00 00 00 00 00 00 67 [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 17 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 17 00 EC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BB [17:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:55:57]wFMCommunicate OK [17:55:57]CreateOFDProtocolMessage done [17:55:57]OFDSenderStorePacket 72887 [17:55:57]StoreOFDPacket docnum=72887 [17:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5C 39 07 01 2C 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2C 73 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1C 01 00 35 04 06 00 16 44 81 B1 69 A0 27 73 1E A2 D5 CF 55 8C [17:55:57]CheckFolder [17:55:57]dirname=/storage/ofd_packets [17:55:57]CheckFolder done [17:55:57]ProducePacketName [17:55:57]name=ofd_packets/00072887 [17:55:57]NVStorageSaveData ofd_packets/00072887 [17:55:57]File name is /storage/ofd_packets/00072887 [17:55:57]Write 301 bytes [17:55:57]NVStorageSaveData done [17:55:57]OFDSenderStorePacket done [17:55:57]KKMCreateOFDPacket done [17:55:57]NVStorageSaveData kkm_last_timestamp [17:55:57]File name is /storage/kkm_last_timestamp [17:55:57]Write 4 bytes [17:55:57]NVStorageSaveData done [17:55:57]ExternCall_PrintAddStr [17:55:57]wPrintStart [17:55:57]Write to MH i2c: 01 00 00 ED 01 EE [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: 01 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: 01 07 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [17:55:57]RasterBufferAndPrint [17:55:57]line Счет N : (1)952476 [17:55:57]line ИНН: 02508201610067 [17:55:57]line Контрольно-Кассовый Чек [17:55:57]line ПРОДАЖА [17:55:57]line ТРК (МРК, ГНК) : 52 [17:55:57]line Товар: 2710124500 [17:55:57]line Аи-95-К-3 [17:55:57]line 53.910 * 74.20 [17:55:57]line = 4000.12 [17:55:57]line НДС 12% НСП 1% [17:55:57]line > о реализуемом товаре [17:55:57]line ИТОГО: 4000.12 [17:55:57]line НСП 1% : 35.40 [17:55:57]line НДС 12% : 424.79 [17:55:57]line Наличными: 0.00 [17:55:57]line Безнал.: 4000.12 [17:55:57]line Место: АЗС № 113 "Партнер Нефть" [17:55:57]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:55:57]line СНО: Общий режим [17:55:57]line Чек 124 30.10.2024 17:55 [17:55:57]line Смена: 556 ФФД: 1.0 [17:55:57]line ЗНМ: 0300000087 [17:55:57]line РНМ: 0000000000091644 [17:55:57]line Версия ККМ: 001 [17:55:57]line Платежная система: АКБ Кыргызстан [17:55:57]line ФМ: 0000000000874662 [17:55:57]line ФД: 72887 [17:55:57]line ФПД: 24483489474976 [17:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T175556&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72887&fm=24483489474976&tin=02508201610067®Number=0000000000091644&sum=400012 [17:55:57]written 0, free lines is 4095 [17:55:57]OFD Sender: Processing packet 72887 [packets to send 279, broken 278] [17:55:57]ProducePacketName [17:55:57]name=ofd_packets/00072887 [17:55:57]OFD Sender: To server: pG, [17:55:57]CommunicateWithHost lk.salyk.kg:30040 [17:55:57]ConnectInit lk.salyk.kg [17:55:57]Write to MH i2c: 01 00 00 17 02 19 [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: 01 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: 01 07 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 ED 0C 19 [17:55:57]RasterBufferAndPrint [17:55:57]line [17:55:57]line [17:55:57]line [17:55:57]line [17:55:57]line [17:55:57]written 0, free lines is 3315 [17:55:57]MH_Cut [17:55:57]Write to MH i2c: D1 01 00 1E 02 01 F2 [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: D1 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: D1 01 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: D1 01 00 1E 02 00 F1 [17:55:57]Write to MH i2c: 01 00 00 1F 02 21 [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:58]Connected sock=9 [17:55:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5C 39 07 01 2C 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2C 73 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1C 01 00 35 04 06 00 16 44 81 B1 69 A0 27 73 1E A2 D5 CF 55 8C [17:55:58]*** Cut start [17:55:58]*** Partial cut [17:55:58]*** CUTSNS_PIN = 1 [17:55:58]*** CUTSNS_PIN = 0 [17:55:58]*** Brake cut motor [17:55:59]Read from MH i2c: 01 [17:55:59]MH_I2C_Read... [17:55:59]*** Stop cut motor [17:55:59]*** Cut end [17:55:59]Read from MH i2c: 01 07 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 07 00 1F 02 00 00 00 00 00 FF 0F 36 [17:55:59]process_action close_receipt done [17:55:59]requested_data is exist [17:55:59]produce_requested_data [17:55:59]requested_item fm.sn is exist - process it [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 11 00 00 [17:55:59]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 17 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F0 [17:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:55:59]wFMCommunicate OK [17:55:59]requested_item fd.num is exist - process it [17:55:59]SAM_PROTO_GetFieldsCounters [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 13 00 00 [17:55:59]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 62 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 62 00 21 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B7 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [17:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B7 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:59]wFMCommunicate OK [17:55:59]SAM_PROTO_GetFieldsCounters done [17:55:59]requested_item shift.num is exist - process it [17:55:59]requested_item shift.opened is exist - process it [17:55:59]req_shift_opened [17:55:59]FM_GetShiftState [17:55:59]SAM_PROTO_GetShiftState [17:55:59]wFMCommunicate request_size=4 [17:55:59]MH_SAM_APDU [17:55:59]CAPDU: 80 13 01 00 [17:55:59]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 0E 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 73 [17:55:59]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [17:55:59]wFMCommunicate OK [17:55:59]SAM_PROTO_GetShiftState done [17:55:59]FM_GetShiftState done [17:55:59]req_shift_opened done [17:55:59]requested_item shift.open_date is exist - process it [17:55:59]req_shift_open_date [17:55:59]req_shift_open_date done [17:55:59]produce_requested_data done [17:55:59]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72887,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [17:55:59]process_action_free close_receipt [17:55:59]json_value_free [17:55:59]json_value_free done [17:55:59]process_json_proto returns [17:55:59]Send response to host [17:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72887,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [17:55:59]free response buf [17:55:59]execute_script done [17:55:59]execute_script returns [17:55:59]free content buf [17:55:59]Sock 8.Close socket [17:55:59]Sock 8.Thread stoped [17:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6F 69 47 00 D7 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1C 01 00 F4 03 04 00 E4 1D 22 67 B6 04 01 00 00 0F 86 94 FB 69 57 51 BE [17:55:59]CommunicateWithHost err = 0 [17:55:59]CheckOFDResponse [17:55:59]1017 (14) - 77093643461234 [17:55:59]1041 (16) - 0000000000874662 [17:55:59]1040 (4) - 72887 [17:55:59]1012 (4) - 30.10.2024 11:52 [17:55:59]1206 (1) - 0 [17:55:59]OFD Sender: Remove packet 72887 [17:55:59]ProducePacketName [17:55:59]name=ofd_packets/00072887 [17:55:59]NVStorageDeleteData [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:42]recv_with_timeout no data received [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:08]recv_with_timeout no data received [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:26]recv_with_timeout no data received [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:02]recv_with_timeout no data received [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:11]recv_with_timeout no data received [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:37]recv_with_timeout no data received [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:54]recv_with_timeout no data received [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:39]recv_with_timeout no data received [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]recv_with_timeout no data received [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:39]recv_with_timeout no data received [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:36]recv_with_timeout no data received [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:49]recv_with_timeout no data received [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:01]recv_with_timeout no data received [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]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:41]recv_with_timeout no data received [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:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:40]recv_with_timeout no data received [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:27]recv_with_timeout no data received [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:38]recv_with_timeout no data received [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:28]recv_with_timeout no data received [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]accept exits with 10 [18:08:41]New connection [18:08:41]New thread 3066932580 created [18:08:41]Thread 3067075940 joined [18:08:41]Waiting for new connection... [18:08:41] Sock 10.Parse request [18:08:41]Sock 10.Check first char [18:08:41]Sock 10.First char is OK [18:08:41]request: POST /json_proto HTTP/1.0 [18:08:41]Method: POST [18:08:41]URL: /json_proto [18:08:41]Method is POST - this is cgi request [18:08:41]url: /json_proto [18:08:41]query_string will be loaded in cgi processing [18:08:41]execute_cgi json_proto POST (null) [18:08:41]execute_cgi path=json_proto method=POST [18:08:41]POST find Content-Length [18:08:41]Host: 172.17.43.195:8080 [18:08:41]Content-Length: 792 [18:08:41]Content-Type: application/json [18:08:41] [18:08:41]POST finish read [18:08:41]Found Content-Length = 792 [18:08:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 17.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:41]execute_script... [18:08:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 17.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:41]POST & json_proto [18:08:41]process_json_proto [18:08:41]json parsed OK: [18:08:41]protocol is kg_v1.0 [18:08:41]action value=close_receipt [18:08:41]process_action close_receipt [18:08:41]cmd_close_receipt [18:08:41]MH_GetDate [18:08:41]Write to MH i2c: F0 00 00 23 02 14 [18:08:41]Write i2c OK [18:08:41]MH_I2C_Read... [18:08:41]Read from MH i2c: F0 [18:08:41]MH_I2C_Read... [18:08:41]Read from MH i2c: F0 09 00 [18:08:41]MH_I2C_Read... [18:08:41]Read from MH i2c: F0 09 00 23 02 00 29 76 22 67 74 2C AD 66 F8 [18:08:41]GetLastDocTimeStamp 1730310956 [18:08:41]current date 1730311721 [18:08:41]FM_GetShiftState [18:08:41]SAM_PROTO_GetShiftState [18:08:41]wFMCommunicate request_size=4 [18:08:41]MH_SAM_APDU [18:08:41]CAPDU: 80 13 01 00 [18:08:41]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [18:08:41]Write i2c OK [18:08:41]MH_I2C_Read... [18:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:41]Read from MH i2c: E2 [18:08:41]MH_I2C_Read... [18:08:41]Read from MH i2c: E2 0E 00 [18:08:41]MH_I2C_Read... [18:08:41]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 75 [18:08:41]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:08:41]wFMCommunicate OK [18:08:41]SAM_PROTO_GetShiftState done [18:08:41]FM_GetShiftState done [18:08:41]opened in 1730247109 [18:08:41]opened+sec_in_day 1730333509 [18:08:41]quantity*price = 0 [18:08:41]sum+1 = 1 [18:08:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 125 30.10.2024 18:08 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72888 ФПД: 20052465836822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T180841&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72888&fm=20052465836822&tin=02508201610067®Number=0000000000091644&sum=0 [18:08:42]StoreToDocumentArchive [18:08:42]shift 556 fd 72888 [18:08:42]save to /storage/0556/doc_00072888 [18:08:42]save last doc name /storage/0556/doc_00072888 to /storage/kkm_last_doc_name [18:08:42]save OK [18:08:42]Clear old archive folders... [18:08:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:42]tlvbuf is 00A42680 [18:08:42]SAM_PROTO_ClearQueue [18:08:42]wFMCommunicate request_size=4 [18:08:42]MH_SAM_APDU [18:08:42]CAPDU: 80 09 00 00 [18:08:42]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:42]Read from MH i2c: E2 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 03 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [18:08:42]RAPDU: 90 00 [18:08:42]wFMCommunicate OK [18:08:42]SAM_PROTO_ClearQueue done [18:08:42]KKMCreateOFDPacket [18:08:42]OFDProtocolAddRootSTLVToBuf [18:08:42]FM_MakeSignedData [18:08:42]FM_MakeSignedData [18:08:42]SAM_PROTO_SignData [18:08:42]wFMCommunicate request_size=4 [18:08:42]MH_SAM_APDU [18:08:42]CAPDU: 80 0D 01 02 [18:08:42]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:42]Read from MH i2c: E2 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 03 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [18:08:42]RAPDU: 90 00 [18:08:42]wFMCommunicate OK [18:08:42]wFMCommunicate request_size=255 [18:08:42]MH_SAM_APDU [18:08:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 42 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 7D 00 00 00 F4 03 04 00 29 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1C 01 00 35 04 06 00 12 [18:08:42]Write to MH i2c: E2 02 01 33 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 68 42 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 7D 00 00 00 F4 03 04 00 29 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1C 01 00 35 04 06 00 12 00 00 1B [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:42]Read from MH i2c: E2 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 03 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [18:08:42]RAPDU: 90 00 [18:08:42]wFMCommunicate OK [18:08:42]wFMCommunicate request_size=10 [18:08:42]MH_SAM_APDU [18:08:42]CAPDU: 80 0D 02 02 05 3C D4 1A 63 16 [18:08:42]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 3C D4 1A 63 16 00 00 5D [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:42]Read from MH i2c: E2 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 03 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [18:08:42]RAPDU: 90 00 [18:08:42]wFMCommunicate OK [18:08:42]wFMCommunicate request_size=4 [18:08:42]MH_SAM_APDU [18:08:42]CAPDU: 80 0D 03 02 [18:08:42]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:42]Read from MH i2c: E2 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 0B 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 0B 00 35 02 00 70 84 3E AA FE C6 B8 3A 90 00 45 [18:08:42]RAPDU: 70 84 3E AA FE C6 B8 3A 90 00 [18:08:42]wFMCommunicate OK [18:08:42]SAM_PROTO_SignData done [18:08:42]FM_MakeSignedData done [18:08:42]CreateOFDProtocolMessage [18:08:42]wFMCommunicate request_size=4 [18:08:42]MH_SAM_APDU [18:08:42]CAPDU: 80 11 00 00 [18:08:42]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:42]Read from MH i2c: E2 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 17 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 06 [18:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:08:42]wFMCommunicate OK [18:08:42]CreateOFDProtocolMessage done [18:08:42]OFDSenderStorePacket 72888 [18:08:42]StoreOFDPacket docnum=72888 [18:08:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 57 37 07 01 5A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 42 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 7D 00 00 00 F4 03 04 00 29 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1C 01 00 35 04 06 00 12 3C D4 1A 63 16 70 84 3E AA FE C6 B8 3A [18:08:42]CheckFolder [18:08:42]dirname=/storage/ofd_packets [18:08:42]CheckFolder done [18:08:42]ProducePacketName [18:08:42]name=ofd_packets/00072888 [18:08:42]NVStorageSaveData ofd_packets/00072888 [18:08:42]File name is /storage/ofd_packets/00072888 [18:08:42]Write 301 bytes [18:08:42]NVStorageSaveData done [18:08:42]OFDSenderStorePacket done [18:08:42]KKMCreateOFDPacket done [18:08:42]NVStorageSaveData kkm_last_timestamp [18:08:42]File name is /storage/kkm_last_timestamp [18:08:42]Write 4 bytes [18:08:42]NVStorageSaveData done [18:08:42]ExternCall_PrintAddStr [18:08:42]wPrintStart [18:08:42]Write to MH i2c: 01 00 00 37 02 39 [18:08:42]Write i2c OK [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: 01 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: 01 07 00 [18:08:42]MH_I2C_Read... [18:08:42]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [18:08:42]RasterBufferAndPrint [18:08:42]line Счет N : (1)952477 [18:08:42]line ИНН: 02508201610067 [18:08:42]line Контрольно-Кассовый Чек [18:08:42]line ПРОДАЖА [18:08:42]line ТРК (МРК, ГНК) : 53 [18:08:42]line Товар: 2710124130 [18:08:42]line Аи-92-К-5 [18:08:42]line 17.000 * 0.00 [18:08:42]line = 0.00 [18:08:42]line НДС 12% НСП 1% [18:08:42]line > о реализуемом товаре [18:08:42]line ИТОГО: 0.00 [18:08:42]line НСП 1% : 0.00 [18:08:42]line НДС 12% : 0.00 [18:08:42]line Наличными: 0.00 [18:08:42]line Безнал.: 0.00 [18:08:42]line Место: АЗС № 113 "Партнер Нефть" [18:08:42]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:08:42]line СНО: Общий режим [18:08:42]line Чек 125 30.10.2024 18:08 [18:08:42]line Смена: 556 ФФД: 1.0 [18:08:42]line ЗНМ: 0300000087 [18:08:42]line РНМ: 0000000000091644 [18:08:42]line Версия ККМ: 001 [18:08:42]line Талоны: Топливная Карта [18:08:42]line 03047 [18:08:42]line ФМ: 0000000000874662 [18:08:42]line ФД: 72888 [18:08:42]line ФПД: 20052465836822 [18:08:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T180841&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72888&fm=20052465836822&tin=02508201610067®Number=0000000000091644&sum=0 [18:08:42]written 0, free lines is 4095 [18:08:42]OFD Sender: Processing packet 72888 [packets to send 279, broken 278] [18:08:42]ProducePacketName [18:08:42]name=ofd_packets/00072888 [18:08:42]OFD Sender: To server: pG, [18:08:42]CommunicateWithHost lk.salyk.kg:30040 [18:08:42]ConnectInit lk.salyk.kg [18:08:43]Write to MH i2c: 01 00 00 61 02 63 [18:08:43]Write i2c OK [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: 01 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: 01 07 00 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: 01 07 00 61 02 00 00 00 00 00 E6 0C 5C [18:08:43]RasterBufferAndPrint [18:08:43]line [18:08:43]line [18:08:43]line [18:08:43]line [18:08:43]line [18:08:43]written 0, free lines is 3309 [18:08:43]MH_Cut [18:08:43]Write to MH i2c: D1 01 00 68 02 01 3C [18:08:43]Write i2c OK [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: D1 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: D1 01 00 [18:08:43]MH_I2C_Read... [18:08:43]Read from MH i2c: D1 01 00 68 02 00 3B [18:08:43]Write to MH i2c: 01 00 00 69 02 6B [18:08:43]Write i2c OK [18:08:43]MH_I2C_Read... [18:08:44]*** Cut start [18:08:44]*** Partial cut [18:08:44]*** CUTSNS_PIN = 1 [18:08:44]*** CUTSNS_PIN = 0 [18:08:44]*** Brake cut motor [18:08:44]Read from MH i2c: 01 [18:08:44]MH_I2C_Read... [18:08:44]*** Stop cut motor [18:08:44]*** Cut end [18:08:44]Read from MH i2c: 01 07 00 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [18:08:44]process_action close_receipt done [18:08:44]requested_data is exist [18:08:44]produce_requested_data [18:08:44]requested_item fm.sn is exist - process it [18:08:44]wFMCommunicate request_size=4 [18:08:44]MH_SAM_APDU [18:08:44]CAPDU: 80 11 00 00 [18:08:44]Write to MH i2c: E2 08 00 6A 02 80 11 00 00 00 00 00 00 E6 [18:08:44]Write i2c OK [18:08:44]MH_I2C_Read... [18:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:44]Read from MH i2c: E2 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: E2 17 00 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: E2 17 00 6A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3A [18:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:08:44]wFMCommunicate OK [18:08:44]requested_item fd.num is exist - process it [18:08:44]SAM_PROTO_GetFieldsCounters [18:08:44]wFMCommunicate request_size=4 [18:08:44]MH_SAM_APDU [18:08:44]CAPDU: 80 13 00 00 [18:08:44]Write to MH i2c: E2 08 00 6B 02 80 13 00 00 00 00 00 00 E9 [18:08:44]Write i2c OK [18:08:44]MH_I2C_Read... [18:08:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:44]Read from MH i2c: E2 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: E2 62 00 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: E2 62 00 6B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B8 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [18:08:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B8 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:44]wFMCommunicate OK [18:08:44]SAM_PROTO_GetFieldsCounters done [18:08:44]requested_item shift.num is exist - process it [18:08:44]requested_item shift.opened is exist - process it [18:08:44]req_shift_opened [18:08:44]FM_GetShiftState [18:08:44]SAM_PROTO_GetShiftState [18:08:44]wFMCommunicate request_size=4 [18:08:44]MH_SAM_APDU [18:08:44]CAPDU: 80 13 01 00 [18:08:44]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [18:08:44]Write i2c OK [18:08:44]MH_I2C_Read... [18:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:44]Read from MH i2c: E2 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: E2 0E 00 [18:08:44]MH_I2C_Read... [18:08:44]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 BD [18:08:44]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:08:44]wFMCommunicate OK [18:08:44]SAM_PROTO_GetShiftState done [18:08:44]FM_GetShiftState done [18:08:44]req_shift_opened done [18:08:44]requested_item shift.open_date is exist - process it [18:08:44]req_shift_open_date [18:08:44]req_shift_open_date done [18:08:44]produce_requested_data done [18:08:44]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72888,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [18:08:44]process_action_free close_receipt [18:08:44]json_value_free [18:08:44]json_value_free done [18:08:44]process_json_proto returns [18:08:44]Send response to host [18:08:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72888,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [18:08:44]free response buf [18:08:44]execute_script done [18:08:44]execute_script returns [18:08:44]free content buf [18:08:44]Sock 10.Close socket [18:08:44]Sock 10.Thread stoped [18:08:46]Connected sock=11 [18:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 57 37 07 01 5A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 42 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 7D 00 00 00 F4 03 04 00 29 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1C 01 00 35 04 06 00 12 3C D4 1A 63 16 70 84 3E AA FE C6 B8 3A [18:08:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0A 0A 47 00 CF CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1C 01 00 F4 03 04 00 E5 20 22 67 B6 04 01 00 00 7C C0 66 33 AE 02 70 73 [18:08:47]CommunicateWithHost err = 0 [18:08:47]CheckOFDResponse [18:08:47]1017 (14) - 77093643461234 [18:08:47]1041 (16) - 0000000000874662 [18:08:47]1040 (4) - 72888 [18:08:47]1012 (4) - 30.10.2024 12:04 [18:08:47]1206 (1) - 0 [18:08:47]OFD Sender: Remove packet 72888 [18:08:47]ProducePacketName [18:08:47]name=ofd_packets/00072888 [18:08:47]NVStorageDeleteData [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:08:57]recv_with_timeout no data received [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:10]recv_with_timeout no data received [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:23]recv_with_timeout no data received [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:21]recv_with_timeout no data received [18:10:21]accept exits with 9 [18:10:21]New connection [18:10:21]New thread 3067075940 created [18:10:21]Thread 3066932580 joined [18:10:21]Waiting for new connection... [18:10:21] Sock 9.Parse request [18:10:21]Sock 9.Check first char [18:10:21]Sock 9.First char is OK [18:10:21]request: POST /json_proto HTTP/1.0 [18:10:21]Method: POST [18:10:21]URL: /json_proto [18:10:21]Method is POST - this is cgi request [18:10:21]url: /json_proto [18:10:21]query_string will be loaded in cgi processing [18:10:21]execute_cgi json_proto POST (null) [18:10:21]execute_cgi path=json_proto method=POST [18:10:21]POST find Content-Length [18:10:21]Host: 172.17.43.195:8080 [18:10:21]Content-Length: 792 [18:10:21]Content-Type: application/json [18:10:21] [18:10:21]POST finish read [18:10:21]Found Content-Length = 792 [18:10:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:21]execute_script... [18:10: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)952479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:21]POST & json_proto [18:10:21]process_json_proto [18:10:21]json parsed OK: [18:10:21]protocol is kg_v1.0 [18:10:21]action value=close_receipt [18:10:21]process_action close_receipt [18:10:21]cmd_close_receipt [18:10:21]MH_GetDate [18:10:21]Write to MH i2c: F0 00 00 6D 02 5E [18:10:21]Write i2c OK [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: F0 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: F0 09 00 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: F0 09 00 6D 02 00 8E 76 22 67 74 2C AD 66 A7 [18:10:21]GetLastDocTimeStamp 1730311721 [18:10:21]current date 1730311822 [18:10:21]FM_GetShiftState [18:10:21]SAM_PROTO_GetShiftState [18:10:21]wFMCommunicate request_size=4 [18:10:21]MH_SAM_APDU [18:10:21]CAPDU: 80 13 01 00 [18:10:21]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [18:10:21]Write i2c OK [18:10:21]MH_I2C_Read... [18:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:21]Read from MH i2c: E2 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: E2 0E 00 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 BF [18:10:21]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:10:21]wFMCommunicate OK [18:10:21]SAM_PROTO_GetShiftState done [18:10:21]FM_GetShiftState done [18:10:21]opened in 1730247109 [18:10:21]opened+sec_in_day 1730333509 [18:10:21]quantity*price = 0 [18:10:21]sum+1 = 1 [18:10:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 126 30.10.2024 18:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72889 ФПД: 105189565972010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181022&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72889&fm=105189565972010&tin=02508201610067®Number=0000000000091644&sum=0 [18:10:22]StoreToDocumentArchive [18:10:22]shift 556 fd 72889 [18:10:22]save to /storage/0556/doc_00072889 [18:10:22]save last doc name /storage/0556/doc_00072889 to /storage/kkm_last_doc_name [18:10:22]save OK [18:10:22]Clear old archive folders... [18:10:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:22]tlvbuf is 00A39D60 [18:10:22]SAM_PROTO_ClearQueue [18:10:22]wFMCommunicate request_size=4 [18:10:22]MH_SAM_APDU [18:10:22]CAPDU: 80 09 00 00 [18:10:22]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [18:10:22]Write i2c OK [18:10:22]MH_I2C_Read... [18:10:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [18:10:23]RAPDU: 90 00 [18:10:23]wFMCommunicate OK [18:10:23]SAM_PROTO_ClearQueue done [18:10:23]KKMCreateOFDPacket [18:10:23]OFDProtocolAddRootSTLVToBuf [18:10:23]FM_MakeSignedData [18:10:23]FM_MakeSignedData [18:10:23]SAM_PROTO_SignData [18:10:23]wFMCommunicate request_size=4 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 0D 01 02 [18:10:23]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [18:10:23]RAPDU: 90 00 [18:10:23]wFMCommunicate OK [18:10:23]wFMCommunicate request_size=255 [18:10:23]MH_SAM_APDU [18:10: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 66 3A 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 7E 00 00 00 F4 03 04 00 8E 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1C 01 00 35 04 06 00 5F [18:10:23]Write to MH i2c: E2 02 01 7D 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 66 3A 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 7E 00 00 00 F4 03 04 00 8E 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1C 01 00 35 04 06 00 5F 00 00 0F [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [18:10:23]RAPDU: 90 00 [18:10:23]wFMCommunicate OK [18:10:23]wFMCommunicate request_size=10 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 0D 02 02 05 AB 5A B6 BE 2A [18:10:23]Write to MH i2c: E2 0D 00 7E 02 80 0D 02 02 05 00 AB 5A B6 BE 2A 00 00 A7 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [18:10:23]RAPDU: 90 00 [18:10:23]wFMCommunicate OK [18:10:23]wFMCommunicate request_size=4 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 0D 03 02 [18:10:23]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 0B 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 0B 00 7F 02 00 1C 33 30 AF 30 5E 3A 51 90 00 44 [18:10:23]RAPDU: 1C 33 30 AF 30 5E 3A 51 90 00 [18:10:23]wFMCommunicate OK [18:10:23]SAM_PROTO_SignData done [18:10:23]FM_MakeSignedData done [18:10:23]CreateOFDProtocolMessage [18:10:23]wFMCommunicate request_size=4 [18:10:23]MH_SAM_APDU [18:10:23]CAPDU: 80 11 00 00 [18:10:23]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:23]Read from MH i2c: E2 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 17 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 50 [18:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:10:23]wFMCommunicate OK [18:10:23]CreateOFDProtocolMessage done [18:10:23]OFDSenderStorePacket 72889 [18:10:23]StoreOFDPacket docnum=72889 [18:10:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 90 63 07 01 D5 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 7E 00 00 00 F4 03 04 00 8E 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1C 01 00 35 04 06 00 5F AB 5A B6 BE 2A 1C 33 30 AF 30 5E 3A 51 [18:10:23]CheckFolder [18:10:23]dirname=/storage/ofd_packets [18:10:23]CheckFolder done [18:10:23]ProducePacketName [18:10:23]name=ofd_packets/00072889 [18:10:23]NVStorageSaveData ofd_packets/00072889 [18:10:23]File name is /storage/ofd_packets/00072889 [18:10:23]Write 301 bytes [18:10:23]NVStorageSaveData done [18:10:23]OFDSenderStorePacket done [18:10:23]KKMCreateOFDPacket done [18:10:23]NVStorageSaveData kkm_last_timestamp [18:10:23]File name is /storage/kkm_last_timestamp [18:10:23]Write 4 bytes [18:10:23]NVStorageSaveData done [18:10:23]ExternCall_PrintAddStr [18:10:23]wPrintStart [18:10:23]Write to MH i2c: 01 00 00 81 02 83 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: 01 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: 01 07 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [18:10:23]RasterBufferAndPrint [18:10:23]line Счет N : (1)952479 [18:10:23]line ИНН: 02508201610067 [18:10:23]line Контрольно-Кассовый Чек [18:10:23]line ПРОДАЖА [18:10:23]line ТРК (МРК, ГНК) : 53 [18:10:23]line Товар: 2710124130 [18:10:23]line Аи-92-К-5 [18:10:23]line 14.950 * 0.00 [18:10:23]line = 0.00 [18:10:23]line НДС 12% НСП 1% [18:10:23]line > о реализуемом товаре [18:10:23]line ИТОГО: 0.00 [18:10:23]line НСП 1% : 0.00 [18:10:23]line НДС 12% : 0.00 [18:10:23]line Наличными: 0.00 [18:10:23]line Безнал.: 0.00 [18:10:23]line Место: АЗС № 113 "Партнер Нефть" [18:10:23]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:10:23]line СНО: Общий режим [18:10:23]line Чек 126 30.10.2024 18:10 [18:10:23]line Смена: 556 ФФД: 1.0 [18:10:23]line ЗНМ: 0300000087 [18:10:23]line РНМ: 0000000000091644 [18:10:23]line Версия ККМ: 001 [18:10:23]line Талоны: Топливная Карта [18:10:23]line 03047 [18:10:23]line ФМ: 0000000000874662 [18:10:23]line ФД: 72889 [18:10:23]line ФПД: 105189565972010 [18:10:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181022&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72889&fm=105189565972010&tin=02508201610067®Number=0000000000091644&sum=0 [18:10:23]written 0, free lines is 4095 [18:10:23]OFD Sender: Processing packet 72889 [packets to send 279, broken 278] [18:10:23]ProducePacketName [18:10:23]name=ofd_packets/00072889 [18:10:23]OFD Sender: To server: pG, [18:10:23]CommunicateWithHost lk.salyk.kg:30040 [18:10:23]ConnectInit lk.salyk.kg [18:10:23]Write to MH i2c: 01 00 00 AB 02 AD [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: 01 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: 01 07 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 E3 0C A3 [18:10:23]RasterBufferAndPrint [18:10:23]line [18:10:23]line [18:10:23]line [18:10:23]line [18:10:23]line [18:10:23]written 0, free lines is 3305 [18:10:23]MH_Cut [18:10:23]Write to MH i2c: D1 01 00 B2 02 01 86 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: D1 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: D1 01 00 [18:10:23]MH_I2C_Read... [18:10:23]Read from MH i2c: D1 01 00 B2 02 00 85 [18:10:23]Write to MH i2c: 01 00 00 B3 02 B5 [18:10:23]Write i2c OK [18:10:23]MH_I2C_Read... [18:10:24]*** Cut start [18:10:24]*** Partial cut [18:10:24]*** CUTSNS_PIN = 1 [18:10:24]*** CUTSNS_PIN = 0 [18:10:24]*** Brake cut motor [18:10:25]Read from MH i2c: 01 [18:10:25]MH_I2C_Read... [18:10:25]*** Stop cut motor [18:10:25]*** Cut end [18:10:25]Read from MH i2c: 01 07 00 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [18:10:25]process_action close_receipt done [18:10:25]requested_data is exist [18:10:25]produce_requested_data [18:10:25]requested_item fm.sn is exist - process it [18:10:25]wFMCommunicate request_size=4 [18:10:25]MH_SAM_APDU [18:10:25]CAPDU: 80 11 00 00 [18:10:25]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:25]Read from MH i2c: E2 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: E2 17 00 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 84 [18:10:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:10:25]wFMCommunicate OK [18:10:25]requested_item fd.num is exist - process it [18:10:25]SAM_PROTO_GetFieldsCounters [18:10:25]wFMCommunicate request_size=4 [18:10:25]MH_SAM_APDU [18:10:25]CAPDU: 80 13 00 00 [18:10:25]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:25]Read from MH i2c: E2 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: E2 62 00 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: E2 62 00 B5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B9 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [18:10:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B9 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:25]wFMCommunicate OK [18:10:25]SAM_PROTO_GetFieldsCounters done [18:10:25]requested_item shift.num is exist - process it [18:10:25]requested_item shift.opened is exist - process it [18:10:25]req_shift_opened [18:10:25]FM_GetShiftState [18:10:25]SAM_PROTO_GetShiftState [18:10:25]wFMCommunicate request_size=4 [18:10:25]MH_SAM_APDU [18:10:25]CAPDU: 80 13 01 00 [18:10:25]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [18:10:25]Write i2c OK [18:10:25]MH_I2C_Read... [18:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:25]Read from MH i2c: E2 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: E2 0E 00 [18:10:25]MH_I2C_Read... [18:10:25]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 07 [18:10:25]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:10:25]wFMCommunicate OK [18:10:25]SAM_PROTO_GetShiftState done [18:10:25]FM_GetShiftState done [18:10:25]req_shift_opened done [18:10:25]requested_item shift.open_date is exist - process it [18:10:25]req_shift_open_date [18:10:25]req_shift_open_date done [18:10:25]produce_requested_data done [18:10:25]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72889,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [18:10:25]process_action_free close_receipt [18:10:25]json_value_free [18:10:25]json_value_free done [18:10:25]process_json_proto returns [18:10:25]Send response to host [18:10:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72889,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [18:10:25]free response buf [18:10:25]execute_script done [18:10:25]execute_script returns [18:10:25]free content buf [18:10:25]Sock 9.Close socket [18:10:25]Sock 9.Thread stoped [18:10:28]Connected sock=10 [18:10:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 90 63 07 01 D5 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 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 7E 00 00 00 F4 03 04 00 8E 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1C 01 00 35 04 06 00 5F AB 5A B6 BE 2A 1C 33 30 AF 30 5E 3A 51 [18:10:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6F D8 47 00 8E 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1C 01 00 F4 03 04 00 4A 21 22 67 B6 04 01 00 00 1F 4C B7 04 E4 E5 B9 F5 [18:10:28]CommunicateWithHost err = 0 [18:10:28]CheckOFDResponse [18:10:28]1017 (14) - 77093643461234 [18:10:28]1041 (16) - 0000000000874662 [18:10:28]1040 (4) - 72889 [18:10:28]1012 (4) - 30.10.2024 12:06 [18:10:28]1206 (1) - 0 [18:10:28]OFD Sender: Remove packet 72889 [18:10:28]ProducePacketName [18:10:28]name=ofd_packets/00072889 [18:10:28]NVStorageDeleteData [18:10:29]OFD Sender: No OFD packet to send [18:10:33]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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:23]recv_with_timeout no data received [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:33]recv_with_timeout no data received [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:11]recv_with_timeout no data received [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]accept exits with 8 [18:15:34]New connection [18:15:34]New thread 3066932580 created [18:15:34]Thread 3067075940 joined [18:15:34]Waiting for new connection... [18:15:34] Sock 8.Parse request [18:15:34]Sock 8.Check first char [18:15:34]Sock 8.First char is OK [18:15:34]request: POST /json_proto HTTP/1.0 [18:15:34]Method: POST [18:15:34]URL: /json_proto [18:15:34]Method is POST - this is cgi request [18:15:34]url: /json_proto [18:15:34]query_string will be loaded in cgi processing [18:15:34]execute_cgi json_proto POST (null) [18:15:34]execute_cgi path=json_proto method=POST [18:15:34]POST find Content-Length [18:15:34]Host: 172.17.43.195:8080 [18:15:34]Content-Length: 798 [18:15:34]Content-Type: application/json [18:15:34] [18:15:34]POST finish read [18:15:34]Found Content-Length = 798 [18:15:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952480", "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" : 0.00, "quantity" : 100.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:34]execute_script... [18:15:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952480", "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" : 0.00, "quantity" : 100.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:34]POST & json_proto [18:15:34]process_json_proto [18:15:34]json parsed OK: [18:15:34]protocol is kg_v1.0 [18:15:34]action value=close_receipt [18:15:34]process_action close_receipt [18:15:34]cmd_close_receipt [18:15:34]MH_GetDate [18:15:34]Write to MH i2c: F0 00 00 B7 02 A8 [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: F0 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: F0 09 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: F0 09 00 B7 02 00 C7 77 22 67 74 2C AD 66 2B [18:15:34]GetLastDocTimeStamp 1730311822 [18:15:34]current date 1730312135 [18:15:34]FM_GetShiftState [18:15:34]SAM_PROTO_GetShiftState [18:15:34]wFMCommunicate request_size=4 [18:15:34]MH_SAM_APDU [18:15:34]CAPDU: 80 13 01 00 [18:15:34]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:34]Read from MH i2c: E2 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 0E 00 [18:15:34]MH_I2C_Read... [18:15:34]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 09 [18:15:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:15:34]wFMCommunicate OK [18:15:34]SAM_PROTO_GetShiftState done [18:15:34]FM_GetShiftState done [18:15:34]opened in 1730247109 [18:15:34]opened+sec_in_day 1730333509 [18:15:34]quantity*price = 0 [18:15:34]sum+1 = 1 [18:15:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 127 30.10.2024 18:15 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72890 ФПД: 26222943304551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181535&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72890&fm=26222943304551&tin=02508201610067®Number=0000000000091644&sum=0 [18:15:35]StoreToDocumentArchive [18:15:35]shift 556 fd 72890 [18:15:35]save to /storage/0556/doc_00072890 [18:15:35]save last doc name /storage/0556/doc_00072890 to /storage/kkm_last_doc_name [18:15:35]save OK [18:15:35]Clear old archive folders... [18:15:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:15:35]tlvbuf is 00A39C50 [18:15:35]SAM_PROTO_ClearQueue [18:15:35]wFMCommunicate request_size=4 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 09 00 00 [18:15:35]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [18:15:35]RAPDU: 90 00 [18:15:35]wFMCommunicate OK [18:15:35]SAM_PROTO_ClearQueue done [18:15:35]KKMCreateOFDPacket [18:15:35]OFDProtocolAddRootSTLVToBuf [18:15:35]FM_MakeSignedData [18:15:35]FM_MakeSignedData [18:15:35]SAM_PROTO_SignData [18:15:35]wFMCommunicate request_size=4 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 0D 01 02 [18:15:35]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [18:15:35]RAPDU: 90 00 [18:15:35]wFMCommunicate OK [18:15:35]wFMCommunicate request_size=255 [18:15:35]MH_SAM_APDU [18:15:35]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 A0 86 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 7F 00 00 00 F4 03 04 00 C7 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1C 01 00 35 04 06 00 [18:15:35]Write to MH i2c: E2 02 01 C7 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 A0 86 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 7F 00 00 00 F4 03 04 00 C7 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1C 01 00 35 04 06 00 00 00 F8 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:36]Read from MH i2c: E2 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [18:15:36]RAPDU: 90 00 [18:15:36]wFMCommunicate OK [18:15:36]wFMCommunicate request_size=11 [18:15:36]MH_SAM_APDU [18:15:36]CAPDU: 80 0D 02 02 06 17 D9 81 38 7B 67 [18:15:36]Write to MH i2c: E2 0E 00 C8 02 80 0D 02 02 06 00 17 D9 81 38 7B 67 00 00 DB [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:36]Read from MH i2c: E2 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [18:15:36]RAPDU: 90 00 [18:15:36]wFMCommunicate OK [18:15:36]wFMCommunicate request_size=4 [18:15:36]MH_SAM_APDU [18:15:36]CAPDU: 80 0D 03 02 [18:15:36]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:36]Read from MH i2c: E2 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 0B 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 0B 00 C9 02 00 6A 91 60 7C C9 22 16 32 90 00 51 [18:15:36]RAPDU: 6A 91 60 7C C9 22 16 32 90 00 [18:15:36]wFMCommunicate OK [18:15:36]SAM_PROTO_SignData done [18:15:36]FM_MakeSignedData done [18:15:36]CreateOFDProtocolMessage [18:15:36]wFMCommunicate request_size=4 [18:15:36]MH_SAM_APDU [18:15:36]CAPDU: 80 11 00 00 [18:15:36]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:36]Read from MH i2c: E2 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 17 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9A [18:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:15:36]wFMCommunicate OK [18:15:36]CreateOFDProtocolMessage done [18:15:36]OFDSenderStorePacket 72890 [18:15:36]StoreOFDPacket docnum=72890 [18:15:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 A0 FB 08 01 BB 8F 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 A0 86 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 7F 00 00 00 F4 03 04 00 C7 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1C 01 00 35 04 06 00 17 D9 81 38 7B 67 6A 91 60 7C C9 22 16 32 [18:15:36]CheckFolder [18:15:36]dirname=/storage/ofd_packets [18:15:36]CheckFolder done [18:15:36]ProducePacketName [18:15:36]name=ofd_packets/00072890 [18:15:36]NVStorageSaveData ofd_packets/00072890 [18:15:36]File name is /storage/ofd_packets/00072890 [18:15:36]Write 302 bytes [18:15:36]NVStorageSaveData done [18:15:36]OFDSenderStorePacket done [18:15:36]KKMCreateOFDPacket done [18:15:36]NVStorageSaveData kkm_last_timestamp [18:15:36]File name is /storage/kkm_last_timestamp [18:15:36]Write 4 bytes [18:15:36]NVStorageSaveData done [18:15:36]ExternCall_PrintAddStr [18:15:36]wPrintStart [18:15:36]Write to MH i2c: 01 00 00 CB 02 CD [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 07 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [18:15:36]RasterBufferAndPrint [18:15:36]line Счет N : (1)952480 [18:15:36]line ИНН: 02508201610067 [18:15:36]line Контрольно-Кассовый Чек [18:15:36]line ПРОДАЖА [18:15:36]line ТРК (МРК, ГНК) : 33 [18:15:36]line Товар: 2710194210 [18:15:36]line ДТ(л)-К-5 [18:15:36]line 100.000 * 0.00 [18:15:36]line = 0.00 [18:15:36]line НДС 12% НСП 1% [18:15:36]line > о реализуемом товаре [18:15:36]line ИТОГО: 0.00 [18:15:36]line НСП 1% : 0.00 [18:15:36]line НДС 12% : 0.00 [18:15:36]line Наличными: 0.00 [18:15:36]line Безнал.: 0.00 [18:15:36]line Место: АЗС № 113 "Партнер Нефть" [18:15:36]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:15:36]line СНО: Общий режим [18:15:36]line Чек 127 30.10.2024 18:15 [18:15:36]line Смена: 556 ФФД: 1.0 [18:15:36]line ЗНМ: 0300000087 [18:15:36]line РНМ: 0000000000091644 [18:15:36]line Версия ККМ: 001 [18:15:36]line Талоны: Топливная Карта [18:15:36]line 02083 [18:15:36]line ФМ: 0000000000874662 [18:15:36]line ФД: 72890 [18:15:36]line ФПД: 26222943304551 [18:15:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181535&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72890&fm=26222943304551&tin=02508201610067®Number=0000000000091644&sum=0 [18:15:36]written 0, free lines is 4095 [18:15:36]OFD Sender: Processing packet 72890 [packets to send 279, broken 278] [18:15:36]ProducePacketName [18:15:36]name=ofd_packets/00072890 [18:15:36]OFD Sender: To server: pG, [18:15:36]CommunicateWithHost lk.salyk.kg:30040 [18:15:36]ConnectInit lk.salyk.kg [18:15:37]Write to MH i2c: 01 00 00 F5 02 F7 [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 07 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 07 00 F5 02 00 00 00 00 00 E5 0C EF [18:15:37]RasterBufferAndPrint [18:15:37]line [18:15:37]line [18:15:37]line [18:15:37]line [18:15:37]line [18:15:37]written 0, free lines is 3309 [18:15:37]MH_Cut [18:15:37]Write to MH i2c: D1 01 00 FC 02 01 D0 [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: D1 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: D1 01 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: D1 01 00 FC 02 00 CF [18:15:37]Write to MH i2c: 01 00 00 FD 02 FF [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]Connected sock=9 [18:15:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 A0 FB 08 01 BB 8F 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 A0 86 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 7F 00 00 00 F4 03 04 00 C7 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1C 01 00 35 04 06 00 17 D9 81 38 7B 67 6A 91 60 7C C9 22 16 32 [18:15:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 86 19 47 00 A7 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1C 01 00 F4 03 04 00 7F 22 22 67 B6 04 01 00 00 15 48 15 E0 95 91 09 52 [18:15:37]CommunicateWithHost err = 0 [18:15:37]CheckOFDResponse [18:15:37]1017 (14) - 77093643461234 [18:15:37]1041 (16) - 0000000000874662 [18:15:37]1040 (4) - 72890 [18:15:37]1012 (4) - 30.10.2024 12:11 [18:15:37]1206 (1) - 0 [18:15:37]OFD Sender: Remove packet 72890 [18:15:37]ProducePacketName [18:15:37]name=ofd_packets/00072890 [18:15:37]NVStorageDeleteData [18:15:37]*** Cut start [18:15:37]*** Partial cut [18:15:37]*** CUTSNS_PIN = 1 [18:15:37]*** CUTSNS_PIN = 0 [18:15:38]*** Brake cut motor [18:15:38]OFD Sender: No OFD packet to send [18:15:38]Read from MH i2c: 01 [18:15:38]MH_I2C_Read... [18:15:38]*** Stop cut motor [18:15:38]*** Cut end [18:15:38]Read from MH i2c: 01 07 00 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FF 0F 14 [18:15:38]process_action close_receipt done [18:15:38]requested_data is exist [18:15:38]produce_requested_data [18:15:38]requested_item fm.sn is exist - process it [18:15:38]wFMCommunicate request_size=4 [18:15:38]MH_SAM_APDU [18:15:38]CAPDU: 80 11 00 00 [18:15:38]Write to MH i2c: E2 08 00 FE 02 80 11 00 00 00 00 00 00 7A [18:15:38]Write i2c OK [18:15:38]MH_I2C_Read... [18:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:38]Read from MH i2c: E2 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 17 00 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 17 00 FE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CE [18:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:15:38]wFMCommunicate OK [18:15:38]requested_item fd.num is exist - process it [18:15:38]SAM_PROTO_GetFieldsCounters [18:15:38]wFMCommunicate request_size=4 [18:15:38]MH_SAM_APDU [18:15:38]CAPDU: 80 13 00 00 [18:15:38]Write to MH i2c: E2 08 00 FF 02 80 13 00 00 00 00 00 00 7D [18:15:38]Write i2c OK [18:15:38]MH_I2C_Read... [18:15:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:38]Read from MH i2c: E2 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 62 00 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 62 00 FF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BA 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [18:15:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BA 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:38]wFMCommunicate OK [18:15:38]SAM_PROTO_GetFieldsCounters done [18:15:38]requested_item shift.num is exist - process it [18:15:38]requested_item shift.opened is exist - process it [18:15:38]req_shift_opened [18:15:38]FM_GetShiftState [18:15:38]SAM_PROTO_GetShiftState [18:15:38]wFMCommunicate request_size=4 [18:15:38]MH_SAM_APDU [18:15:38]CAPDU: 80 13 01 00 [18:15:38]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [18:15:38]Write i2c OK [18:15:38]MH_I2C_Read... [18:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:38]Read from MH i2c: E2 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 0E 00 [18:15:38]MH_I2C_Read... [18:15:38]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 52 [18:15:38]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:15:38]wFMCommunicate OK [18:15:38]SAM_PROTO_GetShiftState done [18:15:38]FM_GetShiftState done [18:15:38]req_shift_opened done [18:15:38]requested_item shift.open_date is exist - process it [18:15:38]req_shift_open_date [18:15:38]req_shift_open_date done [18:15:38]produce_requested_data done [18:15:38]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72890,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [18:15:38]process_action_free close_receipt [18:15:38]json_value_free [18:15:38]json_value_free done [18:15:38]process_json_proto returns [18:15:38]Send response to host [18:15:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72890,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [18:15:38]free response buf [18:15:38]execute_script done [18:15:38]execute_script returns [18:15:38]free content buf [18:15:38]Sock 8.Close socket [18:15:38]Sock 8.Thread stoped [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:26]accept exits with 10 [18:19:26]New connection [18:19:26]New thread 3067075940 created [18:19:26]Thread 3066932580 joined [18:19:26]Waiting for new connection... [18:19:26] Sock 10.Parse request [18:19:26]Sock 10.Check first char [18:19:26]Sock 10.First char is OK [18:19:26]request: POST /json_proto HTTP/1.0 [18:19:26]Method: POST [18:19:26]URL: /json_proto [18:19:26]Method is POST - this is cgi request [18:19:26]url: /json_proto [18:19:26]query_string will be loaded in cgi processing [18:19:26]execute_cgi json_proto POST (null) [18:19:26]execute_cgi path=json_proto method=POST [18:19:26]POST find Content-Length [18:19:26]Host: 172.17.43.195:8080 [18:19:26]Content-Length: 797 [18:19:26]Content-Type: application/json [18:19:26] [18:19:26]POST finish read [18:19:26]Found Content-Length = 797 [18:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952482", "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" : 0.00, "quantity" : 32.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:26]execute_script... [18:19:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952482", "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" : 0.00, "quantity" : 32.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:26]POST & json_proto [18:19:26]process_json_proto [18:19:26]json parsed OK: [18:19:26]protocol is kg_v1.0 [18:19:26]action value=close_receipt [18:19:26]process_action close_receipt [18:19:26]cmd_close_receipt [18:19:26]MH_GetDate [18:19:26]Write to MH i2c: F0 00 00 01 03 F3 [18:19:26]Write i2c OK [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: F0 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: F0 09 00 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: F0 09 00 01 03 00 AE 78 22 67 74 2C AD 66 5E [18:19:26]GetLastDocTimeStamp 1730312135 [18:19:26]current date 1730312366 [18:19:26]FM_GetShiftState [18:19:26]SAM_PROTO_GetShiftState [18:19:26]wFMCommunicate request_size=4 [18:19:26]MH_SAM_APDU [18:19:26]CAPDU: 80 13 01 00 [18:19:26]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [18:19:26]Write i2c OK [18:19:26]MH_I2C_Read... [18:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:26]Read from MH i2c: E2 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 0E 00 [18:19:26]MH_I2C_Read... [18:19:26]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 54 [18:19:26]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:19:26]wFMCommunicate OK [18:19:26]SAM_PROTO_GetShiftState done [18:19:26]FM_GetShiftState done [18:19:26]opened in 1730247109 [18:19:26]opened+sec_in_day 1730333509 [18:19:26]quantity*price = 0 [18:19:26]sum+1 = 1 [18:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 128 30.10.2024 18:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72891 ФПД: 178172592939557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181926&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72891&fm=178172592939557&tin=02508201610067®Number=0000000000091644&sum=0 [18:19:27]StoreToDocumentArchive [18:19:27]shift 556 fd 72891 [18:19:27]save to /storage/0556/doc_00072891 [18:19:27]save last doc name /storage/0556/doc_00072891 to /storage/kkm_last_doc_name [18:19:27]save OK [18:19:27]Clear old archive folders... [18:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:19:27]tlvbuf is 00A41A00 [18:19:27]SAM_PROTO_ClearQueue [18:19:27]wFMCommunicate request_size=4 [18:19:27]MH_SAM_APDU [18:19:27]CAPDU: 80 09 00 00 [18:19:27]Write to MH i2c: E2 08 00 0F 03 80 09 00 00 00 00 00 00 84 [18:19:27]Write i2c OK [18:19:27]MH_I2C_Read... [18:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:27]Read from MH i2c: E2 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 03 00 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [18:19:27]RAPDU: 90 00 [18:19:27]wFMCommunicate OK [18:19:27]SAM_PROTO_ClearQueue done [18:19:27]KKMCreateOFDPacket [18:19:27]OFDProtocolAddRootSTLVToBuf [18:19:27]FM_MakeSignedData [18:19:27]FM_MakeSignedData [18:19:27]SAM_PROTO_SignData [18:19:27]wFMCommunicate request_size=4 [18:19:27]MH_SAM_APDU [18:19:27]CAPDU: 80 0D 01 02 [18:19:27]Write to MH i2c: E2 08 00 10 03 80 0D 01 02 00 00 00 00 8C [18:19:27]Write i2c OK [18:19:27]MH_I2C_Read... [18:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:27]Read from MH i2c: E2 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 03 00 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [18:19:27]RAPDU: 90 00 [18:19:27]wFMCommunicate OK [18:19:27]wFMCommunicate request_size=255 [18:19:27]MH_SAM_APDU [18:19:27]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 00 7D 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 80 00 00 00 F4 03 04 00 AE 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1C 01 00 35 04 06 00 [18:19:27]Write to MH i2c: E2 02 01 11 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 00 7D 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 80 00 00 00 F4 03 04 00 AE 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1C 01 00 35 04 06 00 00 00 83 [18:19:27]Write i2c OK [18:19:27]MH_I2C_Read... [18:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:27]Read from MH i2c: E2 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 03 00 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [18:19:27]RAPDU: 90 00 [18:19:27]wFMCommunicate OK [18:19:27]wFMCommunicate request_size=11 [18:19:27]MH_SAM_APDU [18:19:27]CAPDU: 80 0D 02 02 06 A2 0C 0A 1C 62 25 [18:19:27]Write to MH i2c: E2 0E 00 12 03 80 0D 02 02 06 00 A2 0C 0A 1C 62 25 00 00 F6 [18:19:27]Write i2c OK [18:19:27]MH_I2C_Read... [18:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:27]Read from MH i2c: E2 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 03 00 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [18:19:27]RAPDU: 90 00 [18:19:27]wFMCommunicate OK [18:19:27]wFMCommunicate request_size=4 [18:19:27]MH_SAM_APDU [18:19:27]CAPDU: 80 0D 03 02 [18:19:27]Write to MH i2c: E2 08 00 13 03 80 0D 03 02 00 00 00 00 91 [18:19:27]Write i2c OK [18:19:27]MH_I2C_Read... [18:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:27]Read from MH i2c: E2 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 0B 00 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 0B 00 13 03 00 A2 43 D4 93 14 92 BE 81 90 00 C3 [18:19:27]RAPDU: A2 43 D4 93 14 92 BE 81 90 00 [18:19:27]wFMCommunicate OK [18:19:27]SAM_PROTO_SignData done [18:19:27]FM_MakeSignedData done [18:19:27]CreateOFDProtocolMessage [18:19:27]wFMCommunicate request_size=4 [18:19:27]MH_SAM_APDU [18:19:27]CAPDU: 80 11 00 00 [18:19:27]Write to MH i2c: E2 08 00 14 03 80 11 00 00 00 00 00 00 91 [18:19:27]Write i2c OK [18:19:27]MH_I2C_Read... [18:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:27]Read from MH i2c: E2 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 17 00 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 17 00 14 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E5 [18:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:19:27]wFMCommunicate OK [18:19:27]CreateOFDProtocolMessage done [18:19:27]OFDSenderStorePacket 72891 [18:19:27]StoreOFDPacket docnum=72891 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [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:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 7687591+1722625140=1730312731 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 1C 7A 22 67 74 2C AD 66 D1 [18:25:32]Current date/time: 30.10.2024 18:25 [18:25:32]FM_Init [18:25:32]wFMConnect [18:25:32]MH_SAM_On [18:25:32]Write to MH i2c: E0 00 00 08 00 E7 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_init finished! [18:25:32]*** atr: [18:25:32]*** 0F 3B D5 18 FF 81 91 FE [18:25:32]*** 1F C3 80 73 C8 21 10 0A [18:25:32]*** 00 00 00 00 00 00 00 00 [18:25:32]*** 00 00 00 00 00 00 00 00 [18:25:32]*** 00 00 00 00 00 00 00 00 [18:25:32]*** 00 00 00 00 00 00 00 00 [18:25:32]*** 00 00 00 00 00 00 00 00 [18:25:32]*** 00 00 00 00 00 00 00 00 [18:25:32]Read from MH i2c: E0 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E0 10 00 [18:25:32]MH_I2C_Read... [18:25:32]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:25:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:25:32]wFMCommunicate request_size=10 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:25:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 03 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:25:32]RAPDU: 90 00 [18:25:32]wFMCommunicate OK [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 11 00 00 [18:25:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 17 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [18:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:25:32]wFMCommunicate OK [18:25:32]Detected FM SN is 0000000000874662 [18:25:32]Stored FM SN is 0000000000874662 [18:25:32]wFMCommunicate request_size=9 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 16 00 00 04 08 EB 00 00 [18:25:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 03 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:25:32]RAPDU: 90 00 [18:25:32]wFMCommunicate OK [18:25:32]FM PIN OK [18:25:32]wFMCommunicate request_size=8 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 14 04 00 03 02 00 01 [18:25:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 03 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:25:32]RAPDU: 90 00 [18:25:32]wFMCommunicate OK [18:25:32]wFMCommunicate request_size=13 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:25:32]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:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 03 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:25:32]RAPDU: 90 00 [18:25:32]wFMCommunicate OK [18:25:32]wFMCommunicate request_size=4 [18:25:32]MH_SAM_APDU [18:25:32]CAPDU: 80 11 00 00 [18:25:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:32]Read from MH i2c: E2 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 17 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [18:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:25:32]wFMCommunicate OK [18:25:32]DocumentArchiveInit [18:25:32]Start Httpd... [18:25:32]Httpd thread 3067264356 created [18:25:32]Write to MH i2c: 01 00 00 0F 00 0F [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: 01 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: 01 07 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:25:32]MH Int Process started [18:25:32]Allocated Socket 8 [18:25:32]Bind OK [18:25:32]Listen OK [18:25:32]httpd running on port 8080 [18:25:32]Waiting for new connection... [18:25:32]OFD Sender: Processing packet 72891 [packets to send 279, broken 278] [18:25:32]ProducePacketName [18:25:32]name=ofd_packets/00072891 [18:25:32]OFD Sender: To server: pG, [18:25:32]CommunicateWithHost lk.salyk.kg:30040 [18:25:32]ConnectInit lk.salyk.kg [18:25:33]Connected sock=7 [18:25:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 AB 33 08 01 CF 78 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 00 7D 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 80 00 00 00 F4 03 04 00 AE 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1C 01 00 35 04 06 00 A2 0C 0A 1C 62 25 A2 43 D4 93 14 92 BE 81 [18:25:34]accept exits with 9 [18:25:34]New connection [18:25:34]New thread 3066977636 created [18:25:34]Waiting for new connection... [18:25:34] Sock 9.Parse request [18:25:34]Sock 9.Check first char [18:25:34]Sock 9.First char is OK [18:25:34]request: POST /json_proto HTTP/1.0 [18:25:34]Method: POST [18:25:34]URL: /json_proto [18:25:34]Method is POST - this is cgi request [18:25:34]url: /json_proto [18:25:34]query_string will be loaded in cgi processing [18:25:34]execute_cgi json_proto POST (null) [18:25:34]execute_cgi path=json_proto method=POST [18:25:34]POST find Content-Length [18:25:34]Host: 172.17.43.195:8080 [18:25:34]Content-Length: 215 [18:25:34]Content-Type: application/json [18:25:34] [18:25:34]POST finish read [18:25:34]Found Content-Length = 215 [18:25:34]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:25:34]execute_script... [18:25:34]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:25:34]POST & json_proto [18:25:34]process_json_proto [18:25:34]json parsed OK: [18:25:34]protocol is kg_v1.0 [18:25:34]action value=get_value [18:25:34]process_action get_value [18:25:34]cmd_get_value [18:25:34]process_action get_value done [18:25:34]requested_data is exist [18:25:34]produce_requested_data [18:25:34]requested_item kkm.sn is exist - process it [18:25:34]requested_item kkm.ver is exist - process it [18:25:34]requested_item fm.sn is exist - process it [18:25:34]wFMCommunicate request_size=4 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 11 00 00 [18:25:34]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:34]Read from MH i2c: E2 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 17 00 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [18:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:25:34]wFMCommunicate OK [18:25:34]requested_item fd.num is exist - process it [18:25:34]SAM_PROTO_GetFieldsCounters [18:25:34]wFMCommunicate request_size=4 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 13 00 00 [18:25:34]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:34]Read from MH i2c: E2 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 62 00 [18:25:34]MH_I2C_Read... [18:25:34]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [18:25:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:34]wFMCommunicate OK [18:25:34]SAM_PROTO_GetFieldsCounters done [18:25:34]requested_item shift.num is exist - process it [18:25:34]requested_item shift.opened is exist - process it [18:25:34]req_shift_opened [18:25:34]FM_GetShiftState [18:25:34]SAM_PROTO_GetShiftState [18:25:34]wFMCommunicate request_size=4 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 13 01 00 [18:25:34]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:34]Read from MH i2c: E2 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 0E 00 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 61 [18:25:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:25:34]wFMCommunicate OK [18:25:34]SAM_PROTO_GetShiftState done [18:25:34]FM_GetShiftState done [18:25:34]req_shift_opened done [18:25:34]requested_item shift.open_date is exist - process it [18:25:34]req_shift_open_date [18:25:34]req_shift_open_date done [18:25:34]produce_requested_data done [18:25:34]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72891,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [18:25:34]process_action_free get_value [18:25:34]json_value_free [18:25:34]json_value_free done [18:25:34]process_json_proto returns [18:25:34]Send response to host [18:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72891,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [18:25:34]free response buf [18:25:34]execute_script done [18:25:34]execute_script returns [18:25:34]free content buf [18:25:34]Sock 9.Close socket [18:25:34]Sock 9.Thread stoped [18:25:34]accept exits with 10 [18:25:34]New connection [18:25:34]New thread 3066834276 created [18:25:34]Thread 3066977636 joined [18:25:34]Waiting for new connection... [18:25:34] Sock 10.Parse request [18:25:34]Sock 10.Check first char [18:25:34]Sock 10.First char is OK [18:25:34]request: POST /json_proto HTTP/1.0 [18:25:34]Method: POST [18:25:34]URL: /json_proto [18:25:34]Method is POST - this is cgi request [18:25:34]url: /json_proto [18:25:34]query_string will be loaded in cgi processing [18:25:34]execute_cgi json_proto POST (null) [18:25:34]execute_cgi path=json_proto method=POST [18:25:34]POST find Content-Length [18:25:34]Host: 172.17.43.195:8080 [18:25:34]Content-Length: 331 [18:25:34]Content-Type: application/json [18:25:34] [18:25:34]POST finish read [18:25:34]Found Content-Length = 331 [18:25:34]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:25:34]execute_script... [18:25:34]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:25:34]POST & json_proto [18:25:34]process_json_proto [18:25:34]json parsed OK: [18:25:34]protocol is kg_v1.0 [18:25:34]action value=get_value [18:25:34]process_action get_value [18:25:34]cmd_get_value [18:25:34]process_action get_value done [18:25:34]requested_data is exist [18:25:34]produce_requested_data [18:25:34]requested_item fm.sale.total is exist - process it [18:25:34]SAM_PROTO_GetFMData [18:25:34]wFMCommunicate request_size=4 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 13 03 00 [18:25:34]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:25:34]Read from MH i2c: E2 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 FD 00 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 63 18 01 00 69 04 A3 00 6F 04 04 00 73 17 01 00 B1 04 05 00 DA 7E F2 A3 01 70 04 05 00 E0 3D 92 58 01 72 04 04 00 FA 40 60 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 72 6E 9B 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9F Received data: 8C 87 B7 95 03 EF F6 03 09 70 00 47 F6 2C 03 01 01 00 30 00 30 02 30 F7 30 03 30 00 30 00 30 EF 30 03 30 09 30 00 38 F6 37 03 34 01 36 00 03 36 32 F7 4F 03 00 00 00 00 00 C6 1B EF 47 03 00 09 14 00 BA F6 A5 03 07 01 01 00 00 04 07 F7 00 3B 03 00 00 F9 00 03 EF 0E 03 00 09 37 00 37 F6 30 03 39 01 33 00 36 05 34 F7 33 03 00 34 00 36 EF 31 03 32 09 33 00 34 F6 11 03 04 01 10 00 00 06 30 F7 30 30 03 30 00 30 00 6A 30 04 30 9B 30 00 30 6F 30 04 38 04 37 34 00 36 F0 36 00 32 00 10 00 04 B1 04 04 00 04 BB 00 1C BC 01 6D 00 FE F4 04 03 70 04 04 00 04 D4 00 24 BC 6D 22 FE 67 04 B6 72 04 04 01 00 00 00 00 00 9F 04 FD 7B 89 00 D4 EE 15 03 A0 09 21 00 D9 F2 [18:25:34]03 CommunicateWithHost err = 0 [18:25:34]01 CheckOFDResponse [18:25:34]00 1017 (14) - 77093643461234 [18:25:34]00 1041 (16) - 0000000000874662 [18:25:34]F3 1040 (4) - 72891 [18:25:34]03 1012 (4) - 30.10.2024 12:21 [18:25:34]00 1206 (1) - 0 [18:25:34]00 OFD Sender: Remove packet 72891 [18:25:34]EE ProducePacketName [18:25:34]03 name=ofd_packets/00072891 [18:25:34]0C NVStorageDeleteData [18:25:34]00 F2 03 01 00 01 F3 03 03 00 11 C6 87 EF 03 09 00 90 00 C2 [18:25:34]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 63 18 01 00 69 04 A3 00 6F 04 04 00 73 17 01 00 B1 04 05 00 DA 7E F2 A3 01 70 04 05 00 E0 3D 92 58 01 72 04 04 00 FA 40 60 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 72 6E 9B 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9F 8C B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [18:25:34]wFMCommunicate OK [18:25:34]wFMCommunicate request_size=4 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 17 00 00 [18:25:34]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:25:35]Read from MH i2c: E2 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 FD 00 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [18:25:35]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:25:35]wFMCommunicate OK [18:25:35]wFMCommunicate request_size=4 [18:25:35]MH_SAM_APDU [18:25:35]CAPDU: 80 17 00 00 [18:25:35]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:25:35]Write i2c OK [18:25:35]MH_I2C_Read... [18:25:35]OFD Sender: No OFD packet to send [18:25:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:25:35]Read from MH i2c: E2 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 FD 00 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [18:25:35]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:25:35]wFMCommunicate OK [18:25:35]wFMCommunicate request_size=4 [18:25:35]MH_SAM_APDU [18:25:35]CAPDU: 80 17 00 00 [18:25:35]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:25:35]Write i2c OK [18:25:35]MH_I2C_Read... [18:25:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:25:35]Read from MH i2c: E2 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 FD 00 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [18:25:35]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:25:35]wFMCommunicate OK [18:25:35]wFMCommunicate request_size=4 [18:25:35]MH_SAM_APDU [18:25:35]CAPDU: 80 17 00 00 [18:25:35]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:25:35]Write i2c OK [18:25:35]MH_I2C_Read... [18:25:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [18:25:35]Read from MH i2c: E2 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 E1 00 [18:25:35]MH_I2C_Read... [18:25:35]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [18:25:35]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:25:35]wFMCommunicate OK [18:25:35]SAM_PROTO_GetFMData done [18:25:35]requested_item fm.sale_refund.total is exist - process it [18:25:35]requested_item fm.buy.total is exist - process it [18:25:35]requested_item shift.sale.total is exist - process it [18:25:35]SAM_PROTO_GetShiftData [18:25:35]wFMCommunicate request_size=4 [18:25:35]MH_SAM_APDU [18:25:35]CAPDU: 80 13 02 00 [18:25:35]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:25:35]Write i2c OK [18:25:35]MH_I2C_Read... [18:25:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:25:36]Read from MH i2c: E2 [18:25:36]MH_I2C_Read... [18:25:36]Read from MH i2c: E2 FD 00 [18:25:36]MH_I2C_Read... [18:25:36]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 4B 37 78 70 04 03 00 30 62 4A 72 04 03 00 1B D5 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CA C4 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 66 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 50 [18:25:36]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 80 00 00 00 69 04 9C 00 6F 04 04 00 7F 00 00 00 B1 04 03 00 4B 37 78 70 04 03 00 30 62 4A 72 04 03 00 1B D5 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CA C4 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 66 10 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [18:25:36]wFMCommunicate OK [18:25:36]wFMCommunicate request_size=4 [18:25:36]MH_SAM_APDU [18:25:36]CAPDU: 80 17 00 00 [18:25:36]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:25:36]Write i2c OK [18:25:36]MH_I2C_Read... [18:25:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:25:36]Read from MH i2c: E2 [18:25:36]MH_I2C_Read... [18:25:36]Read from MH i2c: E2 FD 00 [18:25:36]MH_I2C_Read... [18:25:36]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 A2 [18:25:36]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [18:25:36]wFMCommunicate OK [18:25:36]wFMCommunicate request_size=4 [18:25:36]MH_SAM_APDU [18:25:36]CAPDU: 80 17 00 00 [18:25:36]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:25:36]Write i2c OK [18:25:36]MH_I2C_Read... [18:25:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:25:37]Read from MH i2c: E2 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 FD 00 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [18:25:37]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [18:25:37]wFMCommunicate OK [18:25:37]wFMCommunicate request_size=4 [18:25:37]MH_SAM_APDU [18:25:37]CAPDU: 80 17 00 00 [18:25:37]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:25:37]Write i2c OK [18:25:37]MH_I2C_Read... [18:25:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:25:37]Read from MH i2c: E2 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 FD 00 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [18:25:37]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [18:25:37]wFMCommunicate OK [18:25:37]wFMCommunicate request_size=4 [18:25:37]MH_SAM_APDU [18:25:37]CAPDU: 80 17 00 00 [18:25:37]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:25:37]Write i2c OK [18:25:37]MH_I2C_Read... [18:25:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [18:25:37]Read from MH i2c: E2 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 D6 00 [18:25:37]MH_I2C_Read... [18:25:37]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [18:25:37]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:25:37]wFMCommunicate OK [18:25:37]SAM_PROTO_GetShiftData done [18:25:37]requested_item shift.sale.total_cash is exist - process it [18:25:37]requested_item shift.sale_refund.total is exist - process it [18:25:37]requested_item shift.sale_refund.total_cash is exist - process it [18:25:37]requested_item shift.buy.total is exist - process it [18:25:37]requested_item shift.buy.total_cash is exist - process it [18:25:37]produce_requested_data done [18:25:37]produce_requested_data return {"fm.sale.total":70455456.90,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":78784.75,"shift.sale.total_cash":48748.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:25:37]process_action_free get_value [18:25:37]json_value_free [18:25:37]json_value_free done [18:25:37]process_json_proto returns [18:25:37]Send response to host [18:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70455456.90,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":78784.75,"shift.sale.total_cash":48748.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:25:37]free response buf [18:25:37]execute_script done [18:25:37]execute_script returns [18:25:37]free content buf [18:25:37]Sock 10.Close socket [18:25:37]Sock 10.Thread stoped [18:25:38]accept exits with 9 [18:25:38]New connection [18:25:38]New thread 3066977636 created [18:25:38]Thread 3066834276 joined [18:25:38]Waiting for new connection... [18:25:38] Sock 9.Parse request [18:25:38]Sock 9.Check first char [18:25:38]Sock 9.First char is OK [18:25:38]request: POST /json_proto HTTP/1.0 [18:25:38]Method: POST [18:25:38]URL: /json_proto [18:25:38]Method is POST - this is cgi request [18:25:38]url: /json_proto [18:25:38]query_string will be loaded in cgi processing [18:25:38]execute_cgi json_proto POST (null) [18:25:38]execute_cgi path=json_proto method=POST [18:25:38]POST find Content-Length [18:25:38]Host: 172.17.43.195:8080 [18:25:38]Content-Length: 800 [18:25:38]Content-Type: application/json [18:25:38] [18:25:38]POST finish read [18:25:38]Found Content-Length = 800 [18:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:38]execute_script... [18:25: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)952483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:38]POST & json_proto [18:25:38]process_json_proto [18:25:38]json parsed OK: [18:25:38]protocol is kg_v1.0 [18:25:38]action value=close_receipt [18:25:38]process_action close_receipt [18:25:38]cmd_close_receipt [18:25:38]MH_GetDate [18:25:38]Write to MH i2c: F0 00 00 1D 00 0C [18:25:38]Write i2c OK [18:25:38]MH_I2C_Read... [18:25:38]Read from MH i2c: F0 [18:25:38]MH_I2C_Read... [18:25:38]Read from MH i2c: F0 09 00 [18:25:38]MH_I2C_Read... [18:25:38]Read from MH i2c: F0 09 00 1D 00 00 22 7A 22 67 74 2C AD 66 ED [18:25:38]GetLastDocTimeStamp 1730312366 [18:25:38]current date 1730312738 [18:25:38]FM_GetShiftState [18:25:38]SAM_PROTO_GetShiftState [18:25:38]wFMCommunicate request_size=4 [18:25:38]MH_SAM_APDU [18:25:38]CAPDU: 80 13 01 00 [18:25:38]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:25:38]Write i2c OK [18:25:38]MH_I2C_Read... [18:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:38]Read from MH i2c: E2 [18:25:38]MH_I2C_Read... [18:25:38]Read from MH i2c: E2 0E 00 [18:25:38]MH_I2C_Read... [18:25:38]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 6D [18:25:38]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:25:38]wFMCommunicate OK [18:25:38]SAM_PROTO_GetShiftState done [18:25:38]FM_GetShiftState done [18:25:38]opened in 1730247109 [18:25:38]opened+sec_in_day 1730333509 [18:25:38]quantity*price = 40006 [18:25:38]sum+1 = 40007 [18:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 129 30.10.2024 18:25 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72892 ФПД: 10892877603102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T182538&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72892&fm=10892877603102&tin=02508201610067®Number=0000000000091644&sum=40006 [18:25:39]StoreToDocumentArchive [18:25:39]shift 556 fd 72892 [18:25:39]save to /storage/0556/doc_00072892 [18:25:39]save last doc name /storage/0556/doc_00072892 to /storage/kkm_last_doc_name [18:25:39]save OK [18:25:39]Clear old archive folders... [18:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:39]tlvbuf is 01287150 [18:25:39]SAM_PROTO_ClearQueue [18:25:39]wFMCommunicate request_size=4 [18:25:39]MH_SAM_APDU [18:25:39]CAPDU: 80 09 00 00 [18:25:39]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:39]Read from MH i2c: E2 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:25:39]RAPDU: 90 00 [18:25:39]wFMCommunicate OK [18:25:39]SAM_PROTO_ClearQueue done [18:25:39]KKMCreateOFDPacket [18:25:39]OFDProtocolAddRootSTLVToBuf [18:25:39]FM_MakeSignedData [18:25:39]FM_MakeSignedData [18:25:39]SAM_PROTO_SignData [18:25:39]wFMCommunicate request_size=4 [18:25:39]MH_SAM_APDU [18:25:39]CAPDU: 80 0D 01 02 [18:25:39]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:39]Read from MH i2c: E2 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 [18:25:39]MH_I2C_Read... [18:25:39]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:25:39]RAPDU: 90 00 [18:25:39]wFMCommunicate OK [18:25:39]wFMCommunicate request_size=255 [18:25:39]MH_SAM_APDU [18:25:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 22 7A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1C 01 00 35 04 06 00 09 [18:25:39]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 22 7A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1C 01 00 35 04 06 00 09 00 00 C5 [18:25:39]Write i2c OK [18:25:39]MH_I2C_Read... [18:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:40]Read from MH i2c: E2 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 03 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:25:40]RAPDU: 90 00 [18:25:40]wFMCommunicate OK [18:25:40]wFMCommunicate request_size=10 [18:25:40]MH_SAM_APDU [18:25:40]CAPDU: 80 0D 02 02 05 E8 32 19 A1 1E [18:25:40]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 E8 32 19 A1 1E 00 00 A4 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:40]Read from MH i2c: E2 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 03 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:25:40]RAPDU: 90 00 [18:25:40]wFMCommunicate OK [18:25:40]wFMCommunicate request_size=4 [18:25:40]MH_SAM_APDU [18:25:40]CAPDU: 80 0D 03 02 [18:25:40]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:40]Read from MH i2c: E2 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 0B 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 0B 00 2F 00 00 F9 8B 5A A1 E4 70 22 19 90 00 B9 [18:25:40]RAPDU: F9 8B 5A A1 E4 70 22 19 90 00 [18:25:40]wFMCommunicate OK [18:25:40]SAM_PROTO_SignData done [18:25:40]FM_MakeSignedData done [18:25:40]CreateOFDProtocolMessage [18:25:40]wFMCommunicate request_size=4 [18:25:40]MH_SAM_APDU [18:25:40]CAPDU: 80 11 00 00 [18:25:40]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:40]Read from MH i2c: E2 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 17 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [18:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:25:40]wFMCommunicate OK [18:25:40]CreateOFDProtocolMessage done [18:25:40]OFDSenderStorePacket 72892 [18:25:40]StoreOFDPacket docnum=72892 [18:25:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 40 83 07 01 2B 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 22 7A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1C 01 00 35 04 06 00 09 E8 32 19 A1 1E F9 8B 5A A1 E4 70 22 19 [18:25:40]CheckFolder [18:25:40]dirname=/storage/ofd_packets [18:25:40]CheckFolder done [18:25:40]ProducePacketName [18:25:40]name=ofd_packets/00072892 [18:25:40]NVStorageSaveData ofd_packets/00072892 [18:25:40]File name is /storage/ofd_packets/00072892 [18:25:40]Write 301 bytes [18:25:40]NVStorageSaveData done [18:25:40]OFDSenderStorePacket done [18:25:40]KKMCreateOFDPacket done [18:25:40]NVStorageSaveData kkm_last_timestamp [18:25:40]File name is /storage/kkm_last_timestamp [18:25:40]Write 4 bytes [18:25:40]NVStorageSaveData done [18:25:40]ExternCall_PrintAddStr [18:25:40]wPrintStart [18:25:40]Write to MH i2c: 01 00 00 31 00 31 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: 01 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: 01 07 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:25:40]RasterBufferAndPrint [18:25:40]line Счет N : (1)952483 [18:25:40]line ИНН: 02508201610067 [18:25:40]line Контрольно-Кассовый Чек [18:25:40]line ПРОДАЖА [18:25:40]line ТРК (МРК, ГНК) : 63 [18:25:40]line Товар: 2710124130 [18:25:40]line Аи-92-К-5 [18:25:40]line 5.980 * 66.90 [18:25:40]line = 400.06 [18:25:40]line НДС 12% НСП 1% [18:25:40]line > о реализуемом товаре [18:25:40]line ИТОГО: 400.06 [18:25:40]line НСП 1% : 3.54 [18:25:40]line НДС 12% : 42.48 [18:25:40]line Наличными: 0.00 [18:25:40]line Безнал.: 400.06 [18:25:40]line Место: АЗС № 113 "Партнер Нефть" [18:25:40]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:25:40]line СНО: Общий режим [18:25:40]line Чек 129 30.10.2024 18:25 [18:25:40]line Смена: 556 ФФД: 1.0 [18:25:40]line ЗНМ: 0300000087 [18:25:40]line РНМ: 0000000000091644 [18:25:40]line Версия ККМ: 001 [18:25:40]line Платежная система: O! деньги [18:25:40]line ФМ: 0000000000874662 [18:25:40]line ФД: 72892 [18:25:40]line ФПД: 10892877603102 [18:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T182538&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72892&fm=10892877603102&tin=02508201610067®Number=0000000000091644&sum=40006 [18:25:40]written 0, free lines is 4095 [18:25:40]OFD Sender: Processing packet 72892 [packets to send 279, broken 278] [18:25:40]ProducePacketName [18:25:40]name=ofd_packets/00072892 [18:25:40]OFD Sender: To server: pG, [18:25:40]CommunicateWithHost lk.salyk.kg:30040 [18:25:40]ConnectInit lk.salyk.kg [18:25:40]Write to MH i2c: 01 00 00 5B 00 5B [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: 01 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: 01 07 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F0 0C 5E [18:25:40]RasterBufferAndPrint [18:25:40]line [18:25:40]line [18:25:40]line [18:25:40]line [18:25:40]line [18:25:40]written 0, free lines is 3338 [18:25:40]MH_Cut [18:25:40]Write to MH i2c: D1 01 00 62 00 01 34 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: D1 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: D1 01 00 [18:25:40]MH_I2C_Read... [18:25:40]Read from MH i2c: D1 01 00 62 00 00 33 [18:25:40]Write to MH i2c: 01 00 00 63 00 63 [18:25:40]Write i2c OK [18:25:40]MH_I2C_Read... [18:25:41]recv_with_timeout no data received [18:25:41]*** Cut start [18:25:41]*** Partial cut [18:25:41]*** CUTSNS_PIN = 1 [18:25:41]*** CUTSNS_PIN = 0 [18:25:41]*** Brake cut motor [18:25:42]Read from MH i2c: 01 [18:25:42]MH_I2C_Read... [18:25:42]*** Stop cut motor [18:25:42]*** Cut end [18:25:42]Read from MH i2c: 01 07 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [18:25:42]process_action close_receipt done [18:25:42]requested_data is exist [18:25:42]produce_requested_data [18:25:42]requested_item fm.sn is exist - process it [18:25:42]wFMCommunicate request_size=4 [18:25:42]MH_SAM_APDU [18:25:42]CAPDU: 80 11 00 00 [18:25:42]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 17 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [18:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:25:42]wFMCommunicate OK [18:25:42]requested_item fd.num is exist - process it [18:25:42]SAM_PROTO_GetFieldsCounters [18:25:42]wFMCommunicate request_size=4 [18:25:42]MH_SAM_APDU [18:25:42]CAPDU: 80 13 00 00 [18:25:42]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 62 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BC 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [18:25:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BC 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:42]wFMCommunicate OK [18:25:42]SAM_PROTO_GetFieldsCounters done [18:25:42]requested_item shift.num is exist - process it [18:25:42]requested_item shift.opened is exist - process it [18:25:42]req_shift_opened [18:25:42]FM_GetShiftState [18:25:42]SAM_PROTO_GetShiftState [18:25:42]wFMCommunicate request_size=4 [18:25:42]MH_SAM_APDU [18:25:42]CAPDU: 80 13 01 00 [18:25:42]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [18:25:42]Write i2c OK [18:25:42]MH_I2C_Read... [18:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:42]Read from MH i2c: E2 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 0E 00 [18:25:42]MH_I2C_Read... [18:25:42]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B5 [18:25:42]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:25:42]wFMCommunicate OK [18:25:42]SAM_PROTO_GetShiftState done [18:25:42]FM_GetShiftState done [18:25:42]req_shift_opened done [18:25:42]requested_item shift.open_date is exist - process it [18:25:42]req_shift_open_date [18:25:42]req_shift_open_date done [18:25:42]produce_requested_data done [18:25:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72892,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [18:25:42]process_action_free close_receipt [18:25:42]json_value_free [18:25:42]json_value_free done [18:25:42]process_json_proto returns [18:25:42]Send response to host [18:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72892,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [18:25:42]free response buf [18:25:42]execute_script done [18:25:42]execute_script returns [18:25:42]free content buf [18:25:42]Sock 9.Close socket [18:25:42]Sock 9.Thread stoped [18:25:45]Connected sock=11 [18:25:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 40 83 07 01 2B 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 22 7A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1C 01 00 35 04 06 00 09 E8 32 19 A1 1E F9 8B 5A A1 E4 70 22 19 [18:25:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E2 0F 47 00 1F 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 38 37 34 36 36 32 10 04 04 00 BC 1C 01 00 F4 03 04 00 DF 24 22 67 B6 04 01 00 00 2C 8B BC 48 46 4F 91 2C [18:25:47]CommunicateWithHost err = 0 [18:25:47]CheckOFDResponse [18:25:47]1017 (14) - 77093643461234 [18:25:47]1041 (16) - 0000000000874662 [18:25:47]1040 (4) - 72892 [18:25:47]1012 (4) - 30.10.2024 12:21 [18:25:47]1206 (1) - 0 [18:25:47]OFD Sender: Remove packet 72892 [18:25:47]ProducePacketName [18:25:47]name=ofd_packets/00072892 [18:25:47]NVStorageDeleteData [18:25:47]OFD Sender: No OFD packet to send [18:25:52]recv_with_timeout no data received [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]recv_with_timeout no data received [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:35]accept exits with 10 [18:26:35]New connection [18:26:35]New thread 3066834276 created [18:26:35]Thread 3066977636 joined [18:26:35]Waiting for new connection... [18:26:35] Sock 10.Parse request [18:26:35]Sock 10.Check first char [18:26:35]Sock 10.First char is OK [18:26:35]request: POST /json_proto HTTP/1.0 [18:26:35]Method: POST [18:26:35]URL: /json_proto [18:26:35]Method is POST - this is cgi request [18:26:35]url: /json_proto [18:26:35]query_string will be loaded in cgi processing [18:26:35]execute_cgi json_proto POST (null) [18:26:35]execute_cgi path=json_proto method=POST [18:26:35]POST find Content-Length [18:26:35]Host: 172.17.43.195:8080 [18:26:35]Content-Length: 843 [18:26:35]Content-Type: application/json [18:26:35] [18:26:35]POST finish read [18:26:35]Found Content-Length = 843 [18:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.890, "sum" : 1550.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1550.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:35]execute_script... [18:26:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.890, "sum" : 1550.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1550.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:35]POST & json_proto [18:26:35]process_json_proto [18:26:35]json parsed OK: [18:26:35]protocol is kg_v1.0 [18:26:35]action value=close_receipt [18:26:35]process_action close_receipt [18:26:35]cmd_close_receipt [18:26:35]MH_GetDate [18:26:35]Write to MH i2c: F0 00 00 67 00 56 [18:26:35]Write i2c OK [18:26:35]MH_I2C_Read... [18:26:35]Read from MH i2c: F0 [18:26:35]MH_I2C_Read... [18:26:35]Read from MH i2c: F0 09 00 [18:26:35]MH_I2C_Read... [18:26:35]Read from MH i2c: F0 09 00 67 00 00 5B 7A 22 67 74 2C AD 66 70 [18:26:35]GetLastDocTimeStamp 1730312738 [18:26:35]current date 1730312795 [18:26:35]FM_GetShiftState [18:26:35]SAM_PROTO_GetShiftState [18:26:35]wFMCommunicate request_size=4 [18:26:35]MH_SAM_APDU [18:26:35]CAPDU: 80 13 01 00 [18:26:35]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [18:26:35]Write i2c OK [18:26:35]MH_I2C_Read... [18:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:35]Read from MH i2c: E2 [18:26:35]MH_I2C_Read... [18:26:35]Read from MH i2c: E2 0E 00 [18:26:35]MH_I2C_Read... [18:26:35]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B7 [18:26:35]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:26:35]wFMCommunicate OK [18:26:35]SAM_PROTO_GetShiftState done [18:26:35]FM_GetShiftState done [18:26:35]opened in 1730247109 [18:26:35]opened+sec_in_day 1730333509 [18:26:35]quantity*price = 155003 [18:26:35]sum+1 = 155005 [18:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1550.04 НСП 1% : 13.72 НДС 12% : 164.61 Наличными: 0.00 Безнал.: 1550.04 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 130 30.10.2024 18:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72893 ФПД: 240322065533161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T182635&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72893&fm=240322065533161&tin=02508201610067®Number=0000000000091644&sum=155004 [18:26:36]StoreToDocumentArchive [18:26:36]shift 556 fd 72893 [18:26:36]save to /storage/0556/doc_00072893 [18:26:36]save last doc name /storage/0556/doc_00072893 to /storage/kkm_last_doc_name [18:26:36]save OK [18:26:36]Clear old archive folders... [18:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:36]tlvbuf is 01287010 [18:26:36]SAM_PROTO_ClearQueue [18:26:36]wFMCommunicate request_size=4 [18:26:36]MH_SAM_APDU [18:26:36]CAPDU: 80 09 00 00 [18:26:36]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [18:26:36]Write i2c OK [18:26:36]MH_I2C_Read... [18:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:36]Read from MH i2c: E2 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 03 00 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [18:26:36]RAPDU: 90 00 [18:26:36]wFMCommunicate OK [18:26:36]SAM_PROTO_ClearQueue done [18:26:36]KKMCreateOFDPacket [18:26:36]OFDProtocolAddRootSTLVToBuf [18:26:36]FM_MakeSignedData [18:26:36]FM_MakeSignedData [18:26:36]SAM_PROTO_SignData [18:26:36]wFMCommunicate request_size=4 [18:26:36]MH_SAM_APDU [18:26:36]CAPDU: 80 0D 01 02 [18:26:36]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [18:26:36]Write i2c OK [18:26:36]MH_I2C_Read... [18:26:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:36]Read from MH i2c: E2 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 03 00 [18:26:36]MH_I2C_Read... [18:26:36]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:26:36]RAPDU: 90 00 [18:26:36]wFMCommunicate OK [18:26:36]wFMCommunicate request_size=255 [18:26:36]MH_SAM_APDU [18:26:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 5D 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5B 7A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1C 01 00 35 04 06 00 DA [18:26:36]Write to MH i2c: E2 02 01 77 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 33 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 5D 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5B 7A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1C 01 00 35 04 06 00 DA 00 00 3F [18:26:36]Write i2c OK [18:26:36]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:26:37]RAPDU: 90 00 [18:26:37]wFMCommunicate OK [18:26:37]wFMCommunicate request_size=10 [18:26:37]MH_SAM_APDU [18:26:37]CAPDU: 80 0D 02 02 05 92 57 59 08 E9 [18:26:37]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 92 57 59 08 E9 00 00 2F [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [18:26:37]RAPDU: 90 00 [18:26:37]wFMCommunicate OK [18:26:37]wFMCommunicate request_size=4 [18:26:37]MH_SAM_APDU [18:26:37]CAPDU: 80 0D 03 02 [18:26:37]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 0B 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 0B 00 79 00 00 62 47 8C 9A 88 22 5E 7B 90 00 47 [18:26:37]RAPDU: 62 47 8C 9A 88 22 5E 7B 90 00 [18:26:37]wFMCommunicate OK [18:26:37]SAM_PROTO_SignData done [18:26:37]FM_MakeSignedData done [18:26:37]CreateOFDProtocolMessage [18:26:37]wFMCommunicate request_size=4 [18:26:37]MH_SAM_APDU [18:26:37]CAPDU: 80 11 00 00 [18:26:37]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:37]Read from MH i2c: E2 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 17 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [18:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:26:37]wFMCommunicate OK [18:26:37]CreateOFDProtocolMessage done [18:26:37]OFDSenderStorePacket 72893 [18:26:37]StoreOFDPacket docnum=72893 [18:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0A 9A 07 01 5F 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 5D 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5B 7A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1C 01 00 35 04 06 00 DA 92 57 59 08 E9 62 47 8C 9A 88 22 5E 7B [18:26:37]CheckFolder [18:26:37]dirname=/storage/ofd_packets [18:26:37]CheckFolder done [18:26:37]ProducePacketName [18:26:37]name=ofd_packets/00072893 [18:26:37]NVStorageSaveData ofd_packets/00072893 [18:26:37]File name is /storage/ofd_packets/00072893 [18:26:37]Write 301 bytes [18:26:37]NVStorageSaveData done [18:26:37]OFDSenderStorePacket done [18:26:37]KKMCreateOFDPacket done [18:26:37]NVStorageSaveData kkm_last_timestamp [18:26:37]File name is /storage/kkm_last_timestamp [18:26:37]Write 4 bytes [18:26:37]NVStorageSaveData done [18:26:37]ExternCall_PrintAddStr [18:26:37]wPrintStart [18:26:37]Write to MH i2c: 01 00 00 7B 00 7B [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: 01 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: 01 07 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [18:26:37]RasterBufferAndPrint [18:26:37]line Счет N : (1)952484 [18:26:37]line ИНН: 02508201610067 [18:26:37]line Контрольно-Кассовый Чек [18:26:37]line ПРОДАЖА [18:26:37]line ТРК (МРК, ГНК) : 52 [18:26:37]line Товар: 2710124500 [18:26:37]line Аи-95-К-3 [18:26:37]line 20.890 * 74.20 [18:26:37]line = 1550.04 [18:26:37]line НДС 12% НСП 1% [18:26:37]line > о реализуемом товаре [18:26:37]line ИТОГО: 1550.04 [18:26:37]line НСП 1% : 13.72 [18:26:37]line НДС 12% : 164.61 [18:26:37]line Наличными: 0.00 [18:26:37]line Безнал.: 1550.04 [18:26:37]line Место: АЗС № 113 "Партнер Нефть" [18:26:37]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:26:37]line СНО: Общий режим [18:26:37]line Чек 130 30.10.2024 18:26 [18:26:37]line Смена: 556 ФФД: 1.0 [18:26:37]line ЗНМ: 0300000087 [18:26:37]line РНМ: 0000000000091644 [18:26:37]line Версия ККМ: 001 [18:26:37]line Платежная система: АКБ Кыргызстан [18:26:37]line ФМ: 0000000000874662 [18:26:37]line ФД: 72893 [18:26:37]line ФПД: 240322065533161 [18:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T182635&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72893&fm=240322065533161&tin=02508201610067®Number=0000000000091644&sum=155004 [18:26:37]OFD Sender: Processing packet 72893 [packets to send 279, broken 278] [18:26:37]ProducePacketName [18:26:37]name=ofd_packets/00072893 [18:26:37]OFD Sender: To server: pG, [18:26:37]CommunicateWithHost lk.salyk.kg:30040 [18:26:37]ConnectInit lk.salyk.kg [18:26:37]written 0, free lines is 4095 [18:26:37]Write to MH i2c: 01 00 00 A5 00 A5 [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: 01 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: 01 07 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 F3 0C AB [18:26:37]RasterBufferAndPrint [18:26:37]line [18:26:37]line [18:26:37]line [18:26:37]line [18:26:37]line [18:26:37]written 0, free lines is 3329 [18:26:37]MH_Cut [18:26:37]Write to MH i2c: D1 01 00 AC 00 01 7E [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: D1 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: D1 01 00 [18:26:37]MH_I2C_Read... [18:26:37]Read from MH i2c: D1 01 00 AC 00 00 7D [18:26:37]Write to MH i2c: 01 00 00 AD 00 AD [18:26:37]Write i2c OK [18:26:37]MH_I2C_Read... [18:26:38]recv_with_timeout no data received [18:26:38]*** Cut start [18:26:38]*** Partial cut [18:26:38]*** CUTSNS_PIN = 1 [18:26:38]*** CUTSNS_PIN = 0 [18:26:38]*** Brake cut motor [18:26:39]Read from MH i2c: 01 [18:26:39]MH_I2C_Read... [18:26:39]*** Stop cut motor [18:26:39]*** Cut end [18:26:39]Read from MH i2c: 01 07 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [18:26:39]process_action close_receipt done [18:26:39]requested_data is exist [18:26:39]produce_requested_data [18:26:39]requested_item fm.sn is exist - process it [18:26:39]wFMCommunicate request_size=4 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 11 00 00 [18:26:39]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 17 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [18:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:26:39]wFMCommunicate OK [18:26:39]requested_item fd.num is exist - process it [18:26:39]SAM_PROTO_GetFieldsCounters [18:26:39]wFMCommunicate request_size=4 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 13 00 00 [18:26:39]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 62 00 [18:26:39]MH_I2C_Read... [18:26:39]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BD 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [18:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BD 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:39]wFMCommunicate OK [18:26:39]SAM_PROTO_GetFieldsCounters done [18:26:39]requested_item shift.num is exist - process it [18:26:39]requested_item shift.opened is exist - process it [18:26:39]req_shift_opened [18:26:39]FM_GetShiftState [18:26:39]SAM_PROTO_GetShiftState [18:26:39]wFMCommunicate request_size=4 [18:26:39]MH_SAM_APDU [18:26:39]CAPDU: 80 13 01 00 [18:26:39]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [18:26:39]Write i2c OK [18:26:39]MH_I2C_Read... [18:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:39]Read from MH i2c: E2 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 0E 00 [18:26:39]MH_I2C_Read... [18:26:39]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 FF [18:26:39]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:26:39]wFMCommunicate OK [18:26:39]SAM_PROTO_GetShiftState done [18:26:39]FM_GetShiftState done [18:26:39]req_shift_opened done [18:26:39]requested_item shift.open_date is exist - process it [18:26:39]req_shift_open_date [18:26:39]req_shift_open_date done [18:26:39]produce_requested_data done [18:26:39]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72893,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [18:26:39]process_action_free close_receipt [18:26:39]json_value_free [18:26:39]json_value_free done [18:26:39]process_json_proto returns [18:26:39]Send response to host [18:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72893,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [18:26:39]free response buf [18:26:39]execute_script done [18:26:39]execute_script returns [18:26:39]free content buf [18:26:39]Sock 10.Close socket [18:26:39]Sock 10.Thread stoped [18:26:40]Connected sock=11 [18:26:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 0A 9A 07 01 5F 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 5D 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5B 7A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1C 01 00 35 04 06 00 DA 92 57 59 08 E9 62 47 8C 9A 88 22 5E 7B [18:26:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B8 5C 47 00 46 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1C 01 00 F4 03 04 00 16 25 22 67 B6 04 01 00 00 3A 4D 91 2D A8 E6 CF 38 [18:26:40]CommunicateWithHost err = 0 [18:26:40]CheckOFDResponse [18:26:40]1017 (14) - 77093643461234 [18:26:40]1041 (16) - 0000000000874662 [18:26:40]1040 (4) - 72893 [18:26:40]1012 (4) - 30.10.2024 12:22 [18:26:40]1206 (1) - 0 [18:26:40]OFD Sender: Remove packet 72893 [18:26:40]ProducePacketName [18:26:40]name=ofd_packets/00072893 [18:26:40]NVStorageDeleteData [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:49]recv_with_timeout no data received [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:26:59]recv_with_timeout no data received [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:21]recv_with_timeout no data received [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:33]accept exits with 9 [18:29:33]New connection [18:29:33]New thread 3066977636 created [18:29:33]Thread 3066834276 joined [18:29:33]Waiting for new connection... [18:29:33] Sock 9.Parse request [18:29:33]Sock 9.Check first char [18:29:33]Sock 9.First char is OK [18:29:33]request: POST /json_proto HTTP/1.0 [18:29:33]Method: POST [18:29:33]URL: /json_proto [18:29:33]Method is POST - this is cgi request [18:29:33]url: /json_proto [18:29:33]query_string will be loaded in cgi processing [18:29:33]execute_cgi json_proto POST (null) [18:29:33]execute_cgi path=json_proto method=POST [18:29:33]POST find Content-Length [18:29:33]Host: 172.17.43.195:8080 [18:29:33]Content-Length: 677 [18:29:33]Content-Type: application/json [18:29:33] [18:29:33]POST finish read [18:29:33]Found Content-Length = 677 [18:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:33]execute_script... [18:29:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:33]POST & json_proto [18:29:33]process_json_proto [18:29:33]json parsed OK: [18:29:33]protocol is kg_v1.0 [18:29:33]action value=close_receipt [18:29:33]process_action close_receipt [18:29:33]cmd_close_receipt [18:29:33]MH_GetDate [18:29:33]Write to MH i2c: F0 00 00 B1 00 A0 [18:29:33]Write i2c OK [18:29:33]MH_I2C_Read... [18:29:33]Read from MH i2c: F0 [18:29:33]MH_I2C_Read... [18:29:33]Read from MH i2c: F0 09 00 [18:29:33]MH_I2C_Read... [18:29:33]Read from MH i2c: F0 09 00 B1 00 00 0D 7B 22 67 74 2C AD 66 6D [18:29:33]GetLastDocTimeStamp 1730312795 [18:29:33]current date 1730312973 [18:29:33]FM_GetShiftState [18:29:33]SAM_PROTO_GetShiftState [18:29:33]wFMCommunicate request_size=4 [18:29:33]MH_SAM_APDU [18:29:33]CAPDU: 80 13 01 00 [18:29:33]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [18:29:33]Write i2c OK [18:29:33]MH_I2C_Read... [18:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:33]Read from MH i2c: E2 [18:29:33]MH_I2C_Read... [18:29:33]Read from MH i2c: E2 0E 00 [18:29:33]MH_I2C_Read... [18:29:33]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 01 [18:29:33]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:29:33]wFMCommunicate OK [18:29:33]SAM_PROTO_GetShiftState done [18:29:33]FM_GetShiftState done [18:29:33]opened in 1730247109 [18:29:33]opened+sec_in_day 1730333509 [18:29:33]quantity*price = 70044 [18:29:33]sum+1 = 70046 [18:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 131 30.10.2024 18:29 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72894 ФПД: 99341086636068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T182934&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72894&fm=99341086636068&tin=02508201610067®Number=0000000000091644&sum=70000 [18:29:34]StoreToDocumentArchive [18:29:34]shift 556 fd 72894 [18:29:34]save to /storage/0556/doc_00072894 [18:29:34]save last doc name /storage/0556/doc_00072894 to /storage/kkm_last_doc_name [18:29:34]save OK [18:29:34]Clear old archive folders... [18:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:34]tlvbuf is 012938B0 [18:29:34]SAM_PROTO_ClearQueue [18:29:34]wFMCommunicate request_size=4 [18:29:34]MH_SAM_APDU [18:29:34]CAPDU: 80 09 00 00 [18:29:34]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [18:29:34]Write i2c OK [18:29:34]MH_I2C_Read... [18:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:34]Read from MH i2c: E2 [18:29:34]MH_I2C_Read... [18:29:34]Read from MH i2c: E2 03 00 [18:29:34]MH_I2C_Read... [18:29:34]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [18:29:34]RAPDU: 90 00 [18:29:34]wFMCommunicate OK [18:29:34]SAM_PROTO_ClearQueue done [18:29:34]KKMCreateOFDPacket [18:29:34]OFDProtocolAddRootSTLVToBuf [18:29:34]FM_MakeSignedData [18:29:34]FM_MakeSignedData [18:29:34]SAM_PROTO_SignData [18:29:34]wFMCommunicate request_size=4 [18:29:34]MH_SAM_APDU [18:29:34]CAPDU: 80 0D 01 02 [18:29:34]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [18:29:34]Write i2c OK [18:29:34]MH_I2C_Read... [18:29:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:34]Read from MH i2c: E2 [18:29:34]MH_I2C_Read... [18:29:34]Read from MH i2c: E2 03 00 [18:29:34]MH_I2C_Read... [18:29:34]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [18:29:34]RAPDU: 90 00 [18:29:34]wFMCommunicate OK [18:29:34]wFMCommunicate request_size=255 [18:29:34]MH_SAM_APDU [18:29:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 0E 7B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1C 01 00 35 04 06 00 5A [18:29:34]Write to MH i2c: E2 02 01 C1 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 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 0E 7B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1C 01 00 35 04 06 00 5A 00 00 A5 [18:29:34]Write i2c OK [18:29:34]MH_I2C_Read... [18:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:35]Read from MH i2c: E2 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: E2 03 00 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:29:35]RAPDU: 90 00 [18:29:35]wFMCommunicate OK [18:29:35]wFMCommunicate request_size=10 [18:29:35]MH_SAM_APDU [18:29:35]CAPDU: 80 0D 02 02 05 59 A6 2E 38 24 [18:29:35]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 59 A6 2E 38 24 00 00 CF [18:29:35]Write i2c OK [18:29:35]MH_I2C_Read... [18:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:35]Read from MH i2c: E2 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: E2 03 00 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [18:29:35]RAPDU: 90 00 [18:29:35]wFMCommunicate OK [18:29:35]wFMCommunicate request_size=4 [18:29:35]MH_SAM_APDU [18:29:35]CAPDU: 80 0D 03 02 [18:29:35]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [18:29:35]Write i2c OK [18:29:35]MH_I2C_Read... [18:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:35]Read from MH i2c: E2 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: E2 0B 00 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: E2 0B 00 C3 00 00 78 7F 79 96 DE 6D 8C D4 90 00 F0 [18:29:35]RAPDU: 78 7F 79 96 DE 6D 8C D4 90 00 [18:29:35]wFMCommunicate OK [18:29:35]SAM_PROTO_SignData done [18:29:35]FM_MakeSignedData done [18:29:35]CreateOFDProtocolMessage [18:29:35]wFMCommunicate request_size=4 [18:29:35]MH_SAM_APDU [18:29:35]CAPDU: 80 11 00 00 [18:29:35]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [18:29:35]Write i2c OK [18:29:35]MH_I2C_Read... [18:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:35]Read from MH i2c: E2 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: E2 17 00 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [18:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:29:35]wFMCommunicate OK [18:29:35]CreateOFDProtocolMessage done [18:29:35]OFDSenderStorePacket 72894 [18:29:35]StoreOFDPacket docnum=72894 [18:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 91 16 07 01 5C 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 0E 7B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1C 01 00 35 04 06 00 5A 59 A6 2E 38 24 78 7F 79 96 DE 6D 8C D4 [18:29:35]CheckFolder [18:29:35]dirname=/storage/ofd_packets [18:29:35]CheckFolder done [18:29:35]ProducePacketName [18:29:35]name=ofd_packets/00072894 [18:29:35]NVStorageSaveData ofd_packets/00072894 [18:29:35]File name is /storage/ofd_packets/00072894 [18:29:35]Write 301 bytes [18:29:35]NVStorageSaveData done [18:29:35]OFDSenderStorePacket done [18:29:35]KKMCreateOFDPacket done [18:29:35]NVStorageSaveData kkm_last_timestamp [18:29:35]File name is /storage/kkm_last_timestamp [18:29:35]Write 4 bytes [18:29:35]NVStorageSaveData done [18:29:35]ExternCall_PrintAddStr [18:29:35]wPrintStart [18:29:35]Write to MH i2c: 01 00 00 C5 00 C5 [18:29:35]Write i2c OK [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: 01 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: 01 07 00 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [18:29:35]RasterBufferAndPrint [18:29:35]line Счет N : (1)952485 [18:29:35]line ИНН: 02508201610067 [18:29:35]line Контрольно-Кассовый Чек [18:29:35]line ПРОДАЖА [18:29:35]line ТРК (МРК, ГНК) : 52 [18:29:35]line Товар: 2710124500 [18:29:35]line Аи-95-К-3 [18:29:35]line 9.440 * 74.20 [18:29:35]line = 700.45 [18:29:35]line НДС 12% НСП 1% [18:29:35]line > о реализуемом товаре [18:29:35]line ОКРУГЛЕНИЕ: -0.45 [18:29:35]line ИТОГО: 700.00 [18:29:35]line Внесено: 700.00 [18:29:35]line СДАЧА: 0.00 [18:29:35]line НСП 1% : 6.20 [18:29:35]line НДС 12% : 74.38 [18:29:35]line Наличными: 700.00 [18:29:35]line Безнал.: 0.00 [18:29:35]line Место: АЗС № 113 "Партнер Нефть" [18:29:35]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:29:35]line СНО: Общий режим [18:29:35]line Чек 131 30.10.2024 18:29 [18:29:35]line Смена: 556 ФФД: 1.0 [18:29:35]line ЗНМ: 0300000087 [18:29:35]line РНМ: 0000000000091644 [18:29:35]line Версия ККМ: 001 [18:29:35]line ФМ: 0000000000874662 [18:29:35]line ФД: 72894 [18:29:35]line ФПД: 99341086636068 [18:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T182934&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72894&fm=99341086636068&tin=02508201610067®Number=0000000000091644&sum=70000 [18:29:35]written 0, free lines is 4095 [18:29:35]OFD Sender: Processing packet 72894 [packets to send 279, broken 278] [18:29:35]ProducePacketName [18:29:35]name=ofd_packets/00072894 [18:29:35]OFD Sender: To server: pG, [18:29:35]CommunicateWithHost lk.salyk.kg:30040 [18:29:35]ConnectInit lk.salyk.kg [18:29:35]Write to MH i2c: 01 00 00 F0 00 F0 [18:29:35]Write i2c OK [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: 01 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: 01 07 00 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 D7 0C DA [18:29:35]RasterBufferAndPrint [18:29:35]line [18:29:35]line [18:29:35]line [18:29:35]line [18:29:35]line [18:29:35]written 0, free lines is 3294 [18:29:35]MH_Cut [18:29:35]Write to MH i2c: D1 01 00 F7 00 01 C9 [18:29:35]Write i2c OK [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: D1 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: D1 01 00 [18:29:35]MH_I2C_Read... [18:29:35]Read from MH i2c: D1 01 00 F7 00 00 C8 [18:29:35]Write to MH i2c: 01 00 00 F8 00 F8 [18:29:35]Write i2c OK [18:29:35]MH_I2C_Read... [18:29:36]*** Cut start [18:29:36]*** Partial cut [18:29:36]*** CUTSNS_PIN = 1 [18:29:36]*** CUTSNS_PIN = 0 [18:29:36]*** Brake cut motor [18:29:37]Read from MH i2c: 01 [18:29:37]MH_I2C_Read... [18:29:37]*** Stop cut motor [18:29:37]*** Cut end [18:29:37]Read from MH i2c: 01 07 00 [18:29:37]MH_I2C_Read... [18:29:37]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [18:29:37]process_action close_receipt done [18:29:37]requested_data is exist [18:29:37]produce_requested_data [18:29:37]requested_item fm.sn is exist - process it [18:29:37]wFMCommunicate request_size=4 [18:29:37]MH_SAM_APDU [18:29:37]CAPDU: 80 11 00 00 [18:29:37]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [18:29:37]Write i2c OK [18:29:37]MH_I2C_Read... [18:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:37]Read from MH i2c: E2 [18:29:37]MH_I2C_Read... [18:29:37]Read from MH i2c: E2 17 00 [18:29:37]MH_I2C_Read... [18:29:37]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [18:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:29:37]wFMCommunicate OK [18:29:37]requested_item fd.num is exist - process it [18:29:37]SAM_PROTO_GetFieldsCounters [18:29:37]wFMCommunicate request_size=4 [18:29:37]MH_SAM_APDU [18:29:37]CAPDU: 80 13 00 00 [18:29:37]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [18:29:37]Write i2c OK [18:29:37]MH_I2C_Read... [18:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:37]Read from MH i2c: E2 [18:29:37]MH_I2C_Read... [18:29:37]Read from MH i2c: E2 62 00 [18:29:37]MH_I2C_Read... [18:29:37]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BE 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [18:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BE 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:37]wFMCommunicate OK [18:29:37]SAM_PROTO_GetFieldsCounters done [18:29:37]requested_item shift.num is exist - process it [18:29:37]requested_item shift.opened is exist - process it [18:29:37]req_shift_opened [18:29:37]FM_GetShiftState [18:29:37]SAM_PROTO_GetShiftState [18:29:37]wFMCommunicate request_size=4 [18:29:37]MH_SAM_APDU [18:29:37]CAPDU: 80 13 01 00 [18:29:37]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [18:29:37]Write i2c OK [18:29:37]MH_I2C_Read... [18:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:37]Read from MH i2c: E2 [18:29:37]MH_I2C_Read... [18:29:37]Read from MH i2c: E2 0E 00 [18:29:37]MH_I2C_Read... [18:29:37]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4A [18:29:37]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:29:37]wFMCommunicate OK [18:29:37]SAM_PROTO_GetShiftState done [18:29:37]FM_GetShiftState done [18:29:37]req_shift_opened done [18:29:37]requested_item shift.open_date is exist - process it [18:29:37]req_shift_open_date [18:29:37]req_shift_open_date done [18:29:37]produce_requested_data done [18:29:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72894,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [18:29:37]process_action_free close_receipt [18:29:37]json_value_free [18:29:37]json_value_free done [18:29:37]process_json_proto returns [18:29:37]Send response to host [18:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72894,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [18:29:37]free response buf [18:29:37]execute_script done [18:29:37]execute_script returns [18:29:37]free content buf [18:29:37]Sock 9.Close socket [18:29:37]Sock 9.Thread stoped [18:29:38]recv_with_timeout no data received [18:29:40]Connected sock=11 [18:29:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 91 16 07 01 5C 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 0E 7B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1C 01 00 35 04 06 00 5A 59 A6 2E 38 24 78 7F 79 96 DE 6D 8C D4 [18:29:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CB 07 47 00 9F 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1C 01 00 F4 03 04 00 CB 25 22 67 B6 04 01 00 00 6A 96 17 33 0D 5B C3 2D [18:29:41]CommunicateWithHost err = 0 [18:29:41]CheckOFDResponse [18:29:41]1017 (14) - 77093643461234 [18:29:41]1041 (16) - 0000000000874662 [18:29:41]1040 (4) - 72894 [18:29:41]1012 (4) - 30.10.2024 12:25 [18:29:41]1206 (1) - 0 [18:29:41]OFD Sender: Remove packet 72894 [18:29:41]ProducePacketName [18:29:41]name=ofd_packets/00072894 [18:29:41]NVStorageDeleteData [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:50]recv_with_timeout no data received [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:21]recv_with_timeout no data received [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:45]recv_with_timeout no data received [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:02]recv_with_timeout no data received [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:51]recv_with_timeout no data received [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:16]recv_with_timeout no data received [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:00]recv_with_timeout no data received [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:05]recv_with_timeout no data received [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]recv_with_timeout no data received [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:45]recv_with_timeout no data received [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:03]recv_with_timeout no data received [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]recv_with_timeout no data received [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:57]accept exits with 10 [18:41:57]New connection [18:41:57]New thread 3066834276 created [18:41:57]Thread 3066977636 joined [18:41:57]Waiting for new connection... [18:41:57] Sock 10.Parse request [18:41:57]Sock 10.Check first char [18:41:57]Sock 10.First char is OK [18:41:57]request: POST /json_proto HTTP/1.0 [18:41:57]Method: POST [18:41:57]URL: /json_proto [18:41:57]Method is POST - this is cgi request [18:41:57]url: /json_proto [18:41:57]query_string will be loaded in cgi processing [18:41:57]execute_cgi json_proto POST (null) [18:41:57]execute_cgi path=json_proto method=POST [18:41:57]POST find Content-Length [18:41:57]Host: 172.17.43.195:8080 [18:41:57]Content-Length: 791 [18:41:57]Content-Type: application/json [18:41:57] [18:41:57]POST finish read [18:41:57]Found Content-Length = 791 [18:41:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 9.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:57]execute_script... [18:41:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 9.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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:57]POST & json_proto [18:41:57]process_json_proto [18:41:57]json parsed OK: [18:41:57]protocol is kg_v1.0 [18:41:57]action value=close_receipt [18:41:57]process_action close_receipt [18:41:57]cmd_close_receipt [18:41:57]MH_GetDate [18:41:57]Write to MH i2c: F0 00 00 FC 00 EB [18:41:57]Write i2c OK [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: F0 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: F0 09 00 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: F0 09 00 FC 00 00 F5 7D 22 67 74 2C AD 66 A2 [18:41:57]GetLastDocTimeStamp 1730312974 [18:41:57]current date 1730313717 [18:41:57]FM_GetShiftState [18:41:57]SAM_PROTO_GetShiftState [18:41:57]wFMCommunicate request_size=4 [18:41:57]MH_SAM_APDU [18:41:57]CAPDU: 80 13 01 00 [18:41:57]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [18:41:57]Write i2c OK [18:41:57]MH_I2C_Read... [18:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:57]Read from MH i2c: E2 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: E2 0E 00 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4C [18:41:57]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:41:57]wFMCommunicate OK [18:41:57]SAM_PROTO_GetShiftState done [18:41:57]FM_GetShiftState done [18:41:57]opened in 1730247109 [18:41:57]opened+sec_in_day 1730333509 [18:41:57]quantity*price = 0 [18:41:57]sum+1 = 1 [18:41:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 132 30.10.2024 18:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72895 ФПД: 156681047419868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T184157&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72895&fm=156681047419868&tin=02508201610067®Number=0000000000091644&sum=0 [18:41:58]StoreToDocumentArchive [18:41:58]shift 556 fd 72895 [18:41:58]save to /storage/0556/doc_00072895 [18:41:58]save last doc name /storage/0556/doc_00072895 to /storage/kkm_last_doc_name [18:41:58]save OK [18:41:58]Clear old archive folders... [18:41:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:58]tlvbuf is 012AD120 [18:41:58]SAM_PROTO_ClearQueue [18:41:58]wFMCommunicate request_size=4 [18:41:58]MH_SAM_APDU [18:41:58]CAPDU: 80 09 00 00 [18:41:58]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [18:41:58]Write i2c OK [18:41:58]MH_I2C_Read... [18:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:58]Read from MH i2c: E2 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 03 00 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [18:41:58]RAPDU: 90 00 [18:41:58]wFMCommunicate OK [18:41:58]SAM_PROTO_ClearQueue done [18:41:58]KKMCreateOFDPacket [18:41:58]OFDProtocolAddRootSTLVToBuf [18:41:58]FM_MakeSignedData [18:41:58]FM_MakeSignedData [18:41:58]SAM_PROTO_SignData [18:41:58]wFMCommunicate request_size=4 [18:41:58]MH_SAM_APDU [18:41:58]CAPDU: 80 0D 01 02 [18:41:58]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [18:41:58]Write i2c OK [18:41:58]MH_I2C_Read... [18:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:58]Read from MH i2c: E2 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 03 00 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [18:41:58]RAPDU: 90 00 [18:41:58]wFMCommunicate OK [18:41:58]wFMCommunicate request_size=255 [18:41:58]MH_SAM_APDU [18:41:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 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 84 00 00 00 F4 03 04 00 F5 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1C 01 00 35 04 06 00 8E [18:41:58]Write to MH i2c: E2 02 01 0C 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 28 23 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 84 00 00 00 F4 03 04 00 F5 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1C 01 00 35 04 06 00 8E 00 00 F1 [18:41:58]Write i2c OK [18:41:58]MH_I2C_Read... [18:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:58]Read from MH i2c: E2 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 03 00 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [18:41:58]RAPDU: 90 00 [18:41:58]wFMCommunicate OK [18:41:58]wFMCommunicate request_size=10 [18:41:58]MH_SAM_APDU [18:41:58]CAPDU: 80 0D 02 02 05 80 26 2C AB DC [18:41:58]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 80 26 2C AB DC 00 00 EB [18:41:58]Write i2c OK [18:41:58]MH_I2C_Read... [18:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:58]Read from MH i2c: E2 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 03 00 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [18:41:58]RAPDU: 90 00 [18:41:58]wFMCommunicate OK [18:41:58]wFMCommunicate request_size=4 [18:41:58]MH_SAM_APDU [18:41:58]CAPDU: 80 0D 03 02 [18:41:58]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [18:41:58]Write i2c OK [18:41:58]MH_I2C_Read... [18:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:58]Read from MH i2c: E2 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 0B 00 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 0B 00 0E 01 00 10 FE 45 1E 26 6F F7 C7 90 00 4F [18:41:58]RAPDU: 10 FE 45 1E 26 6F F7 C7 90 00 [18:41:58]wFMCommunicate OK [18:41:58]SAM_PROTO_SignData done [18:41:58]FM_MakeSignedData done [18:41:58]CreateOFDProtocolMessage [18:41:58]wFMCommunicate request_size=4 [18:41:58]MH_SAM_APDU [18:41:58]CAPDU: 80 11 00 00 [18:41:58]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [18:41:58]Write i2c OK [18:41:58]MH_I2C_Read... [18:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:58]Read from MH i2c: E2 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 17 00 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [18:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:41:58]wFMCommunicate OK [18:41:58]CreateOFDProtocolMessage done [18:41:58]OFDSenderStorePacket 72895 [18:41:58]StoreOFDPacket docnum=72895 [18:41:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 99 35 07 01 29 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 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 84 00 00 00 F4 03 04 00 F5 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1C 01 00 35 04 06 00 8E 80 26 2C AB DC 10 FE 45 1E 26 6F F7 C7 [18:41:58]CheckFolder [18:41:58]dirname=/storage/ofd_packets [18:41:58]CheckFolder done [18:41:58]ProducePacketName [18:41:58]name=ofd_packets/00072895 [18:41:58]NVStorageSaveData ofd_packets/00072895 [18:41:58]File name is /storage/ofd_packets/00072895 [18:41:58]Write 301 bytes [18:41:58]NVStorageSaveData done [18:41:58]OFDSenderStorePacket done [18:41:58]KKMCreateOFDPacket done [18:41:58]NVStorageSaveData kkm_last_timestamp [18:41:58]File name is /storage/kkm_last_timestamp [18:41:58]Write 4 bytes [18:41:58]NVStorageSaveData done [18:41:58]ExternCall_PrintAddStr [18:41:58]wPrintStart [18:41:58]Write to MH i2c: 01 00 00 10 01 11 [18:41:58]Write i2c OK [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: 01 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: 01 07 00 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [18:41:58]RasterBufferAndPrint [18:41:58]line Счет N : (1)952486 [18:41:58]line ИНН: 02508201610067 [18:41:58]line Контрольно-Кассовый Чек [18:41:58]line ПРОДАЖА [18:41:58]line ТРК (МРК, ГНК) : 53 [18:41:58]line Товар: 2710124130 [18:41:58]line Аи-92-К-5 [18:41:58]line 9.000 * 0.00 [18:41:58]line = 0.00 [18:41:58]line НДС 12% НСП 1% [18:41:58]line > о реализуемом товаре [18:41:58]line ИТОГО: 0.00 [18:41:58]line НСП 1% : 0.00 [18:41:58]line НДС 12% : 0.00 [18:41:58]line Наличными: 0.00 [18:41:58]line Безнал.: 0.00 [18:41:58]line Место: АЗС № 113 "Партнер Нефть" [18:41:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:41:58]line СНО: Общий режим [18:41:58]line Чек 132 30.10.2024 18:41 [18:41:58]line Смена: 556 ФФД: 1.0 [18:41:58]line ЗНМ: 0300000087 [18:41:58]line РНМ: 0000000000091644 [18:41:58]line Версия ККМ: 001 [18:41:58]line Талоны: Топливная Карта [18:41:58]line 03047 [18:41:58]line ФМ: 0000000000874662 [18:41:58]line ФД: 72895 [18:41:58]line ФПД: 156681047419868 [18:41:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T184157&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72895&fm=156681047419868&tin=02508201610067®Number=0000000000091644&sum=0 [18:41:59]OFD Sender: Processing packet 72895 [packets to send 279, broken 278] [18:41:59]ProducePacketName [18:41:59]name=ofd_packets/00072895 [18:41:59]OFD Sender: To server: pG, [18:41:59]CommunicateWithHost lk.salyk.kg:30040 [18:41:59]ConnectInit lk.salyk.kg [18:41:59]written 0, free lines is 4095 [18:41:59]Write to MH i2c: 01 00 00 3A 01 3B [18:41:59]Write i2c OK [18:41:59]MH_I2C_Read... [18:41:59]Read from MH i2c: 01 [18:41:59]MH_I2C_Read... [18:41:59]Read from MH i2c: 01 07 00 [18:41:59]MH_I2C_Read... [18:41:59]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 E2 0C 30 [18:41:59]RasterBufferAndPrint [18:41:59]line [18:41:59]line [18:41:59]line [18:41:59]line [18:41:59]line [18:41:59]written 0, free lines is 3305 [18:41:59]MH_Cut [18:41:59]Write to MH i2c: D1 01 00 41 01 01 14 [18:41:59]Write i2c OK [18:41:59]MH_I2C_Read... [18:41:59]Read from MH i2c: D1 [18:41:59]MH_I2C_Read... [18:41:59]Read from MH i2c: D1 01 00 [18:41:59]MH_I2C_Read... [18:41:59]Read from MH i2c: D1 01 00 41 01 00 13 [18:41:59]Write to MH i2c: 01 00 00 42 01 43 [18:41:59]Write i2c OK [18:41:59]MH_I2C_Read... [18:42:00]*** Cut start [18:42:00]*** Partial cut [18:42:00]*** CUTSNS_PIN = 1 [18:42:00]*** CUTSNS_PIN = 0 [18:42:00]Connected sock=7 [18:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 99 35 07 01 29 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 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 84 00 00 00 F4 03 04 00 F5 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1C 01 00 35 04 06 00 8E 80 26 2C AB DC 10 FE 45 1E 26 6F F7 C7 [18:42:00]*** Brake cut motor [18:42:01]Read from MH i2c: 01 [18:42:01]MH_I2C_Read... [18:42:01]*** Stop cut motor [18:42:01]*** Cut end [18:42:01]Read from MH i2c: 01 07 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [18:42:01]process_action close_receipt done [18:42:01]requested_data is exist [18:42:01]produce_requested_data [18:42:01]requested_item fm.sn is exist - process it [18:42:01]wFMCommunicate request_size=4 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 11 00 00 [18:42:01]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:01]Read from MH i2c: E2 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 17 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [18:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:42:01]wFMCommunicate OK [18:42:01]requested_item fd.num is exist - process it [18:42:01]SAM_PROTO_GetFieldsCounters [18:42:01]wFMCommunicate request_size=4 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 13 00 00 [18:42:01]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:01]Read from MH i2c: E2 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 62 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BF 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [18:42:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BF 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:01]wFMCommunicate OK [18:42:01]SAM_PROTO_GetFieldsCounters done [18:42:01]requested_item shift.num is exist - process it [18:42:01]requested_item shift.opened is exist - process it [18:42:01]req_shift_opened [18:42:01]FM_GetShiftState [18:42:01]SAM_PROTO_GetShiftState [18:42:01]wFMCommunicate request_size=4 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 13 01 00 [18:42:01]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:01]Read from MH i2c: E2 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 0E 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 95 [18:42:01]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:42:01]wFMCommunicate OK [18:42:01]SAM_PROTO_GetShiftState done [18:42:01]FM_GetShiftState done [18:42:01]req_shift_opened done [18:42:01]requested_item shift.open_date is exist - process it [18:42:01]req_shift_open_date [18:42:01]req_shift_open_date done [18:42:01]produce_requested_data done [18:42:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72895,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [18:42:01]process_action_free close_receipt [18:42:01]json_value_free [18:42:01]json_value_free done [18:42:01]process_json_proto returns [18:42:01]Send response to host [18:42:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72895,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [18:42:01]free response buf [18:42:01]execute_script done [18:42:01]execute_script returns [18:42:01]free content buf [18:42:01]Sock 10.Close socket [18:42:01]Sock 10.Thread stoped [18:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 96 3C 47 00 04 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1C 01 00 F4 03 04 00 AF 28 22 67 B6 04 01 00 00 A6 7A 8A F7 8F 58 AE D1 [18:42:01]CommunicateWithHost err = 0 [18:42:01]CheckOFDResponse [18:42:01]1017 (14) - 77093643461234 [18:42:01]1041 (16) - 0000000000874662 [18:42:01]1040 (4) - 72895 [18:42:01]1012 (4) - 30.10.2024 12:38 [18:42:01]1206 (1) - 0 [18:42:01]OFD Sender: Remove packet 72895 [18:42:01]ProducePacketName [18:42:01]name=ofd_packets/00072895 [18:42:01]NVStorageDeleteData [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:25]recv_with_timeout no data received [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:35]recv_with_timeout no data received [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:55]accept exits with 9 [18:43:55]New connection [18:43:55]New thread 3066977636 created [18:43:55]Thread 3066834276 joined [18:43:55]Waiting for new connection... [18:43:55] Sock 9.Parse request [18:43:55]Sock 9.Check first char [18:43:55]Sock 9.First char is OK [18:43:55]request: POST /json_proto HTTP/1.0 [18:43:55]Method: POST [18:43:55]URL: /json_proto [18:43:55]Method is POST - this is cgi request [18:43:55]url: /json_proto [18:43:55]query_string will be loaded in cgi processing [18:43:55]execute_cgi json_proto POST (null) [18:43:55]execute_cgi path=json_proto method=POST [18:43:55]POST find Content-Length [18:43:55]Host: 172.17.43.195:8080 [18:43:55]Content-Length: 754 [18:43:55]Content-Type: application/json [18:43:55] [18:43:55]POST finish read [18:43:55]Found Content-Length = 754 [18:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:55]execute_script... [18:43:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:55]POST & json_proto [18:43:55]process_json_proto [18:43:55]json parsed OK: [18:43:55]protocol is kg_v1.0 [18:43:55]action value=close_receipt [18:43:55]process_action close_receipt [18:43:55]cmd_close_receipt [18:43:55]MH_GetDate [18:43:55]Write to MH i2c: F0 00 00 46 01 36 [18:43:55]Write i2c OK [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: F0 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: F0 09 00 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: F0 09 00 46 01 00 6B 7E 22 67 74 2C AD 66 64 [18:43:55]GetLastDocTimeStamp 1730313717 [18:43:55]current date 1730313835 [18:43:55]FM_GetShiftState [18:43:55]SAM_PROTO_GetShiftState [18:43:55]wFMCommunicate request_size=4 [18:43:55]MH_SAM_APDU [18:43:55]CAPDU: 80 13 01 00 [18:43:55]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [18:43:55]Write i2c OK [18:43:55]MH_I2C_Read... [18:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:55]Read from MH i2c: E2 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: E2 0E 00 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 97 [18:43:55]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:43:55]wFMCommunicate OK [18:43:55]SAM_PROTO_GetShiftState done [18:43:55]FM_GetShiftState done [18:43:55]opened in 1730247109 [18:43:55]opened+sec_in_day 1730333509 [18:43:55]quantity*price = 0 [18:43:55]sum+1 = 1 [18:43:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 133 30.10.2024 18:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30005682 ФМ: 0000000000874662 ФД: 72896 ФПД: 254177616531012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T184355&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72896&fm=254177616531012&tin=02508201610067®Number=0000000000091644&sum=0 [18:43:56]StoreToDocumentArchive [18:43:56]shift 556 fd 72896 [18:43:56]save to /storage/0556/doc_00072896 [18:43:56]save last doc name /storage/0556/doc_00072896 to /storage/kkm_last_doc_name [18:43:56]save OK [18:43:56]Clear old archive folders... [18:43:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:56]tlvbuf is 0121BD30 [18:43:56]SAM_PROTO_ClearQueue [18:43:56]wFMCommunicate request_size=4 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 09 00 00 [18:43:56]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:56]Read from MH i2c: E2 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [18:43:56]RAPDU: 90 00 [18:43:56]wFMCommunicate OK [18:43:56]SAM_PROTO_ClearQueue done [18:43:56]KKMCreateOFDPacket [18:43:56]OFDProtocolAddRootSTLVToBuf [18:43:56]FM_MakeSignedData [18:43:56]FM_MakeSignedData [18:43:56]SAM_PROTO_SignData [18:43:56]wFMCommunicate request_size=4 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 0D 01 02 [18:43:56]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:56]Read from MH i2c: E2 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [18:43:56]RAPDU: 90 00 [18:43:56]wFMCommunicate OK [18:43:56]wFMCommunicate request_size=255 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 6B 7E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1C 01 00 35 04 06 00 E7 [18:43:56]Write to MH i2c: E2 02 01 56 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 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 85 00 00 00 F4 03 04 00 6B 7E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1C 01 00 35 04 06 00 E7 00 00 F9 [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:56]Read from MH i2c: E2 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [18:43:56]RAPDU: 90 00 [18:43:56]wFMCommunicate OK [18:43:56]wFMCommunicate request_size=10 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 0D 02 02 05 2C 56 8B 0E 44 [18:43:56]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 2C 56 8B 0E 44 00 00 3B [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:57]Read from MH i2c: E2 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: E2 03 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [18:43:57]RAPDU: 90 00 [18:43:57]wFMCommunicate OK [18:43:57]wFMCommunicate request_size=4 [18:43:57]MH_SAM_APDU [18:43:57]CAPDU: 80 0D 03 02 [18:43:57]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:57]Read from MH i2c: E2 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: E2 0B 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: E2 0B 00 58 01 00 62 C4 C5 5D 55 C9 61 AC 90 00 48 [18:43:57]RAPDU: 62 C4 C5 5D 55 C9 61 AC 90 00 [18:43:57]wFMCommunicate OK [18:43:57]SAM_PROTO_SignData done [18:43:57]FM_MakeSignedData done [18:43:57]CreateOFDProtocolMessage [18:43:57]wFMCommunicate request_size=4 [18:43:57]MH_SAM_APDU [18:43:57]CAPDU: 80 11 00 00 [18:43:57]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:57]Read from MH i2c: E2 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: E2 17 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [18:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:43:57]wFMCommunicate OK [18:43:57]CreateOFDProtocolMessage done [18:43:57]OFDSenderStorePacket 72896 [18:43:57]StoreOFDPacket docnum=72896 [18:43:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 60 AF 07 01 20 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 6B 7E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1C 01 00 35 04 06 00 E7 2C 56 8B 0E 44 62 C4 C5 5D 55 C9 61 AC [18:43:57]CheckFolder [18:43:57]dirname=/storage/ofd_packets [18:43:57]CheckFolder done [18:43:57]ProducePacketName [18:43:57]name=ofd_packets/00072896 [18:43:57]NVStorageSaveData ofd_packets/00072896 [18:43:57]File name is /storage/ofd_packets/00072896 [18:43:57]Write 301 bytes [18:43:57]NVStorageSaveData done [18:43:57]OFDSenderStorePacket done [18:43:57]KKMCreateOFDPacket done [18:43:57]NVStorageSaveData kkm_last_timestamp [18:43:57]File name is /storage/kkm_last_timestamp [18:43:57]Write 4 bytes [18:43:57]NVStorageSaveData done [18:43:57]ExternCall_PrintAddStr [18:43:57]wPrintStart [18:43:57]Write to MH i2c: 01 00 00 5A 01 5B [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 07 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [18:43:57]RasterBufferAndPrint [18:43:57]line Счет N : (1)952487 [18:43:57]line ИНН: 02508201610067 [18:43:57]line Контрольно-Кассовый Чек [18:43:57]line ПРОДАЖА [18:43:57]line ТРК (МРК, ГНК) : 63 [18:43:57]line Товар: 2710124130 [18:43:57]line Аи-92-К-5 [18:43:57]line 10.000 * 0.00 [18:43:57]line = 0.00 [18:43:57]line НДС 12% НСП 1% [18:43:57]line > о реализуемом товаре [18:43:57]line ИТОГО: 0.00 [18:43:57]line НСП 1% : 0.00 [18:43:57]line НДС 12% : 0.00 [18:43:57]line Наличными: 0.00 [18:43:57]line Безнал.: 0.00 [18:43:57]line Место: АЗС № 113 "Партнер Нефть" [18:43:57]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:43:57]line СНО: Общий режим [18:43:57]line Чек 133 30.10.2024 18:43 [18:43:57]line Смена: 556 ФФД: 1.0 [18:43:57]line ЗНМ: 0300000087 [18:43:57]line РНМ: 0000000000091644 [18:43:57]line Версия ККМ: 001 [18:43:57]line Талоны: ТК ГПНА Online [18:43:57]line 30005682 [18:43:57]line ФМ: 0000000000874662 [18:43:57]line ФД: 72896 [18:43:57]line ФПД: 254177616531012 [18:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T184355&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72896&fm=254177616531012&tin=02508201610067®Number=0000000000091644&sum=0 [18:43:57]written 0, free lines is 4095 [18:43:57]OFD Sender: Processing packet 72896 [packets to send 279, broken 278] [18:43:57]ProducePacketName [18:43:57]name=ofd_packets/00072896 [18:43:57]OFD Sender: To server: pG, [18:43:57]CommunicateWithHost lk.salyk.kg:30040 [18:43:57]ConnectInit lk.salyk.kg [18:43:57]Write to MH i2c: 01 00 00 84 01 85 [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 07 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 E0 0C 78 [18:43:57]RasterBufferAndPrint [18:43:57]line [18:43:57]line [18:43:57]line [18:43:57]line [18:43:57]line [18:43:57]written 0, free lines is 3302 [18:43:57]MH_Cut [18:43:57]Write to MH i2c: D1 01 00 8B 01 01 5E [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: D1 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: D1 01 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: D1 01 00 8B 01 00 5D [18:43:57]Write to MH i2c: 01 00 00 8C 01 8D [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:58]*** Cut start [18:43:58]*** Partial cut [18:43:58]*** CUTSNS_PIN = 1 [18:43:58]Connected sock=10 [18:43:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 60 AF 07 01 20 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 6B 7E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1C 01 00 35 04 06 00 E7 2C 56 8B 0E 44 62 C4 C5 5D 55 C9 61 AC [18:43:58]*** CUTSNS_PIN = 0 [18:43:58]*** Brake cut motor [18:43:58]Read from MH i2c: 01 [18:43:58]MH_I2C_Read... [18:43:58]*** Stop cut motor [18:43:58]*** Cut end [18:43:58]Read from MH i2c: 01 07 00 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [18:43:58]process_action close_receipt done [18:43:58]requested_data is exist [18:43:58]produce_requested_data [18:43:58]requested_item fm.sn is exist - process it [18:43:58]wFMCommunicate request_size=4 [18:43:58]MH_SAM_APDU [18:43:58]CAPDU: 80 11 00 00 [18:43:58]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [18:43:58]Write i2c OK [18:43:58]MH_I2C_Read... [18:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:59]Read from MH i2c: E2 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 17 00 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [18:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:43:59]wFMCommunicate OK [18:43:59]requested_item fd.num is exist - process it [18:43:59]SAM_PROTO_GetFieldsCounters [18:43:59]wFMCommunicate request_size=4 [18:43:59]MH_SAM_APDU [18:43:59]CAPDU: 80 13 00 00 [18:43:59]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [18:43:59]Write i2c OK [18:43:59]MH_I2C_Read... [18:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:59]Read from MH i2c: E2 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 62 00 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C0 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [18:43:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C0 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:59]wFMCommunicate OK [18:43:59]SAM_PROTO_GetFieldsCounters done [18:43:59]requested_item shift.num is exist - process it [18:43:59]requested_item shift.opened is exist - process it [18:43:59]req_shift_opened [18:43:59]FM_GetShiftState [18:43:59]SAM_PROTO_GetShiftState [18:43:59]wFMCommunicate request_size=4 [18:43:59]MH_SAM_APDU [18:43:59]CAPDU: 80 13 01 00 [18:43:59]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [18:43:59]Write i2c OK [18:43:59]MH_I2C_Read... [18:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:59]Read from MH i2c: E2 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 0E 00 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 DF [18:43:59]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [18:43:59]wFMCommunicate OK [18:43:59]SAM_PROTO_GetShiftState done [18:43:59]FM_GetShiftState done [18:43:59]req_shift_opened done [18:43:59]requested_item shift.open_date is exist - process it [18:43:59]req_shift_open_date [18:43:59]req_shift_open_date done [18:43:59]produce_requested_data done [18:43:59]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72896,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [18:43:59]process_action_free close_receipt [18:43:59]json_value_free [18:43:59]json_value_free done [18:43:59]process_json_proto returns [18:43:59]Send response to host [18:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72896,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [18:43:59]free response buf [18:43:59]execute_script done [18:43:59]execute_script returns [18:43:59]free content buf [18:43:59]Sock 9.Close socket [18:43:59]Sock 9.Thread stoped [18:43:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 50 4D 47 00 DE 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 38 37 34 36 36 32 10 04 04 00 C0 1C 01 00 F4 03 04 00 24 29 22 67 B6 04 01 00 00 D5 93 C1 EC 77 3D 37 2A [18:43:59]CommunicateWithHost err = 0 [18:43:59]CheckOFDResponse [18:43:59]1017 (14) - 77093643461234 [18:43:59]1041 (16) - 0000000000874662 [18:43:59]1040 (4) - 72896 [18:43:59]1012 (4) - 30.10.2024 12:40 [18:43:59]1206 (1) - 0 [18:43:59]OFD Sender: Remove packet 72896 [18:43:59]ProducePacketName [18:43:59]name=ofd_packets/00072896 [18:43:59]NVStorageDeleteData [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:13]recv_with_timeout no data received [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:26]recv_with_timeout no data received [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:45:55]recv_with_timeout no data received [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:26]recv_with_timeout no data received [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:31]recv_with_timeout no data received [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:03]recv_with_timeout no data received [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:24]recv_with_timeout no data received [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:49]recv_with_timeout no data received [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:12]recv_with_timeout no data received [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:28]recv_with_timeout no data received [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:39]recv_with_timeout no data received [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:08]recv_with_timeout no data received [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:19]recv_with_timeout no data received [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:21]recv_with_timeout no data received [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:34]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:13]recv_with_timeout no data received [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]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]recv_with_timeout no data received [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:20]accept exits with 7 [19:02:20]New connection [19:02:20]New thread 3066834276 created [19:02:20]Thread 3066977636 joined [19:02:20]Waiting for new connection... [19:02:20] Sock 7.Parse request [19:02:20]Sock 7.Check first char [19:02:20]Sock 7.First char is OK [19:02:20]request: POST /json_proto HTTP/1.0 [19:02:20]Method: POST [19:02:20]URL: /json_proto [19:02:20]Method is POST - this is cgi request [19:02:20]url: /json_proto [19:02:20]query_string will be loaded in cgi processing [19:02:20]execute_cgi json_proto POST (null) [19:02:20]execute_cgi path=json_proto method=POST [19:02:20]POST find Content-Length [19:02:20]Host: 172.17.43.195:8080 [19:02:20]Content-Length: 843 [19:02:20]Content-Type: application/json [19:02:20] [19:02:20]POST finish read [19:02:20]Found Content-Length = 843 [19:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:20]execute_script... [19:02:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:20]POST & json_proto [19:02:20]process_json_proto [19:02:20]json parsed OK: [19:02:20]protocol is kg_v1.0 [19:02:20]action value=close_receipt [19:02:20]process_action close_receipt [19:02:20]cmd_close_receipt [19:02:20]MH_GetDate [19:02:20]Write to MH i2c: F0 00 00 90 01 80 [19:02:20]Write i2c OK [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: F0 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: F0 09 00 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: F0 09 00 90 01 00 BC 82 22 67 74 2C AD 66 03 [19:02:20]GetLastDocTimeStamp 1730313835 [19:02:20]current date 1730314940 [19:02:20]FM_GetShiftState [19:02:20]SAM_PROTO_GetShiftState [19:02:20]wFMCommunicate request_size=4 [19:02:20]MH_SAM_APDU [19:02:20]CAPDU: 80 13 01 00 [19:02:20]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [19:02:20]Write i2c OK [19:02:20]MH_I2C_Read... [19:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:20]Read from MH i2c: E2 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: E2 0E 00 [19:02:20]MH_I2C_Read... [19:02:20]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E1 [19:02:20]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:02:20]wFMCommunicate OK [19:02:20]SAM_PROTO_GetShiftState done [19:02:20]FM_GetShiftState done [19:02:20]opened in 1730247109 [19:02:20]opened+sec_in_day 1730333509 [19:02:20]quantity*price = 100021 [19:02:20]sum+1 = 100023 [19:02:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 134 30.10.2024 19:02 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72897 ФПД: 278396358691351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190220&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72897&fm=278396358691351&tin=02508201610067®Number=0000000000091644&sum=100022 [19:02:21]StoreToDocumentArchive [19:02:21]shift 556 fd 72897 [19:02:21]save to /storage/0556/doc_00072897 [19:02:21]save last doc name /storage/0556/doc_00072897 to /storage/kkm_last_doc_name [19:02:21]save OK [19:02:21]Clear old archive folders... [19:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:21]tlvbuf is 0121B910 [19:02:21]SAM_PROTO_ClearQueue [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 09 00 00 [19:02:21]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]SAM_PROTO_ClearQueue done [19:02:21]KKMCreateOFDPacket [19:02:21]OFDProtocolAddRootSTLVToBuf [19:02:21]FM_MakeSignedData [19:02:21]FM_MakeSignedData [19:02:21]SAM_PROTO_SignData [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 01 02 [19:02:21]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]wFMCommunicate request_size=255 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BC 82 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1C 01 00 35 04 06 00 FD [19:02:21]Write to MH i2c: E2 02 01 A0 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BC 82 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1C 01 00 35 04 06 00 FD 00 00 45 [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]wFMCommunicate request_size=10 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 02 02 05 33 34 11 0A 17 [19:02:21]Write to MH i2c: E2 0D 00 A1 01 80 0D 02 02 05 00 33 34 11 0A 17 00 00 BF [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]OFD Sender: No OFD packet to send [19:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:21]Read from MH i2c: E2 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 [19:02:21]MH_I2C_Read... [19:02:21]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [19:02:21]RAPDU: 90 00 [19:02:21]wFMCommunicate OK [19:02:21]wFMCommunicate request_size=4 [19:02:21]MH_SAM_APDU [19:02:21]CAPDU: 80 0D 03 02 [19:02:21]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [19:02:21]Write i2c OK [19:02:21]MH_I2C_Read... [19:02:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:22]Read from MH i2c: E2 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: E2 0B 00 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: E2 0B 00 A2 01 00 73 0A DC 62 FE 30 A0 5F 90 00 07 [19:02:22]RAPDU: 73 0A DC 62 FE 30 A0 5F 90 00 [19:02:22]wFMCommunicate OK [19:02:22]SAM_PROTO_SignData done [19:02:22]FM_MakeSignedData done [19:02:22]CreateOFDProtocolMessage [19:02:22]wFMCommunicate request_size=4 [19:02:22]MH_SAM_APDU [19:02:22]CAPDU: 80 11 00 00 [19:02:22]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [19:02:22]Write i2c OK [19:02:22]MH_I2C_Read... [19:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:22]Read from MH i2c: E2 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: E2 17 00 [19:02:22]MH_I2C_Read... [19:02:22]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 72 [19:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [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 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [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 540000000057257A (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: 7690239+1722625140=1730315379 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [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 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [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 41 00 40 00 FF FF 5F [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 74 84 22 67 74 2C AD 66 33 [19:09:40]Current date/time: 30.10.2024 19:09 [19:09:40]FM_Init [19:09:40]wFMConnect [19:09:40]MH_SAM_On [19:09:40]Write to MH i2c: E0 00 00 08 00 E7 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_init finished! [19:09:40]*** atr: [19:09:40]*** 0F 3B D5 18 FF 81 91 FE [19:09:40]*** 1F C3 80 73 C8 21 10 0A [19:09:40]*** 00 00 00 00 00 00 00 00 [19:09:40]*** 00 00 00 00 00 00 00 00 [19:09:40]*** 00 00 00 00 00 00 00 00 [19:09:40]*** 00 00 00 00 00 00 00 00 [19:09:40]*** 00 00 00 00 00 00 00 00 [19:09:40]*** 00 00 00 00 00 00 00 00 [19:09:40]Read from MH i2c: E0 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E0 10 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:09:40]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:09:40]wFMCommunicate request_size=10 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:09:40]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:09:40]RAPDU: 90 00 [19:09:40]wFMCommunicate OK [19:09:40]wFMCommunicate request_size=4 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 11 00 00 [19:09:40]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 17 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [19:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:09:40]wFMCommunicate OK [19:09:40]Detected FM SN is 0000000000874662 [19:09:40]Stored FM SN is 0000000000874662 [19:09:40]wFMCommunicate request_size=9 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 16 00 00 04 08 EB 00 00 [19:09:40]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:09:40]RAPDU: 90 00 [19:09:40]wFMCommunicate OK [19:09:40]FM PIN OK [19:09:40]wFMCommunicate request_size=8 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 14 04 00 03 02 00 01 [19:09:40]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:09:40]RAPDU: 90 00 [19:09:40]wFMCommunicate OK [19:09:40]wFMCommunicate request_size=13 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:09:40]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:09:40]RAPDU: 90 00 [19:09:40]wFMCommunicate OK [19:09:40]wFMCommunicate request_size=4 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 11 00 00 [19:09:40]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 17 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [19:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:09:40]wFMCommunicate OK [19:09:40]DocumentArchiveInit [19:09:40]Start Httpd... [19:09:40]Httpd thread 3067624804 created [19:09:40]Write to MH i2c: 01 00 00 0F 00 0F [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 07 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:09:40]MH Int Process started [19:09:40]Allocated Socket 8 [19:09:40]Bind OK [19:09:40]Listen OK [19:09:40]httpd running on port 8080 [19:09:40]Waiting for new connection... [19:09:40]OFD Sender: Processing packet 72897 [packets to send 279, broken 278] [19:09:40]ProducePacketName [19:09:40]name=ofd_packets/00072897 [19:09:40]OFD Sender: To server: pG, [19:09:40]CommunicateWithHost lk.salyk.kg:30040 [19:09:40]ConnectInit lk.salyk.kg [19:09:41]accept exits with 9 [19:09:41]New connection [19:09:41]New thread 3067338084 created [19:09:41]Waiting for new connection... [19:09:41] Sock 9.Parse request [19:09:41]Sock 9.Check first char [19:09:41]Sock 9.First char is OK [19:09:41]request: POST /json_proto HTTP/1.0 [19:09:41]Method: POST [19:09:41]URL: /json_proto [19:09:41]Method is POST - this is cgi request [19:09:41]url: /json_proto [19:09:41]query_string will be loaded in cgi processing [19:09:41]execute_cgi json_proto POST (null) [19:09:41]execute_cgi path=json_proto method=POST [19:09:41]POST find Content-Length [19:09:41]Host: 172.17.43.195:8080 [19:09:41]Content-Length: 215 [19:09:41]Content-Type: application/json [19:09:41] [19:09:41]POST finish read [19:09:41]Found Content-Length = 215 [19:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:41]execute_script... [19:09:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:41]POST & json_proto [19:09:41]process_json_proto [19:09:41]json parsed OK: [19:09:41]protocol is kg_v1.0 [19:09:41]action value=get_value [19:09:41]process_action get_value [19:09:41]cmd_get_value [19:09:41]process_action get_value done [19:09:41]requested_data is exist [19:09:41]produce_requested_data [19:09:41]requested_item kkm.sn is exist - process it [19:09:41]requested_item kkm.ver is exist - process it [19:09:41]requested_item fm.sn is exist - process it [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 11 00 00 [19:09:41]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 17 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [19:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:09:41]wFMCommunicate OK [19:09:41]requested_item fd.num is exist - process it [19:09:41]SAM_PROTO_GetFieldsCounters [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 13 00 00 [19:09:41]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 62 00 [19:09:41]MH_I2C_Read... [19:09:41]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [19:09:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:41]wFMCommunicate OK [19:09:41]SAM_PROTO_GetFieldsCounters done [19:09:41]requested_item shift.num is exist - process it [19:09:41]requested_item shift.opened is exist - process it [19:09:41]req_shift_opened [19:09:41]FM_GetShiftState [19:09:41]SAM_PROTO_GetShiftState [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 13 01 00 [19:09:41]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 0E 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 61 [19:09:41]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:09:41]wFMCommunicate OK [19:09:41]SAM_PROTO_GetShiftState done [19:09:41]FM_GetShiftState done [19:09:41]req_shift_opened done [19:09:41]requested_item shift.open_date is exist - process it [19:09:41]req_shift_open_date [19:09:41]req_shift_open_date done [19:09:41]produce_requested_data done [19:09:41]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72897,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:09:41]process_action_free get_value [19:09:41]json_value_free [19:09:41]json_value_free done [19:09:41]process_json_proto returns [19:09:41]Send response to host [19:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72897,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:09:41]free response buf [19:09:41]execute_script done [19:09:41]execute_script returns [19:09:41]free content buf [19:09:41]Sock 9.Close socket [19:09:41]Sock 9.Thread stoped [19:09:41]accept exits with 11 [19:09:41]New connection [19:09:41]New thread 3067194724 created [19:09:41]Thread 3067338084 joined [19:09:41]Waiting for new connection... [19:09:41] Sock 11.Parse request [19:09:41]Sock 11.Check first char [19:09:41]Sock 11.First char is OK [19:09:41]request: POST /json_proto HTTP/1.0 [19:09:41]Method: POST [19:09:41]URL: /json_proto [19:09:41]Method is POST - this is cgi request [19:09:41]url: /json_proto [19:09:41]query_string will be loaded in cgi processing [19:09:41]execute_cgi json_proto POST (null) [19:09:41]execute_cgi path=json_proto method=POST [19:09:41]POST find Content-Length [19:09:41]Host: 172.17.43.195:8080 [19:09:41]Content-Length: 331 [19:09:41]Content-Type: application/json [19:09:41] [19:09:41]POST finish read [19:09:41]Found Content-Length = 331 [19:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:09:41]execute_script... [19:09:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:09:41]POST & json_proto [19:09:41]process_json_proto [19:09:41]json parsed OK: [19:09:41]protocol is kg_v1.0 [19:09:41]action value=get_value [19:09:41]process_action get_value [19:09:41]cmd_get_value [19:09:41]process_action get_value done [19:09:41]requested_data is exist [19:09:41]produce_requested_data [19:09:41]requested_item fm.sale.total is exist - process it [19:09:41]SAM_PROTO_GetFMData [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 13 03 00 [19:09:41]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]Connected sock=6 [19:09:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2B 00 07 01 F6 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BC 82 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1C 01 00 35 04 06 00 FD 33 34 11 0A 17 73 0A DC 62 FE 30 A0 5F [19:09:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:09:42]Read from MH i2c: E2 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 FD 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 69 18 01 00 69 04 A3 00 6F 04 04 00 79 17 01 00 B1 04 05 00 C2 10 F8 A3 01 70 04 05 00 50 4F 93 58 01 72 04 04 00 72 C1 64 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E3 05 9C 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3E 99 B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 83 [19:09:42]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 69 18 01 00 69 04 A3 00 6F 04 04 00 79 17 01 00 B1 04 05 00 C2 10 F8 A3 01 70 04 05 00 50 4F 93 58 01 72 04 04 00 72 C1 64 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E3 05 9C 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 3E 99 B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [19:09:42]wFMCommunicate OK [19:09:42]wFMCommunicate request_size=4 [19:09:42]MH_SAM_APDU [19:09:42]CAPDU: 80 17 00 00 [19:09:42]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:09:42]Read from MH i2c: E2 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 FD 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [19:09:42]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:09:42]wFMCommunicate OK [19:09:42]wFMCommunicate request_size=4 [19:09:42]MH_SAM_APDU [19:09:42]CAPDU: 80 17 00 00 [19:09:42]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B3 01 47 00 23 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1C 01 00 F4 03 04 00 2C 2F 22 67 B6 04 01 00 00 CA 5A 9E 30 85 B6 8D 12 [19:09:42]CommunicateWithHost err = 0 [19:09:42]CheckOFDResponse [19:09:42]1017 (14) - 77093643461234 [19:09:42]1041 (16) - 0000000000874662 [19:09:42]1040 (4) - 72897 [19:09:42]1012 (4) - 30.10.2024 13:05 [19:09:42]1206 (1) - 0 [19:09:42]OFD Sender: Remove packet 72897 [19:09:42]ProducePacketName [19:09:42]name=ofd_packets/00072897 [19:09:42]NVStorageDeleteData [19:09:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:09:42]Read from MH i2c: E2 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 FD 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [19:09:42]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:09:42]wFMCommunicate OK [19:09:42]wFMCommunicate request_size=4 [19:09:42]MH_SAM_APDU [19:09:42]CAPDU: 80 17 00 00 [19:09:42]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:09:43]Read from MH i2c: E2 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 FD 00 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [19:09:43]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:09:43]wFMCommunicate OK [19:09:43]wFMCommunicate request_size=4 [19:09:43]MH_SAM_APDU [19:09:43]CAPDU: 80 17 00 00 [19:09:43]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:09:43]Write i2c OK [19:09:43]MH_I2C_Read... [19:09:43]OFD Sender: No OFD packet to send [19:09:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [19:09:43]Read from MH i2c: E2 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 E1 00 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:09:43]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:09:43]wFMCommunicate OK [19:09:43]SAM_PROTO_GetFMData done [19:09:43]requested_item fm.sale_refund.total is exist - process it [19:09:43]requested_item fm.buy.total is exist - process it [19:09:43]requested_item shift.sale.total is exist - process it [19:09:43]SAM_PROTO_GetShiftData [19:09:43]wFMCommunicate request_size=4 [19:09:43]MH_SAM_APDU [19:09:43]CAPDU: 80 13 02 00 [19:09:43]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:09:43]Write i2c OK [19:09:43]MH_I2C_Read... [19:09:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:09:43]Read from MH i2c: E2 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 FD 00 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 85 00 00 00 B1 04 03 00 33 C9 7D 70 04 03 00 A0 73 4B 72 04 03 00 93 55 32 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 3B 5C 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 05 1D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 10 [19:09:43]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 85 00 00 00 B1 04 03 00 33 C9 7D 70 04 03 00 A0 73 4B 72 04 03 00 93 55 32 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 3B 5C 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 05 1D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [19:09:43]wFMCommunicate OK [19:09:43]wFMCommunicate request_size=4 [19:09:43]MH_SAM_APDU [19:09:43]CAPDU: 80 17 00 00 [19:09:43]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:09:43]Write i2c OK [19:09:43]MH_I2C_Read... [19:09:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:09:44]Read from MH i2c: E2 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 FD 00 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 A2 [19:09:44]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [19:09:44]wFMCommunicate OK [19:09:44]wFMCommunicate request_size=4 [19:09:44]MH_SAM_APDU [19:09:44]CAPDU: 80 17 00 00 [19:09:44]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:09:44]Write i2c OK [19:09:44]MH_I2C_Read... [19:09:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:09:44]Read from MH i2c: E2 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 FD 00 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [19:09:44]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [19:09:44]wFMCommunicate OK [19:09:44]wFMCommunicate request_size=4 [19:09:44]MH_SAM_APDU [19:09:44]CAPDU: 80 17 00 00 [19:09:44]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:09:44]Write i2c OK [19:09:44]MH_I2C_Read... [19:09:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:09:44]Read from MH i2c: E2 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 FD 00 [19:09:44]MH_I2C_Read... [19:09:44]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [19:09:44]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [19:09:44]wFMCommunicate OK [19:09:44]wFMCommunicate request_size=4 [19:09:44]MH_SAM_APDU [19:09:44]CAPDU: 80 17 00 00 [19:09:44]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:09:44]Write i2c OK [19:09:44]MH_I2C_Read... [19:09:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [19:09:45]Read from MH i2c: E2 [19:09:45]MH_I2C_Read... [19:09:45]Read from MH i2c: E2 D6 00 [19:09:45]MH_I2C_Read... [19:09:45]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [19:09:45]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:09:45]wFMCommunicate OK [19:09:45]SAM_PROTO_GetShiftData done [19:09:45]requested_item shift.sale.total_cash is exist - process it [19:09:45]requested_item shift.sale_refund.total is exist - process it [19:09:45]requested_item shift.sale_refund.total_cash is exist - process it [19:09:45]requested_item shift.buy.total is exist - process it [19:09:45]requested_item shift.buy.total_cash is exist - process it [19:09:45]produce_requested_data done [19:09:45]produce_requested_data return {"fm.sale.total":70459107.22,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":82435.07,"shift.sale.total_cash":49448.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:09:45]process_action_free get_value [19:09:45]json_value_free [19:09:45]json_value_free done [19:09:45]process_json_proto returns [19:09:45]Send response to host [19:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70459107.22,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":82435.07,"shift.sale.total_cash":49448.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:09:45]free response buf [19:09:45]execute_script done [19:09:45]execute_script returns [19:09:45]free content buf [19:09:45]Sock 11.Close socket [19:09:45]Sock 11.Thread stoped [19:09:45]accept exits with 9 [19:09:45]New connection [19:09:45]New thread 3067338084 created [19:09:45]Thread 3067194724 joined [19:09:45]Waiting for new connection... [19:09:45] Sock 9.Parse request [19:09:45]Sock 9.Check first char [19:09:45]Sock 9.First char is OK [19:09:45]request: POST /json_proto HTTP/1.0 [19:09:45]Method: POST [19:09:45]URL: /json_proto [19:09:45]Method is POST - this is cgi request [19:09:45]url: /json_proto [19:09:45]query_string will be loaded in cgi processing [19:09:45]execute_cgi json_proto POST (null) [19:09:45]execute_cgi path=json_proto method=POST [19:09:45]POST find Content-Length [19:09:45]Host: 172.17.43.195:8080 [19:09:45]Content-Length: 677 [19:09:45]Content-Type: application/json [19:09:45] [19:09:45]POST finish read [19:09:45]Found Content-Length = 677 [19:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:45]execute_script... [19:09:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:45]POST & json_proto [19:09:45]process_json_proto [19:09:45]json parsed OK: [19:09:45]protocol is kg_v1.0 [19:09:45]action value=close_receipt [19:09:45]process_action close_receipt [19:09:45]cmd_close_receipt [19:09:45]MH_GetDate [19:09:45]Write to MH i2c: F0 00 00 1D 00 0C [19:09:45]Write i2c OK [19:09:45]MH_I2C_Read... [19:09:45]Read from MH i2c: F0 [19:09:45]MH_I2C_Read... [19:09:45]Read from MH i2c: F0 09 00 [19:09:45]MH_I2C_Read... [19:09:45]Read from MH i2c: F0 09 00 1D 00 00 79 84 22 67 74 2C AD 66 4E [19:09:45]GetLastDocTimeStamp 1730314940 [19:09:45]current date 1730315385 [19:09:45]FM_GetShiftState [19:09:45]SAM_PROTO_GetShiftState [19:09:45]wFMCommunicate request_size=4 [19:09:45]MH_SAM_APDU [19:09:45]CAPDU: 80 13 01 00 [19:09:45]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [19:09:45]Write i2c OK [19:09:45]MH_I2C_Read... [19:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:45]Read from MH i2c: E2 [19:09:45]MH_I2C_Read... [19:09:45]Read from MH i2c: E2 0E 00 [19:09:45]MH_I2C_Read... [19:09:45]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 6D [19:09:45]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:09:45]wFMCommunicate OK [19:09:45]SAM_PROTO_GetShiftState done [19:09:45]FM_GetShiftState done [19:09:45]opened in 1730247109 [19:09:45]opened+sec_in_day 1730333509 [19:09:45]quantity*price = 50041 [19:09:45]sum+1 = 50042 [19:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 135 30.10.2024 19:09 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72898 ФПД: 100396164264573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190946&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72898&fm=100396164264573&tin=02508201610067®Number=0000000000091644&sum=50000 [19:09:46]StoreToDocumentArchive [19:09:46]shift 556 fd 72898 [19:09:46]save to /storage/0556/doc_00072898 [19:09:46]save last doc name /storage/0556/doc_00072898 to /storage/kkm_last_doc_name [19:09:46]save OK [19:09:46]Clear old archive folders... [19:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:46]tlvbuf is 006F7080 [19:09:46]SAM_PROTO_ClearQueue [19:09:46]wFMCommunicate request_size=4 [19:09:46]MH_SAM_APDU [19:09:46]CAPDU: 80 09 00 00 [19:09:46]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:09:46]Write i2c OK [19:09:46]MH_I2C_Read... [19:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:46]Read from MH i2c: E2 [19:09:46]MH_I2C_Read... [19:09:46]Read from MH i2c: E2 03 00 [19:09:46]MH_I2C_Read... [19:09:46]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:09:46]RAPDU: 90 00 [19:09:46]wFMCommunicate OK [19:09:46]SAM_PROTO_ClearQueue done [19:09:46]KKMCreateOFDPacket [19:09:46]OFDProtocolAddRootSTLVToBuf [19:09:46]FM_MakeSignedData [19:09:46]FM_MakeSignedData [19:09:46]SAM_PROTO_SignData [19:09:46]wFMCommunicate request_size=4 [19:09:46]MH_SAM_APDU [19:09:46]CAPDU: 80 0D 01 02 [19:09:46]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:09:46]Write i2c OK [19:09:46]MH_I2C_Read... [19:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:47]Read from MH i2c: E2 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 03 00 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:09:47]RAPDU: 90 00 [19:09:47]wFMCommunicate OK [19:09:47]wFMCommunicate request_size=255 [19:09:47]MH_SAM_APDU [19:09:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7A 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1C 01 00 35 04 06 00 5B [19:09:47]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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7A 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1C 01 00 35 04 06 00 5B 00 00 AA [19:09:47]Write i2c OK [19:09:47]MH_I2C_Read... [19:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:47]Read from MH i2c: E2 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 03 00 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:09:47]RAPDU: 90 00 [19:09:47]wFMCommunicate OK [19:09:47]wFMCommunicate request_size=10 [19:09:47]MH_SAM_APDU [19:09:47]CAPDU: 80 0D 02 02 05 4F 4D B5 32 7D [19:09:47]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 4F 4D B5 32 7D 00 00 B2 [19:09:47]Write i2c OK [19:09:47]MH_I2C_Read... [19:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:47]Read from MH i2c: E2 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 03 00 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:09:47]RAPDU: 90 00 [19:09:47]wFMCommunicate OK [19:09:47]wFMCommunicate request_size=4 [19:09:47]MH_SAM_APDU [19:09:47]CAPDU: 80 0D 03 02 [19:09:47]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:09:47]Write i2c OK [19:09:47]MH_I2C_Read... [19:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:47]Read from MH i2c: E2 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 0B 00 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 0B 00 2F 00 00 96 64 D9 51 03 10 54 5E 90 00 94 [19:09:47]RAPDU: 96 64 D9 51 03 10 54 5E 90 00 [19:09:47]wFMCommunicate OK [19:09:47]SAM_PROTO_SignData done [19:09:47]FM_MakeSignedData done [19:09:47]CreateOFDProtocolMessage [19:09:47]wFMCommunicate request_size=4 [19:09:47]MH_SAM_APDU [19:09:47]CAPDU: 80 11 00 00 [19:09:47]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:09:47]Write i2c OK [19:09:47]MH_I2C_Read... [19:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:47]Read from MH i2c: E2 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 17 00 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [19:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:09:47]wFMCommunicate OK [19:09:47]CreateOFDProtocolMessage done [19:09:47]OFDSenderStorePacket 72898 [19:09:47]StoreOFDPacket docnum=72898 [19:09:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C9 4E 07 01 B8 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7A 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1C 01 00 35 04 06 00 5B 4F 4D B5 32 7D 96 64 D9 51 03 10 54 5E [19:09:47]CheckFolder [19:09:47]dirname=/storage/ofd_packets [19:09:47]CheckFolder done [19:09:47]ProducePacketName [19:09:47]name=ofd_packets/00072898 [19:09:47]NVStorageSaveData ofd_packets/00072898 [19:09:47]File name is /storage/ofd_packets/00072898 [19:09:47]Write 301 bytes [19:09:47]NVStorageSaveData done [19:09:47]OFDSenderStorePacket done [19:09:47]KKMCreateOFDPacket done [19:09:47]NVStorageSaveData kkm_last_timestamp [19:09:47]File name is /storage/kkm_last_timestamp [19:09:47]Write 4 bytes [19:09:47]NVStorageSaveData done [19:09:47]ExternCall_PrintAddStr [19:09:47]wPrintStart [19:09:47]Write to MH i2c: 01 00 00 31 00 31 [19:09:47]Write i2c OK [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: 01 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: 01 07 00 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:09:47]RasterBufferAndPrint [19:09:47]line Счет N : (1)952491 [19:09:47]line ИНН: 02508201610067 [19:09:47]line Контрольно-Кассовый Чек [19:09:47]line ПРОДАЖА [19:09:47]line ТРК (МРК, ГНК) : 53 [19:09:47]line Товар: 2710124130 [19:09:47]line Аи-92-К-5 [19:09:47]line 7.480 * 66.90 [19:09:47]line = 500.41 [19:09:47]line НДС 12% НСП 1% [19:09:47]line > о реализуемом товаре [19:09:47]line ОКРУГЛЕНИЕ: -0.41 [19:09:47]line ИТОГО: 500.00 [19:09:47]line Внесено: 500.00 [19:09:47]line СДАЧА: 0.00 [19:09:47]line НСП 1% : 4.43 [19:09:47]line НДС 12% : 53.14 [19:09:47]line Наличными: 500.00 [19:09:47]line Безнал.: 0.00 [19:09:47]line Место: АЗС № 113 "Партнер Нефть" [19:09:47]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:09:47]line СНО: Общий режим [19:09:47]line Чек 135 30.10.2024 19:09 [19:09:47]line Смена: 556 ФФД: 1.0 [19:09:47]line ЗНМ: 0300000087 [19:09:47]line РНМ: 0000000000091644 [19:09:47]line Версия ККМ: 001 [19:09:47]line ФМ: 0000000000874662 [19:09:47]line ФД: 72898 [19:09:47]line ФПД: 100396164264573 [19:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190946&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72898&fm=100396164264573&tin=02508201610067®Number=0000000000091644&sum=50000 [19:09:47]written 0, free lines is 4095 [19:09:47]OFD Sender: Processing packet 72898 [packets to send 279, broken 278] [19:09:47]ProducePacketName [19:09:47]name=ofd_packets/00072898 [19:09:47]OFD Sender: To server: pG, [19:09:47]CommunicateWithHost lk.salyk.kg:30040 [19:09:47]ConnectInit lk.salyk.kg [19:09:48]Write to MH i2c: 01 00 00 5C 00 5C [19:09:48]Write i2c OK [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: 01 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: 01 07 00 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 DA 0C 49 [19:09:48]RasterBufferAndPrint [19:09:48]line [19:09:48]line [19:09:48]line [19:09:48]line [19:09:48]line [19:09:48]written 0, free lines is 3312 [19:09:48]MH_Cut [19:09:48]Write to MH i2c: D1 01 00 63 00 01 35 [19:09:48]Write i2c OK [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: D1 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: D1 01 00 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: D1 01 00 63 00 00 34 [19:09:48]Write to MH i2c: 01 00 00 64 00 64 [19:09:48]Write i2c OK [19:09:48]MH_I2C_Read... [19:09:48]Connected sock=11 [19:09:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C9 4E 07 01 B8 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7A 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1C 01 00 35 04 06 00 5B 4F 4D B5 32 7D 96 64 D9 51 03 10 54 5E [19:09:48]*** Cut start [19:09:48]*** Partial cut [19:09:48]*** CUTSNS_PIN = 1 [19:09:48]*** CUTSNS_PIN = 0 [19:09:49]*** Brake cut motor [19:09:49]Read from MH i2c: 01 [19:09:49]MH_I2C_Read... [19:09:49]*** Stop cut motor [19:09:49]*** Cut end [19:09:49]Read from MH i2c: 01 07 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [19:09:49]process_action close_receipt done [19:09:49]requested_data is exist [19:09:49]produce_requested_data [19:09:49]requested_item fm.sn is exist - process it [19:09:49]wFMCommunicate request_size=4 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 11 00 00 [19:09:49]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 17 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [19:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:09:49]wFMCommunicate OK [19:09:49]requested_item fd.num is exist - process it [19:09:49]SAM_PROTO_GetFieldsCounters [19:09:49]wFMCommunicate request_size=4 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 13 00 00 [19:09:49]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 62 00 [19:09:49]MH_I2C_Read... [19:09:49]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C2 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [19:09:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C2 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:49]wFMCommunicate OK [19:09:49]SAM_PROTO_GetFieldsCounters done [19:09:49]requested_item shift.num is exist - process it [19:09:49]requested_item shift.opened is exist - process it [19:09:49]req_shift_opened [19:09:49]FM_GetShiftState [19:09:49]SAM_PROTO_GetShiftState [19:09:49]wFMCommunicate request_size=4 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 13 01 00 [19:09:49]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1E Read from MH i2c: EE E2 47 [19:09:50]00 MH_I2C_Read... [19:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:50]Read from MH i2c: 65 C1 A5 E2 07 0E 01 00 00 [19:09:50]07 MH_I2C_Read... [19:09:50]00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 Read from MH i2c: 10 E2 04 0E 04 00 00 67 C2 00 1C 00 01 09 00 00 F4 01 03 C5 04 79 00 21 32 67 2F 00 22 00 67 00 B6 00 04 90 01 00 00 B6 00 [19:09:50]14 RAPDU: 6B 09 F2 00 1B 01 DB C5 56 79 CB E8 [19:09:50]CommunicateWithHost err = 0 [19:09:50]CheckOFDResponse [19:09:50]1017 (14) - 77093643461234 [19:09:50]1041 (16) - 0000000000874662 [19:09:50]1040 (4) - 72898 [19:09:50]1012 (4) - 30.10.2024 13:05 [19:09:50]1206 (1) - 0 [19:09:50]OFD Sender: Remove packet 72898 [19:09:50]ProducePacketName [19:09:50]name=ofd_packets/00072898 [19:09:50]NVStorageDeleteData [19:09:50]21 67 00 00 00 00 90 00 [19:09:50]wFMCommunicate OK [19:09:50]SAM_PROTO_GetShiftState done [19:09:50]FM_GetShiftState done [19:09:50]req_shift_opened done [19:09:50]requested_item shift.open_date is exist - process it [19:09:50]req_shift_open_date [19:09:50]req_shift_open_date done [19:09:50]produce_requested_data done [19:09:50]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72898,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:09:50]process_action_free close_receipt [19:09:50]json_value_free [19:09:50]json_value_free done [19:09:50]process_json_proto returns [19:09:50]Send response to host [19:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72898,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:09:50]free response buf [19:09:50]execute_script done [19:09:50]execute_script returns [19:09:50]free content buf [19:09:50]Sock 9.Close socket [19:09:50]Sock 9.Thread stoped [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]recv_with_timeout no data received [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:15]recv_with_timeout no data received [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:26]recv_with_timeout no data received [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:36]recv_with_timeout no data received [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:53]recv_with_timeout no data received [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:03]recv_with_timeout no data received [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:10]accept exits with 10 [19:11:10]New connection [19:11:10]New thread 3067194724 created [19:11:10]Thread 3067338084 joined [19:11:10]Waiting for new connection... [19:11:10] Sock 10.Parse request [19:11:10]Sock 10.Check first char [19:11:10]Sock 10.First char is OK [19:11:10]request: POST /json_proto HTTP/1.0 [19:11:10]Method: POST [19:11:10]URL: /json_proto [19:11:10]Method is POST - this is cgi request [19:11:10]url: /json_proto [19:11:10]query_string will be loaded in cgi processing [19:11:10]execute_cgi json_proto POST (null) [19:11:10]execute_cgi path=json_proto method=POST [19:11:10]POST find Content-Length [19:11:10]Host: 172.17.43.195:8080 [19:11:10]Content-Length: 677 [19:11:10]Content-Type: application/json [19:11:10] [19:11:10]POST finish read [19:11:10]Found Content-Length = 677 [19:11:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:10]execute_script... [19:11: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)952492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:10]POST & json_proto [19:11:10]process_json_proto [19:11:10]json parsed OK: [19:11:10]protocol is kg_v1.0 [19:11:10]action value=close_receipt [19:11:10]process_action close_receipt [19:11:10]cmd_close_receipt [19:11:10]MH_GetDate [19:11:10]Write to MH i2c: F0 00 00 68 00 57 [19:11:10]Write i2c OK [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: F0 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: F0 09 00 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: F0 09 00 68 00 00 CF 84 22 67 74 2C AD 66 EF [19:11:10]GetLastDocTimeStamp 1730315386 [19:11:10]current date 1730315471 [19:11:10]FM_GetShiftState [19:11:10]SAM_PROTO_GetShiftState [19:11:10]wFMCommunicate request_size=4 [19:11:10]MH_SAM_APDU [19:11:10]CAPDU: 80 13 01 00 [19:11:10]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [19:11:10]Write i2c OK [19:11:10]MH_I2C_Read... [19:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:10]Read from MH i2c: E2 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 0E 00 [19:11:10]MH_I2C_Read... [19:11:10]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B8 [19:11:10]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:11:10]wFMCommunicate OK [19:11:10]SAM_PROTO_GetShiftState done [19:11:10]FM_GetShiftState done [19:11:10]opened in 1730247109 [19:11:10]opened+sec_in_day 1730333509 [19:11:10]quantity*price = 20003 [19:11:10]sum+1 = 20004 [19:11:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 136 30.10.2024 19:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72899 ФПД: 107359034243664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191111&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72899&fm=107359034243664&tin=02508201610067®Number=0000000000091644&sum=20000 [19:11:11]StoreToDocumentArchive [19:11:11]shift 556 fd 72899 [19:11:11]save to /storage/0556/doc_00072899 [19:11:11]save last doc name /storage/0556/doc_00072899 to /storage/kkm_last_doc_name [19:11:11]save OK [19:11:11]Clear old archive folders... [19:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:11]tlvbuf is 00703820 [19:11:11]SAM_PROTO_ClearQueue [19:11:11]wFMCommunicate request_size=4 [19:11:11]MH_SAM_APDU [19:11:11]CAPDU: 80 09 00 00 [19:11:11]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [19:11:11]Write i2c OK [19:11:11]MH_I2C_Read... [19:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:12]Read from MH i2c: E2 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 03 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [19:11:12]RAPDU: 90 00 [19:11:12]wFMCommunicate OK [19:11:12]SAM_PROTO_ClearQueue done [19:11:12]KKMCreateOFDPacket [19:11:12]OFDProtocolAddRootSTLVToBuf [19:11:12]FM_MakeSignedData [19:11:12]FM_MakeSignedData [19:11:12]SAM_PROTO_SignData [19:11:12]wFMCommunicate request_size=4 [19:11:12]MH_SAM_APDU [19:11:12]CAPDU: 80 0D 01 02 [19:11:12]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:12]Read from MH i2c: E2 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 03 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [19:11:12]RAPDU: 90 00 [19:11:12]wFMCommunicate OK [19:11:12]wFMCommunicate request_size=255 [19:11:12]MH_SAM_APDU [19:11:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 CF 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1C 01 00 35 04 06 00 61 [19:11:12]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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 CF 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1C 01 00 35 04 06 00 61 00 00 14 [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:12]Read from MH i2c: E2 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 03 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [19:11:12]RAPDU: 90 00 [19:11:12]wFMCommunicate OK [19:11:12]wFMCommunicate request_size=10 [19:11:12]MH_SAM_APDU [19:11:12]CAPDU: 80 0D 02 02 05 A4 79 19 7A 50 [19:11:12]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 A4 79 19 7A 50 00 00 FD [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:12]Read from MH i2c: E2 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 03 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [19:11:12]RAPDU: 90 00 [19:11:12]wFMCommunicate OK [19:11:12]wFMCommunicate request_size=4 [19:11:12]MH_SAM_APDU [19:11:12]CAPDU: 80 0D 03 02 [19:11:12]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:12]Read from MH i2c: E2 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 0B 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 0B 00 7A 00 00 A7 6A BF F2 7B C3 1E AB 90 00 BF [19:11:12]RAPDU: A7 6A BF F2 7B C3 1E AB 90 00 [19:11:12]wFMCommunicate OK [19:11:12]SAM_PROTO_SignData done [19:11:12]FM_MakeSignedData done [19:11:12]CreateOFDProtocolMessage [19:11:12]wFMCommunicate request_size=4 [19:11:12]MH_SAM_APDU [19:11:12]CAPDU: 80 11 00 00 [19:11:12]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:12]Read from MH i2c: E2 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 17 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 49 [19:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:11:12]wFMCommunicate OK [19:11:12]CreateOFDProtocolMessage done [19:11:12]OFDSenderStorePacket 72899 [19:11:12]StoreOFDPacket docnum=72899 [19:11:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 61 98 07 01 D3 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 CF 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1C 01 00 35 04 06 00 61 A4 79 19 7A 50 A7 6A BF F2 7B C3 1E AB [19:11:12]CheckFolder [19:11:12]dirname=/storage/ofd_packets [19:11:12]CheckFolder done [19:11:12]ProducePacketName [19:11:12]name=ofd_packets/00072899 [19:11:12]NVStorageSaveData ofd_packets/00072899 [19:11:12]File name is /storage/ofd_packets/00072899 [19:11:12]Write 301 bytes [19:11:12]NVStorageSaveData done [19:11:12]OFDSenderStorePacket done [19:11:12]KKMCreateOFDPacket done [19:11:12]NVStorageSaveData kkm_last_timestamp [19:11:12]File name is /storage/kkm_last_timestamp [19:11:12]Write 4 bytes [19:11:12]NVStorageSaveData done [19:11:12]ExternCall_PrintAddStr [19:11:12]wPrintStart [19:11:12]Write to MH i2c: 01 00 00 7C 00 7C [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: 01 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: 01 07 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [19:11:12]RasterBufferAndPrint [19:11:12]line Счет N : (1)952492 [19:11:12]line ИНН: 02508201610067 [19:11:12]line Контрольно-Кассовый Чек [19:11:12]line ПРОДАЖА [19:11:12]line ТРК (МРК, ГНК) : 63 [19:11:12]line Товар: 2710124130 [19:11:12]line Аи-92-К-5 [19:11:12]line 2.990 * 66.90 [19:11:12]line = 200.03 [19:11:12]line НДС 12% НСП 1% [19:11:12]line > о реализуемом товаре [19:11:12]line ОКРУГЛЕНИЕ: -0.03 [19:11:12]line ИТОГО: 200.00 [19:11:12]line Внесено: 200.00 [19:11:12]line СДАЧА: 0.00 [19:11:12]line НСП 1% : 1.77 [19:11:12]line НДС 12% : 21.24 [19:11:12]line Наличными: 200.00 [19:11:12]line Безнал.: 0.00 [19:11:12]line Место: АЗС № 113 "Партнер Нефть" [19:11:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:11:12]line СНО: Общий режим [19:11:12]line Чек 136 30.10.2024 19:11 [19:11:12]line Смена: 556 ФФД: 1.0 [19:11:12]line ЗНМ: 0300000087 [19:11:12]line РНМ: 0000000000091644 [19:11:12]line Версия ККМ: 001 [19:11:12]line ФМ: 0000000000874662 [19:11:12]line ФД: 72899 [19:11:12]line ФПД: 107359034243664 [19:11:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191111&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72899&fm=107359034243664&tin=02508201610067®Number=0000000000091644&sum=20000 [19:11:12]written 0, free lines is 4095 [19:11:12]OFD Sender: Processing packet 72899 [packets to send 279, broken 278] [19:11:12]ProducePacketName [19:11:12]name=ofd_packets/00072899 [19:11:12]OFD Sender: To server: pG, [19:11:12]CommunicateWithHost lk.salyk.kg:30040 [19:11:12]ConnectInit lk.salyk.kg [19:11:12]Write to MH i2c: 01 00 00 A7 00 A7 [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: 01 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: 01 07 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 D7 0C 91 [19:11:12]RasterBufferAndPrint [19:11:12]line [19:11:12]line [19:11:12]line [19:11:12]line [19:11:12]line [19:11:12]written 0, free lines is 3294 [19:11:12]MH_Cut [19:11:12]Write to MH i2c: D1 01 00 AE 00 01 80 [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: D1 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: D1 01 00 [19:11:12]MH_I2C_Read... [19:11:12]Read from MH i2c: D1 01 00 AE 00 00 7F [19:11:12]Write to MH i2c: 01 00 00 AF 00 AF [19:11:12]Write i2c OK [19:11:12]MH_I2C_Read... [19:11:13]Connected sock=11 [19:11:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 61 98 07 01 D3 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 CF 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1C 01 00 35 04 06 00 61 A4 79 19 7A 50 A7 6A BF F2 7B C3 1E AB [19:11:13]*** Cut start [19:11:13]*** Partial cut [19:11:13]*** CUTSNS_PIN = 1 [19:11:13]*** CUTSNS_PIN = 0 [19:11:14]*** Brake cut motor [19:11:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2F 20 47 00 77 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1C 01 00 F4 03 04 00 87 2F 22 67 B6 04 01 00 00 96 C9 9E 96 88 81 1B 5A [19:11:14]CommunicateWithHost err = 0 [19:11:14]CheckOFDResponse [19:11:14]1017 (14) - 77093643461234 [19:11:14]1041 (16) - 0000000000874662 [19:11:14]1040 (4) - 72899 [19:11:14]1012 (4) - 30.10.2024 13:07 [19:11:14]1206 (1) - 0 [19:11:14]OFD Sender: Remove packet 72899 [19:11:14]ProducePacketName [19:11:14]name=ofd_packets/00072899 [19:11:14]NVStorageDeleteData [19:11:14]Read from MH i2c: 01 [19:11:14]MH_I2C_Read... [19:11:14]*** Stop cut motor [19:11:14]*** Cut end [19:11:14]Read from MH i2c: 01 07 00 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [19:11:14]process_action close_receipt done [19:11:14]requested_data is exist [19:11:14]produce_requested_data [19:11:14]requested_item fm.sn is exist - process it [19:11:14]wFMCommunicate request_size=4 [19:11:14]MH_SAM_APDU [19:11:14]CAPDU: 80 11 00 00 [19:11:14]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [19:11:14]Write i2c OK [19:11:14]MH_I2C_Read... [19:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:14]Read from MH i2c: E2 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: E2 17 00 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7E [19:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:11:14]wFMCommunicate OK [19:11:14]requested_item fd.num is exist - process it [19:11:14]SAM_PROTO_GetFieldsCounters [19:11:14]wFMCommunicate request_size=4 [19:11:14]MH_SAM_APDU [19:11:14]CAPDU: 80 13 00 00 [19:11:14]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [19:11:14]Write i2c OK [19:11:14]MH_I2C_Read... [19:11:14]OFD Sender: No OFD packet to send [19:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:14]Read from MH i2c: E2 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: E2 62 00 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C3 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [19:11:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C3 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:14]wFMCommunicate OK [19:11:14]SAM_PROTO_GetFieldsCounters done [19:11:14]requested_item shift.num is exist - process it [19:11:14]requested_item shift.opened is exist - process it [19:11:14]req_shift_opened [19:11:14]FM_GetShiftState [19:11:14]SAM_PROTO_GetShiftState [19:11:14]wFMCommunicate request_size=4 [19:11:14]MH_SAM_APDU [19:11:14]CAPDU: 80 13 01 00 [19:11:14]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [19:11:14]Write i2c OK [19:11:14]MH_I2C_Read... [19:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:14]Read from MH i2c: E2 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: E2 0E 00 [19:11:14]MH_I2C_Read... [19:11:14]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 01 [19:11:14]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:11:14]wFMCommunicate OK [19:11:14]SAM_PROTO_GetShiftState done [19:11:14]FM_GetShiftState done [19:11:14]req_shift_opened done [19:11:14]requested_item shift.open_date is exist - process it [19:11:14]req_shift_open_date [19:11:14]req_shift_open_date done [19:11:14]produce_requested_data done [19:11:14]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72899,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:11:14]process_action_free close_receipt [19:11:14]json_value_free [19:11:14]json_value_free done [19:11:14]process_json_proto returns [19:11:14]Send response to host [19:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72899,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:11:14]free response buf [19:11:14]execute_script done [19:11:14]execute_script returns [19:11:14]free content buf [19:11:14]Sock 10.Close socket [19:11:14]Sock 10.Thread stoped [19:11:19]OFD Sender: No OFD packet to send [19:11:23]recv_with_timeout no data received [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:36]recv_with_timeout no data received [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]recv_with_timeout no data received [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:29]recv_with_timeout no data received [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:17]accept exits with 9 [19:16:17]New connection [19:16:17]New thread 3067338084 created [19:16:17]Thread 3067194724 joined [19:16:17]Waiting for new connection... [19:16:17] Sock 9.Parse request [19:16:17]Sock 9.Check first char [19:16:17]Sock 9.First char is OK [19:16:17]request: POST /json_proto HTTP/1.0 [19:16:17]Method: POST [19:16:17]URL: /json_proto [19:16:17]Method is POST - this is cgi request [19:16:17]url: /json_proto [19:16:17]query_string will be loaded in cgi processing [19:16:17]execute_cgi json_proto POST (null) [19:16:17]execute_cgi path=json_proto method=POST [19:16:17]POST find Content-Length [19:16:17]Host: 172.17.43.195:8080 [19:16:17]Content-Length: 797 [19:16:17]Content-Type: application/json [19:16:17] [19:16:17]POST finish read [19:16:17]Found Content-Length = 797 [19:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952493", "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" : 0.00, "quantity" : 22.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:17]execute_script... [19:16: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)952493", "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" : 0.00, "quantity" : 22.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:17]POST & json_proto [19:16:17]process_json_proto [19:16:17]json parsed OK: [19:16:17]protocol is kg_v1.0 [19:16:17]action value=close_receipt [19:16:17]process_action close_receipt [19:16:17]cmd_close_receipt [19:16:17]MH_GetDate [19:16:17]Write to MH i2c: F0 00 00 B3 00 A2 [19:16:17]Write i2c OK [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: F0 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: F0 09 00 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: F0 09 00 B3 00 00 02 86 22 67 74 2C AD 66 6F [19:16:17]GetLastDocTimeStamp 1730315471 [19:16:17]current date 1730315778 [19:16:17]FM_GetShiftState [19:16:17]SAM_PROTO_GetShiftState [19:16:17]wFMCommunicate request_size=4 [19:16:17]MH_SAM_APDU [19:16:17]CAPDU: 80 13 01 00 [19:16:17]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [19:16:17]Write i2c OK [19:16:17]MH_I2C_Read... [19:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:17]Read from MH i2c: E2 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: E2 0E 00 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 03 [19:16:17]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:16:17]wFMCommunicate OK [19:16:17]SAM_PROTO_GetShiftState done [19:16:17]FM_GetShiftState done [19:16:17]opened in 1730247109 [19:16:17]opened+sec_in_day 1730333509 [19:16:17]quantity*price = 0 [19:16:17]sum+1 = 1 [19:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 137 30.10.2024 19:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72900 ФПД: 182472320528871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191618&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72900&fm=182472320528871&tin=02508201610067®Number=0000000000091644&sum=0 [19:16:18]StoreToDocumentArchive [19:16:18]shift 556 fd 72900 [19:16:18]save to /storage/0556/doc_00072900 [19:16:18]save last doc name /storage/0556/doc_00072900 to /storage/kkm_last_doc_name [19:16:18]save OK [19:16:18]Clear old archive folders... [19:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:16:18]tlvbuf is 0068B680 [19:16:18]SAM_PROTO_ClearQueue [19:16:18]wFMCommunicate request_size=4 [19:16:18]MH_SAM_APDU [19:16:18]CAPDU: 80 09 00 00 [19:16:18]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [19:16:18]Write i2c OK [19:16:18]MH_I2C_Read... [19:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:18]Read from MH i2c: E2 [19:16:18]MH_I2C_Read... [19:16:18]Read from MH i2c: E2 03 00 [19:16:18]MH_I2C_Read... [19:16:18]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [19:16:18]RAPDU: 90 00 [19:16:18]wFMCommunicate OK [19:16:18]SAM_PROTO_ClearQueue done [19:16:18]KKMCreateOFDPacket [19:16:18]OFDProtocolAddRootSTLVToBuf [19:16:18]FM_MakeSignedData [19:16:18]FM_MakeSignedData [19:16:18]SAM_PROTO_SignData [19:16:18]wFMCommunicate request_size=4 [19:16:18]MH_SAM_APDU [19:16:18]CAPDU: 80 0D 01 02 [19:16:18]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [19:16:18]Write i2c OK [19:16:18]MH_I2C_Read... [19:16:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:19]Read from MH i2c: E2 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 03 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [19:16:19]RAPDU: 90 00 [19:16:19]wFMCommunicate OK [19:16:19]wFMCommunicate request_size=255 [19:16:19]MH_SAM_APDU [19:16:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 F0 55 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 89 00 00 00 F4 03 04 00 02 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1C 01 00 35 04 06 00 [19:16:19]Write to MH i2c: E2 02 01 C3 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 F0 55 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 89 00 00 00 F4 03 04 00 02 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1C 01 00 35 04 06 00 00 00 6E [19:16:19]Write i2c OK [19:16:19]MH_I2C_Read... [19:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:19]Read from MH i2c: E2 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 03 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [19:16:19]RAPDU: 90 00 [19:16:19]wFMCommunicate OK [19:16:19]wFMCommunicate request_size=11 [19:16:19]MH_SAM_APDU [19:16:19]CAPDU: 80 0D 02 02 06 A5 F5 25 D8 B1 E7 [19:16:19]Write to MH i2c: E2 0E 00 C4 00 80 0D 02 02 06 00 A5 F5 25 D8 B1 E7 00 00 79 [19:16:19]Write i2c OK [19:16:19]MH_I2C_Read... [19:16:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:19]Read from MH i2c: E2 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 03 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [19:16:19]RAPDU: 90 00 [19:16:19]wFMCommunicate OK [19:16:19]wFMCommunicate request_size=4 [19:16:19]MH_SAM_APDU [19:16:19]CAPDU: 80 0D 03 02 [19:16:19]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [19:16:19]Write i2c OK [19:16:19]MH_I2C_Read... [19:16:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:19]Read from MH i2c: E2 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 0B 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 0B 00 C5 00 00 F4 59 C1 EA C6 D3 C6 0D 90 00 A5 [19:16:19]RAPDU: F4 59 C1 EA C6 D3 C6 0D 90 00 [19:16:19]wFMCommunicate OK [19:16:19]SAM_PROTO_SignData done [19:16:19]FM_MakeSignedData done [19:16:19]CreateOFDProtocolMessage [19:16:19]wFMCommunicate request_size=4 [19:16:19]MH_SAM_APDU [19:16:19]CAPDU: 80 11 00 00 [19:16:19]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [19:16:19]Write i2c OK [19:16:19]MH_I2C_Read... [19:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:19]Read from MH i2c: E2 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 17 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 94 [19:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:16:19]wFMCommunicate OK [19:16:19]CreateOFDProtocolMessage done [19:16:19]OFDSenderStorePacket 72900 [19:16:19]StoreOFDPacket docnum=72900 [19:16:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F0 38 08 01 CA C1 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 F0 55 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 89 00 00 00 F4 03 04 00 02 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1C 01 00 35 04 06 00 A5 F5 25 D8 B1 E7 F4 59 C1 EA C6 D3 C6 0D [19:16:19]CheckFolder [19:16:19]dirname=/storage/ofd_packets [19:16:19]CheckFolder done [19:16:19]ProducePacketName [19:16:19]name=ofd_packets/00072900 [19:16:19]NVStorageSaveData ofd_packets/00072900 [19:16:19]File name is /storage/ofd_packets/00072900 [19:16:19]Write 302 bytes [19:16:19]NVStorageSaveData done [19:16:19]OFDSenderStorePacket done [19:16:19]KKMCreateOFDPacket done [19:16:19]NVStorageSaveData kkm_last_timestamp [19:16:19]File name is /storage/kkm_last_timestamp [19:16:19]Write 4 bytes [19:16:19]NVStorageSaveData done [19:16:19]ExternCall_PrintAddStr [19:16:19]wPrintStart [19:16:19]Write to MH i2c: 01 00 00 C7 00 C7 [19:16:19]Write i2c OK [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: 01 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: 01 07 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [19:16:19]RasterBufferAndPrint [19:16:19]line Счет N : (1)952493 [19:16:19]line ИНН: 02508201610067 [19:16:19]line Контрольно-Кассовый Чек [19:16:19]line ПРОДАЖА [19:16:19]line ТРК (МРК, ГНК) : 43 [19:16:19]line Товар: 2710194210 [19:16:19]line ДТ(л)-К-5 [19:16:19]line 22.000 * 0.00 [19:16:19]line = 0.00 [19:16:19]line НДС 12% НСП 1% [19:16:19]line > о реализуемом товаре [19:16:19]line ИТОГО: 0.00 [19:16:19]line НСП 1% : 0.00 [19:16:19]line НДС 12% : 0.00 [19:16:19]line Наличными: 0.00 [19:16:19]line Безнал.: 0.00 [19:16:19]line Место: АЗС № 113 "Партнер Нефть" [19:16:19]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:16:19]line СНО: Общий режим [19:16:19]line Чек 137 30.10.2024 19:16 [19:16:19]line Смена: 556 ФФД: 1.0 [19:16:19]line ЗНМ: 0300000087 [19:16:19]line РНМ: 0000000000091644 [19:16:19]line Версия ККМ: 001 [19:16:19]line Талоны: Топливная Карта [19:16:19]line 02083 [19:16:19]line ФМ: 0000000000874662 [19:16:19]line ФД: 72900 [19:16:19]line ФПД: 182472320528871 [19:16:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191618&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72900&fm=182472320528871&tin=02508201610067®Number=0000000000091644&sum=0 [19:16:19]written 0, free lines is 4095 [19:16:19]OFD Sender: Processing packet 72900 [packets to send 279, broken 278] [19:16:19]ProducePacketName [19:16:19]name=ofd_packets/00072900 [19:16:19]OFD Sender: To server: pG, [19:16:19]CommunicateWithHost lk.salyk.kg:30040 [19:16:19]ConnectInit lk.salyk.kg [19:16:19]Write to MH i2c: 01 00 00 F1 00 F1 [19:16:19]Write i2c OK [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: 01 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: 01 07 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 E4 0C E8 [19:16:19]RasterBufferAndPrint [19:16:19]line [19:16:19]line [19:16:19]line [19:16:19]line [19:16:19]line [19:16:19]written 0, free lines is 3306 [19:16:19]MH_Cut [19:16:19]Write to MH i2c: D1 01 00 F8 00 01 CA [19:16:19]Write i2c OK [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: D1 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: D1 01 00 [19:16:19]MH_I2C_Read... [19:16:19]Read from MH i2c: D1 01 00 F8 00 00 C9 [19:16:19]Write to MH i2c: 01 00 00 F9 00 F9 [19:16:19]Write i2c OK [19:16:19]MH_I2C_Read... [19:16:20]Connected sock=11 [19:16:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F0 38 08 01 CA C1 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 F0 55 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 89 00 00 00 F4 03 04 00 02 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1C 01 00 35 04 06 00 A5 F5 25 D8 B1 E7 F4 59 C1 EA C6 D3 C6 0D [19:16:20]*** Cut start [19:16:20]*** Partial cut [19:16:20]*** CUTSNS_PIN = 1 [19:16:20]*** CUTSNS_PIN = 0 [19:16:20]*** Brake cut motor [19:16:21]Read from MH i2c: 01 [19:16:21]MH_I2C_Read... [19:16:21]*** Stop cut motor [19:16:21]*** Cut end [19:16:21]Read from MH i2c: 01 07 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [19:16:21]process_action close_receipt done [19:16:21]requested_data is exist [19:16:21]produce_requested_data [19:16:21]requested_item fm.sn is exist - process it [19:16:21]wFMCommunicate request_size=4 [19:16:21]MH_SAM_APDU [19:16:21]CAPDU: 80 11 00 00 [19:16:21]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:21]Read from MH i2c: E2 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 17 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C8 [19:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:16:21]wFMCommunicate OK [19:16:21]requested_item fd.num is exist - process it [19:16:21]SAM_PROTO_GetFieldsCounters [19:16:21]wFMCommunicate request_size=4 [19:16:21]MH_SAM_APDU [19:16:21]CAPDU: 80 13 00 00 [19:16:21]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:21]Read from MH i2c: E2 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 62 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C4 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [19:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C4 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:21]wFMCommunicate OK [19:16:21]SAM_PROTO_GetFieldsCounters done [19:16:21]requested_item shift.num is exist - process it [19:16:21]requested_item shift.opened is exist - process it [19:16:21]req_shift_opened [19:16:21]FM_GetShiftState [19:16:21]SAM_PROTO_GetShiftState [19:16:21]wFMCommunicate request_size=4 [19:16:21]MH_SAM_APDU [19:16:21]CAPDU: 80 13 01 00 [19:16:21]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [19:16:21]Write i2c OK [19:16:21]MH_I2C_Read... [19:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:21]Read from MH i2c: E2 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 0E 00 [19:16:21]MH_I2C_Read... [19:16:21]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4B [19:16:21]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:16:21]wFMCommunicate OK [19:16:21]SAM_PROTO_GetShiftState done [19:16:21]FM_GetShiftState done [19:16:21]req_shift_opened done [19:16:21]requested_item shift.open_date is exist - process it [19:16:21]req_shift_open_date [19:16:21]req_shift_open_date done [19:16:21]produce_requested_data done [19:16:21]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72900,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:16:21]process_action_free close_receipt [19:16:21]json_value_free [19:16:21]json_value_free done [19:16:21]process_json_proto returns [19:16:21]Send response to host [19:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72900,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:16:21]free response buf [19:16:21]execute_script done [19:16:21]execute_script returns [19:16:21]free content buf [19:16:21]Sock 9.Close socket [19:16:21]Sock 9.Thread stoped [19:16:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 89 10 47 00 D3 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1C 01 00 F4 03 04 00 BA 30 22 67 B6 04 01 00 00 D6 98 72 B1 13 F0 60 F6 [19:16:22]CommunicateWithHost err = 0 [19:16:22]CheckOFDResponse [19:16:22]1017 (14) - 77093643461234 [19:16:22]1041 (16) - 0000000000874662 [19:16:22]1040 (4) - 72900 [19:16:22]1012 (4) - 30.10.2024 13:12 [19:16:22]1206 (1) - 0 [19:16:22]OFD Sender: Remove packet 72900 [19:16:22]ProducePacketName [19:16:22]name=ofd_packets/00072900 [19:16:22]NVStorageDeleteData [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:39]recv_with_timeout no data received [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:20]accept exits with 10 [19:17:20]New connection [19:17:20]New thread 3067194724 created [19:17:20]Thread 3067338084 joined [19:17:20]Waiting for new connection... [19:17:20] Sock 10.Parse request [19:17:20]Sock 10.Check first char [19:17:20]Sock 10.First char is OK [19:17:20]request: POST /json_proto HTTP/1.0 [19:17:20]Method: POST [19:17:20]URL: /json_proto [19:17:20]Method is POST - this is cgi request [19:17:20]url: /json_proto [19:17:20]query_string will be loaded in cgi processing [19:17:20]execute_cgi json_proto POST (null) [19:17:20]execute_cgi path=json_proto method=POST [19:17:20]POST find Content-Length [19:17:20]Host: 172.17.43.195:8080 [19:17:20]Content-Length: 658 [19:17:20]Content-Type: application/json [19:17:20] [19:17:20]POST finish read [19:17:20]Found Content-Length = 658 [19:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:20]execute_script... [19:17:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:20]POST & json_proto [19:17:20]process_json_proto [19:17:20]json parsed OK: [19:17:20]protocol is kg_v1.0 [19:17:20]action value=close_receipt [19:17:20]process_action close_receipt [19:17:20]cmd_close_receipt [19:17:20]MH_GetDate [19:17:20]Write to MH i2c: F0 00 00 FD 00 EC [19:17:20]Write i2c OK [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: F0 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: F0 09 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: F0 09 00 FD 00 00 40 86 22 67 74 2C AD 66 F7 [19:17:20]GetLastDocTimeStamp 1730315778 [19:17:20]current date 1730315840 [19:17:20]FM_GetShiftState [19:17:20]SAM_PROTO_GetShiftState [19:17:20]wFMCommunicate request_size=4 [19:17:20]MH_SAM_APDU [19:17:20]CAPDU: 80 13 01 00 [19:17:20]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [19:17:20]Write i2c OK [19:17:20]MH_I2C_Read... [19:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:20]Read from MH i2c: E2 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 0E 00 [19:17:20]MH_I2C_Read... [19:17:20]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 4D [19:17:20]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:17:20]wFMCommunicate OK [19:17:20]SAM_PROTO_GetShiftState done [19:17:20]FM_GetShiftState done [19:17:20]opened in 1730247109 [19:17:20]opened+sec_in_day 1730333509 [19:17:20]quantity*price = 20041 [19:17:20]sum+1 = 20042 [19:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 138 30.10.2024 19:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72901 ФПД: 15145525602864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191720&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72901&fm=15145525602864&tin=02508201610067®Number=0000000000091644&sum=20000 [19:17:21]StoreToDocumentArchive [19:17:21]shift 556 fd 72901 [19:17:21]save to /storage/0556/doc_00072901 [19:17:21]save last doc name /storage/0556/doc_00072901 to /storage/kkm_last_doc_name [19:17:21]save OK [19:17:21]Clear old archive folders... [19:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:17:21]tlvbuf is 00689070 [19:17:21]SAM_PROTO_ClearQueue [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 09 00 00 [19:17:21]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]SAM_PROTO_ClearQueue done [19:17:21]KKMCreateOFDPacket [19:17:21]OFDProtocolAddRootSTLVToBuf [19:17:21]FM_MakeSignedData [19:17:21]FM_MakeSignedData [19:17:21]SAM_PROTO_SignData [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 0D 01 02 [19:17:21]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]wFMCommunicate request_size=253 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 40 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1C 01 00 35 04 06 00 0D C6 57 AC 6A 30 [19:17:21]Write to MH i2c: E2 00 01 0D 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 40 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1C 01 00 35 04 06 00 0D C6 57 AC 6A 30 00 00 1D [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [19:17:21]RAPDU: 90 00 [19:17:21]wFMCommunicate OK [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 0D 03 02 [19:17:21]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 0B 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 0B 00 0E 01 00 4B FE B3 B5 0A 43 37 F2 90 00 B2 [19:17:21]RAPDU: 4B FE B3 B5 0A 43 37 F2 90 00 [19:17:21]wFMCommunicate OK [19:17:21]SAM_PROTO_SignData done [19:17:21]FM_MakeSignedData done [19:17:21]CreateOFDProtocolMessage [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 11 00 00 [19:17:21]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 17 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [19:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:17:21]wFMCommunicate OK [19:17:21]CreateOFDProtocolMessage done [19:17:21]OFDSenderStorePacket 72901 [19:17:21]StoreOFDPacket docnum=72901 [19:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 2C 55 00 01 07 73 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 40 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1C 01 00 35 04 06 00 0D C6 57 AC 6A 30 4B FE B3 B5 0A 43 37 F2 [19:17:21]CheckFolder [19:17:21]dirname=/storage/ofd_packets [19:17:21]CheckFolder done [19:17:21]ProducePacketName [19:17:21]name=ofd_packets/00072901 [19:17:21]NVStorageSaveData ofd_packets/00072901 [19:17:21]File name is /storage/ofd_packets/00072901 [19:17:21]Write 294 bytes [19:17:21]NVStorageSaveData done [19:17:21]OFDSenderStorePacket done [19:17:21]KKMCreateOFDPacket done [19:17:21]NVStorageSaveData kkm_last_timestamp [19:17:21]File name is /storage/kkm_last_timestamp [19:17:21]Write 4 bytes [19:17:21]NVStorageSaveData done [19:17:21]ExternCall_PrintAddStr [19:17:21]wPrintStart [19:17:21]Write to MH i2c: 01 00 00 10 01 11 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 07 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [19:17:21]RasterBufferAndPrint [19:17:21]line Счет N : (1)952494 [19:17:21]line ИНН: 02508201610067 [19:17:21]line Контрольно-Кассовый Чек [19:17:21]line ПРОДАЖА [19:17:21]line ТРК (МРК, ГНК) : 61 [19:17:21]line Товар: 50.50.0 [19:17:21]line Super 92 [19:17:21]line 2.930 * 68.40 [19:17:21]line = 200.41 [19:17:21]line НДС 12% НСП 1% [19:17:21]line > о реализуемом товаре [19:17:21]line ОКРУГЛЕНИЕ: -0.41 [19:17:21]line ИТОГО: 200.00 [19:17:21]line Внесено: 200.00 [19:17:21]line СДАЧА: 0.00 [19:17:21]line НСП 1% : 1.77 [19:17:21]line НДС 12% : 21.28 [19:17:21]line Наличными: 200.00 [19:17:21]line Безнал.: 0.00 [19:17:21]line Место: АЗС № 113 "Партнер Нефть" [19:17:21]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:17:21]line СНО: Общий режим [19:17:21]line Чек 138 30.10.2024 19:17 [19:17:21]line Смена: 556 ФФД: 1.0 [19:17:21]line ЗНМ: 0300000087 [19:17:21]line РНМ: 0000000000091644 [19:17:21]line Версия ККМ: 001 [19:17:21]line ФМ: 0000000000874662 [19:17:21]line ФД: 72901 [19:17:21]line ФПД: 15145525602864 [19:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191720&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72901&fm=15145525602864&tin=02508201610067®Number=0000000000091644&sum=20000 [19:17:21]written 0, free lines is 4095 [19:17:21]OFD Sender: Processing packet 72901 [packets to send 279, broken 278] [19:17:21]ProducePacketName [19:17:21]name=ofd_packets/00072901 [19:17:21]OFD Sender: To server: pG, [19:17:21]CommunicateWithHost lk.salyk.kg:30040 [19:17:21]ConnectInit lk.salyk.kg [19:17:22]Write to MH i2c: 01 00 00 3B 01 3C [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: 01 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: 01 07 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 DA 0C 29 [19:17:22]RasterBufferAndPrint [19:17:22]line [19:17:22]line [19:17:22]line [19:17:22]line [19:17:22]line [19:17:22]written 0, free lines is 3297 [19:17:22]MH_Cut [19:17:22]Write to MH i2c: D1 01 00 42 01 01 15 [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: D1 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: D1 01 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: D1 01 00 42 01 00 14 [19:17:22]Write to MH i2c: 01 00 00 43 01 44 [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:23]*** Cut start [19:17:23]*** Partial cut [19:17:23]*** CUTSNS_PIN = 1 [19:17:23]*** CUTSNS_PIN = 0 [19:17:23]Connected sock=11 [19:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 2C 55 00 01 07 73 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 40 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1C 01 00 35 04 06 00 0D C6 57 AC 6A 30 4B FE B3 B5 0A 43 37 F2 [19:17:23]*** Brake cut motor [19:17:23]Read from MH i2c: 01 [19:17:23]MH_I2C_Read... [19:17:23]*** Stop cut motor [19:17:23]Read from MH i2c: *** Cut end [19:17:23]01 07 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [19:17:23]process_action close_receipt done [19:17:23]requested_data is exist [19:17:23]produce_requested_data [19:17:23]requested_item fm.sn is exist - process it [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 11 00 00 [19:17:23]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 17 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 13 [19:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:17:23]wFMCommunicate OK [19:17:23]requested_item fd.num is exist - process it [19:17:23]SAM_PROTO_GetFieldsCounters [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 13 00 00 [19:17:23]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 62 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C5 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [19:17:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C5 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:23]wFMCommunicate OK [19:17:23]SAM_PROTO_GetFieldsCounters done [19:17:23]requested_item shift.num is exist - process it [19:17:23]requested_item shift.opened is exist - process it [19:17:23]req_shift_opened [19:17:23]FM_GetShiftState [19:17:23]SAM_PROTO_GetShiftState [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 13 01 00 [19:17:23]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 [19:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 0E 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 96 [19:17:23]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:17:23]wFMCommunicate OK [19:17:23]SAM_PROTO_GetShiftState done [19:17:23]FM_GetShiftState done [19:17:23]req_shift_opened done [19:17:23]requested_item shift.open_date is exist - process it [19:17:23]req_shift_open_date [19:17:23]req_shift_open_date done [19:17:23]produce_requested_data done [19:17:23]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72901,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:17:23]process_action_free close_receipt [19:17:23]json_value_free [19:17:23]json_value_free done [19:17:23]process_json_proto returns [19:17:23]Send response to host [19:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72901,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:17:23]free response buf [19:17:23]execute_script done [19:17:23]execute_script returns [19:17:23]free content buf [19:17:23]Sock 10.Close socket [19:17:23]Sock 10.Thread stoped [19:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2F CD 47 00 C7 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1C 01 00 F4 03 04 00 F9 30 22 67 B6 04 01 00 00 11 11 1E 9F 08 8A 22 F0 [19:17:23]CommunicateWithHost err = 0 [19:17:23]CheckOFDResponse [19:17:23]1017 (14) - 77093643461234 [19:17:23]1041 (16) - 0000000000874662 [19:17:23]1040 (4) - 72901 [19:17:23]1012 (4) - 30.10.2024 13:13 [19:17:23]1206 (1) - 0 [19:17:23]OFD Sender: Remove packet 72901 [19:17:23]ProducePacketName [19:17:23]name=ofd_packets/00072901 [19:17:23]NVStorageDeleteData [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:42]recv_with_timeout no data received [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:55]recv_with_timeout no data received [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:27]accept exits with 9 [19:18:27]New connection [19:18:27]New thread 3067338084 created [19:18:27]Thread 3067194724 joined [19:18:27]Waiting for new connection... [19:18:27] Sock 9.Parse request [19:18:27]Sock 9.Check first char [19:18:27]Sock 9.First char is OK [19:18:27]request: POST /json_proto HTTP/1.0 [19:18:27]Method: POST [19:18:27]URL: /json_proto [19:18:27]Method is POST - this is cgi request [19:18:27]url: /json_proto [19:18:27]query_string will be loaded in cgi processing [19:18:27]execute_cgi json_proto POST (null) [19:18:27]execute_cgi path=json_proto method=POST [19:18:27]POST find Content-Length [19:18:27]Host: 172.17.43.195:8080 [19:18:27]Content-Length: 792 [19:18:27]Content-Type: application/json [19:18:27] [19:18:27]POST finish read [19:18:27]Found Content-Length = 792 [19:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:27]execute_script... [19:18:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:27]POST & json_proto [19:18:27]process_json_proto [19:18:27]json parsed OK: [19:18:27]protocol is kg_v1.0 [19:18:27]action value=close_receipt [19:18:27]process_action close_receipt [19:18:27]cmd_close_receipt [19:18:27]MH_GetDate [19:18:27]Write to MH i2c: F0 00 00 47 01 37 [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: F0 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: F0 09 00 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: F0 09 00 47 01 00 83 86 22 67 74 2C AD 66 85 [19:18:27]GetLastDocTimeStamp 1730315840 [19:18:27]current date 1730315907 [19:18:27]FM_GetShiftState [19:18:27]SAM_PROTO_GetShiftState [19:18:27]wFMCommunicate request_size=4 [19:18:27]MH_SAM_APDU [19:18:27]CAPDU: 80 13 01 00 [19:18:27]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:27]Read from MH i2c: E2 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: E2 0E 00 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 98 [19:18:27]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:18:27]wFMCommunicate OK [19:18:27]SAM_PROTO_GetShiftState done [19:18:27]FM_GetShiftState done [19:18:27]opened in 1730247109 [19:18:27]opened+sec_in_day 1730333509 [19:18:27]quantity*price = 0 [19:18:27]sum+1 = 1 [19:18:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 139 30.10.2024 19:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72902 ФПД: 93105115786807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191827&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72902&fm=93105115786807&tin=02508201610067®Number=0000000000091644&sum=0 [19:18:28]StoreToDocumentArchive [19:18:28]shift 556 fd 72902 [19:18:28]save to /storage/0556/doc_00072902 [19:18:28]save last doc name /storage/0556/doc_00072902 to /storage/kkm_last_doc_name [19:18:28]save OK [19:18:28]Clear old archive folders... [19:18:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:28]tlvbuf is 0071D060 [19:18:28]SAM_PROTO_ClearQueue [19:18:28]wFMCommunicate request_size=4 [19:18:28]MH_SAM_APDU [19:18:28]CAPDU: 80 09 00 00 [19:18:28]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [19:18:28]Write i2c OK [19:18:28]MH_I2C_Read... [19:18:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:28]Read from MH i2c: E2 [19:18:28]MH_I2C_Read... [19:18:28]Read from MH i2c: E2 03 00 [19:18:28]MH_I2C_Read... [19:18:28]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [19:18:28]RAPDU: 90 00 [19:18:28]wFMCommunicate OK [19:18:28]SAM_PROTO_ClearQueue done [19:18:28]KKMCreateOFDPacket [19:18:28]OFDProtocolAddRootSTLVToBuf [19:18:28]FM_MakeSignedData [19:18:28]FM_MakeSignedData [19:18:28]SAM_PROTO_SignData [19:18:28]wFMCommunicate request_size=4 [19:18:28]MH_SAM_APDU [19:18:28]CAPDU: 80 0D 01 02 [19:18:28]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [19:18:28]Write i2c OK [19:18:28]MH_I2C_Read... [19:18:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:28]Read from MH i2c: E2 [19:18:28]MH_I2C_Read... [19:18:28]Read from MH i2c: E2 03 00 [19:18:28]MH_I2C_Read... [19:18:28]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [19:18:28]RAPDU: 90 00 [19:18:28]wFMCommunicate OK [19:18:28]wFMCommunicate request_size=255 [19:18:28]MH_SAM_APDU [19:18:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 83 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1C 01 00 35 04 06 00 54 [19:18:28]Write to MH i2c: E2 02 01 57 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 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 8B 00 00 00 F4 03 04 00 83 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1C 01 00 35 04 06 00 54 00 00 93 [19:18:28]Write i2c OK [19:18:28]MH_I2C_Read... [19:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:28]Read from MH i2c: E2 [19:18:28]MH_I2C_Read... [19:18:28]Read from MH i2c: E2 03 00 [19:18:28]MH_I2C_Read... [19:18:28]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [19:18:28]RAPDU: 90 00 [19:18:28]wFMCommunicate OK [19:18:28]wFMCommunicate request_size=10 [19:18:28]MH_SAM_APDU [19:18:28]CAPDU: 80 0D 02 02 05 AD B9 5A 6E 37 [19:18:28]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 AD B9 5A 6E 37 00 00 42 [19:18:28]Write i2c OK [19:18:28]MH_I2C_Read... [19:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:28]Read from MH i2c: E2 [19:18:28]MH_I2C_Read... [19:18:28]Read from MH i2c: E2 03 00 [19:18:28]MH_I2C_Read... [19:18:28]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [19:18:28]RAPDU: 90 00 [19:18:28]wFMCommunicate OK [19:18:28]wFMCommunicate request_size=4 [19:18:28]MH_SAM_APDU [19:18:28]CAPDU: 80 0D 03 02 [19:18:28]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [19:18:28]Write i2c OK [19:18:28]MH_I2C_Read... [19:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:28]Read from MH i2c: E2 [19:18:28]MH_I2C_Read... [19:18:28]Read from MH i2c: E2 0B 00 [19:18:28]MH_I2C_Read... [19:18:28]Read from MH i2c: E2 0B 00 59 01 00 E0 FE 05 4A F7 5F 67 D1 90 00 91 [19:18:28]RAPDU: E0 FE 05 4A F7 5F 67 D1 90 00 [19:18:28]wFMCommunicate OK [19:18:28]SAM_PROTO_SignData done [19:18:28]FM_MakeSignedData done [19:18:28]CreateOFDProtocolMessage [19:18:28]wFMCommunicate request_size=4 [19:18:28]MH_SAM_APDU [19:18:28]CAPDU: 80 11 00 00 [19:18:28]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [19:18:28]Write i2c OK [19:18:28]MH_I2C_Read... [19:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:29]Read from MH i2c: E2 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: E2 17 00 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 29 [19:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:18:29]wFMCommunicate OK [19:18:29]CreateOFDProtocolMessage done [19:18:29]OFDSenderStorePacket 72902 [19:18:29]StoreOFDPacket docnum=72902 [19:18:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CB 8F 07 01 4C D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8B 00 00 00 F4 03 04 00 83 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1C 01 00 35 04 06 00 54 AD B9 5A 6E 37 E0 FE 05 4A F7 5F 67 D1 [19:18:29]CheckFolder [19:18:29]dirname=/storage/ofd_packets [19:18:29]CheckFolder done [19:18:29]ProducePacketName [19:18:29]name=ofd_packets/00072902 [19:18:29]NVStorageSaveData ofd_packets/00072902 [19:18:29]File name is /storage/ofd_packets/00072902 [19:18:29]Write 301 bytes [19:18:29]NVStorageSaveData done [19:18:29]OFDSenderStorePacket done [19:18:29]KKMCreateOFDPacket done [19:18:29]NVStorageSaveData kkm_last_timestamp [19:18:29]File name is /storage/kkm_last_timestamp [19:18:29]Write 4 bytes [19:18:29]NVStorageSaveData done [19:18:29]ExternCall_PrintAddStr [19:18:29]wPrintStart [19:18:29]Write to MH i2c: 01 00 00 5B 01 5C [19:18:29]Write i2c OK [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: 01 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: 01 07 00 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [19:18:29]RasterBufferAndPrint [19:18:29]line Счет N : (1)952495 [19:18:29]line ИНН: 02508201610067 [19:18:29]line Контрольно-Кассовый Чек [19:18:29]line ПРОДАЖА [19:18:29]line ТРК (МРК, ГНК) : 53 [19:18:29]line Товар: 2710124130 [19:18:29]line Аи-92-К-5 [19:18:29]line 10.000 * 0.00 [19:18:29]line = 0.00 [19:18:29]line НДС 12% НСП 1% [19:18:29]line > о реализуемом товаре [19:18:29]line ИТОГО: 0.00 [19:18:29]line НСП 1% : 0.00 [19:18:29]line НДС 12% : 0.00 [19:18:29]line Наличными: 0.00 [19:18:29]line Безнал.: 0.00 [19:18:29]line Место: АЗС № 113 "Партнер Нефть" [19:18:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:18:29]line СНО: Общий режим [19:18:29]line Чек 139 30.10.2024 19:18 [19:18:29]line Смена: 556 ФФД: 1.0 [19:18:29]line ЗНМ: 0300000087 [19:18:29]line РНМ: 0000000000091644 [19:18:29]line Версия ККМ: 001 [19:18:29]line Талоны: Топливная Карта [19:18:29]line 03047 [19:18:29]line ФМ: 0000000000874662 [19:18:29]line ФД: 72902 [19:18:29]line ФПД: 93105115786807 [19:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191827&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72902&fm=93105115786807&tin=02508201610067®Number=0000000000091644&sum=0 [19:18:29]written 0, free lines is 4095 [19:18:29]OFD Sender: Processing packet 72902 [packets to send 279, broken 278] [19:18:29]ProducePacketName [19:18:29]name=ofd_packets/00072902 [19:18:29]OFD Sender: To server: pG, [19:18:29]CommunicateWithHost lk.salyk.kg:30040 [19:18:29]ConnectInit lk.salyk.kg [19:18:29]Write to MH i2c: 01 00 00 85 01 86 [19:18:29]Write i2c OK [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: 01 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: 01 07 00 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 E3 0C 7C [19:18:29]RasterBufferAndPrint [19:18:29]line [19:18:29]line [19:18:29]line [19:18:29]line [19:18:29]line [19:18:29]written 0, free lines is 3305 [19:18:29]MH_Cut [19:18:29]Write to MH i2c: D1 01 00 8C 01 01 5F [19:18:29]Write i2c OK [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: D1 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: D1 01 00 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: D1 01 00 8C 01 00 5E [19:18:29]Write to MH i2c: 01 00 00 8D 01 8E [19:18:29]Write i2c OK [19:18:29]MH_I2C_Read... [19:18:30]*** Cut start [19:18:30]*** Partial cut [19:18:30]*** CUTSNS_PIN = 1 [19:18:30]*** CUTSNS_PIN = 0 [19:18:30]*** Brake cut motor [19:18:30]Read from MH i2c: 01 [19:18:30]MH_I2C_Read... [19:18:30]*** Stop cut motor [19:18:30]*** Cut end [19:18:30]Read from MH i2c: 01 07 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [19:18:30]process_action close_receipt done [19:18:30]requested_data is exist [19:18:30]produce_requested_data [19:18:30]requested_item fm.sn is exist - process it [19:18:30]wFMCommunicate request_size=4 [19:18:30]MH_SAM_APDU [19:18:30]CAPDU: 80 11 00 00 [19:18:30]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:30]Read from MH i2c: E2 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 17 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5D [19:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:18:30]wFMCommunicate OK [19:18:30]requested_item fd.num is exist - process it [19:18:30]SAM_PROTO_GetFieldsCounters [19:18:30]wFMCommunicate request_size=4 [19:18:30]MH_SAM_APDU [19:18:30]CAPDU: 80 13 00 00 [19:18:30]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:31]Read from MH i2c: E2 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: E2 62 00 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C6 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [19:18:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C6 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:31]wFMCommunicate OK [19:18:31]SAM_PROTO_GetFieldsCounters done [19:18:31]requested_item shift.num is exist - process it [19:18:31]requested_item shift.opened is exist - process it [19:18:31]req_shift_opened [19:18:31]FM_GetShiftState [19:18:31]SAM_PROTO_GetShiftState [19:18:31]wFMCommunicate request_size=4 [19:18:31]MH_SAM_APDU [19:18:31]CAPDU: 80 13 01 00 [19:18:31]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [19:18:31]Write i2c OK [19:18:31]MH_I2C_Read... [19:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:31]Read from MH i2c: E2 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: E2 0E 00 [19:18:31]MH_I2C_Read... [19:18:31]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E0 [19:18:31]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:18:31]wFMCommunicate OK [19:18:31]SAM_PROTO_GetShiftState done [19:18:31]FM_GetShiftState done [19:18:31]req_shift_opened done [19:18:31]requested_item shift.open_date is exist - process it [19:18:31]req_shift_open_date [19:18:31]req_shift_open_date done [19:18:31]produce_requested_data done [19:18:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72902,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:18:31]process_action_free close_receipt [19:18:31]json_value_free [19:18:31]json_value_free done [19:18:31]process_json_proto returns [19:18:31]Send response to host [19:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72902,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:18:31]free response buf [19:18:31]execute_script done [19:18:31]execute_script returns [19:18:31]free content buf [19:18:31]Sock 9.Close socket [19:18:31]Sock 9.Thread stoped [19:18:32]Connected sock=7 [19:18:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CB 8F 07 01 4C D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8B 00 00 00 F4 03 04 00 83 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1C 01 00 35 04 06 00 54 AD B9 5A 6E 37 E0 FE 05 4A F7 5F 67 D1 [19:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F8 AB 47 00 73 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1C 01 00 F4 03 04 00 40 31 22 67 B6 04 01 00 00 D8 B2 68 80 43 75 1A D0 [19:18:34]CommunicateWithHost err = 0 [19:18:34]CheckOFDResponse [19:18:34]1017 (14) - 77093643461234 [19:18:34]1041 (16) - 0000000000874662 [19:18:34]1040 (4) - 72902 [19:18:34]1012 (4) - 30.10.2024 13:14 [19:18:34]1206 (1) - 0 [19:18:34]OFD Sender: Remove packet 72902 [19:18:34]ProducePacketName [19:18:34]name=ofd_packets/00072902 [19:18:34]NVStorageDeleteData [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:40]recv_with_timeout no data received [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:18:58]recv_with_timeout no data received [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:16]recv_with_timeout no data received [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]recv_with_timeout no data received [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:21:58]recv_with_timeout no data received [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:23]recv_with_timeout no data received [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:43]recv_with_timeout no data received [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:22:56]recv_with_timeout no data received [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]recv_with_timeout no data received [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:32]recv_with_timeout no data received [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:26]OFD Sender: No OFD packet to send [19:25:31]OFD Sender: No OFD packet to send [19:25:36]OFD Sender: No OFD packet to send [19:25:41]OFD Sender: No OFD packet to send [19:25:46]OFD Sender: No OFD packet to send [19:25:51]OFD Sender: No OFD packet to send [19:25:56]OFD Sender: No OFD packet to send [19:26:01]OFD Sender: No OFD packet to send [19:26:03]recv_with_timeout no data received [19:26:06]OFD Sender: No OFD packet to send [19:26:11]OFD Sender: No OFD packet to send [19:26:13]recv_with_timeout no data received [19:26:16]OFD Sender: No OFD packet to send [19:26:21]OFD Sender: No OFD packet to send [19:26:26]OFD Sender: No OFD packet to send [19:26:31]OFD Sender: No OFD packet to send [19:26:36]OFD Sender: No OFD packet to send [19:26:41]OFD Sender: No OFD packet to send [19:26:46]OFD Sender: No OFD packet to send [19:26:51]OFD Sender: No OFD packet to send [19:26:56]OFD Sender: No OFD packet to send [19:27:01]OFD Sender: No OFD packet to send [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:12]recv_with_timeout no data received [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:29]recv_with_timeout no data received [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:52]recv_with_timeout no data received [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:38]recv_with_timeout no data received [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:02]recv_with_timeout no data received [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:02]recv_with_timeout no data received [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:38]recv_with_timeout no data received [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:27]recv_with_timeout no data received [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:38]recv_with_timeout no data received [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]recv_with_timeout no data received [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:31]recv_with_timeout no data received [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]recv_with_timeout no data received [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:16]recv_with_timeout no data received [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:26]recv_with_timeout no data received [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:32]accept exits with 10 [19:36:32]New connection [19:36:32]New thread 3067194724 created [19:36:32]Thread 3067338084 joined [19:36:32]Waiting for new connection... [19:36:32] Sock 10.Parse request [19:36:32]Sock 10.Check first char [19:36:32]Sock 10.First char is OK [19:36:32]request: POST /json_proto HTTP/1.0 [19:36:32]Method: POST [19:36:32]URL: /json_proto [19:36:32]Method is POST - this is cgi request [19:36:32]url: /json_proto [19:36:32]query_string will be loaded in cgi processing [19:36:32]execute_cgi json_proto POST (null) [19:36:32]execute_cgi path=json_proto method=POST [19:36:32]POST find Content-Length [19:36:32]Host: 172.17.43.195:8080 [19:36:32]Content-Length: 848 [19:36:32]Content-Type: application/json [19:36:32] [19:36:32]POST finish read [19:36:32]Found Content-Length = 848 [19:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952499", "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" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2600.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:32]execute_script... [19:36: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)952499", "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" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2600.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:32]POST & json_proto [19:36:32]process_json_proto [19:36:32]json parsed OK: [19:36:32]protocol is kg_v1.0 [19:36:32]action value=close_receipt [19:36:32]process_action close_receipt [19:36:32]cmd_close_receipt [19:36:32]MH_GetDate [19:36:32]Write to MH i2c: F0 00 00 91 01 81 [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: F0 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: F0 09 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: F0 09 00 91 01 00 C1 8A 22 67 74 2C AD 66 11 [19:36:32]GetLastDocTimeStamp 1730315907 [19:36:32]current date 1730316993 [19:36:32]FM_GetShiftState [19:36:32]SAM_PROTO_GetShiftState [19:36:32]wFMCommunicate request_size=4 [19:36:32]MH_SAM_APDU [19:36:32]CAPDU: 80 13 01 00 [19:36:32]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [19:36:32]Write i2c OK [19:36:32]MH_I2C_Read... [19:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:32]Read from MH i2c: E2 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: E2 0E 00 [19:36:32]MH_I2C_Read... [19:36:32]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E2 [19:36:32]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:36:32]wFMCommunicate OK [19:36:32]SAM_PROTO_GetShiftState done [19:36:32]FM_GetShiftState done [19:36:32]opened in 1730247109 [19:36:32]opened+sec_in_day 1730333509 [19:36:32]quantity*price = 260070 [19:36:32]sum+1 = 260072 [19:36:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2600.71 НСП 1% : 23.01 НДС 12% : 276.18 Наличными: 0.00 Безнал.: 2600.71 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 140 30.10.2024 19:36 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72903 ФПД: 262715129960345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T193633&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72903&fm=262715129960345&tin=02508201610067®Number=0000000000091644&sum=260071 [19:36:33]StoreToDocumentArchive [19:36:33]shift 556 fd 72903 [19:36:33]save to /storage/0556/doc_00072903 [19:36:33]save last doc name /storage/0556/doc_00072903 to /storage/kkm_last_doc_name [19:36:33]save OK [19:36:33]Clear old archive folders... [19:36:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:36:33]tlvbuf is 00689A50 [19:36:33]SAM_PROTO_ClearQueue [19:36:33]wFMCommunicate request_size=4 [19:36:33]MH_SAM_APDU [19:36:33]CAPDU: 80 09 00 00 [19:36:33]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [19:36:33]Write i2c OK [19:36:33]MH_I2C_Read... [19:36:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:33]Read from MH i2c: E2 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 03 00 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [19:36:33]RAPDU: 90 00 [19:36:33]wFMCommunicate OK [19:36:33]SAM_PROTO_ClearQueue done [19:36:33]KKMCreateOFDPacket [19:36:33]OFDProtocolAddRootSTLVToBuf [19:36:33]FM_MakeSignedData [19:36:33]FM_MakeSignedData [19:36:33]SAM_PROTO_SignData [19:36:33]wFMCommunicate request_size=4 [19:36:33]MH_SAM_APDU [19:36:33]CAPDU: 80 0D 01 02 [19:36:33]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [19:36:33]Write i2c OK [19:36:33]MH_I2C_Read... [19:36:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:33]Read from MH i2c: E2 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 03 00 [19:36:33]MH_I2C_Read... [19:36:33]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [19:36:33]RAPDU: 90 00 [19:36:33]wFMCommunicate OK [19:36:33]wFMCommunicate request_size=255 [19:36:33]MH_SAM_APDU [19:36:33]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 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C1 8A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1C 01 00 35 04 06 00 [19:36:33]Write to MH i2c: E2 02 01 A1 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 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C1 8A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1C 01 00 35 04 06 00 00 00 7E [19:36:33]Write i2c OK [19:36:33]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 03 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [19:36:34]RAPDU: 90 00 [19:36:34]wFMCommunicate OK [19:36:34]wFMCommunicate request_size=11 [19:36:34]MH_SAM_APDU [19:36:34]CAPDU: 80 0D 02 02 06 EE F0 21 FF 97 99 [19:36:34]Write to MH i2c: E2 0E 00 A2 01 80 0D 02 02 06 00 EE F0 21 FF 97 99 00 00 57 [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 03 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [19:36:34]RAPDU: 90 00 [19:36:34]wFMCommunicate OK [19:36:34]wFMCommunicate request_size=4 [19:36:34]MH_SAM_APDU [19:36:34]CAPDU: 80 0D 03 02 [19:36:34]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 0B 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 0B 00 A3 01 00 53 BB A1 F4 AA 9E 30 7A 90 00 B5 [19:36:34]RAPDU: 53 BB A1 F4 AA 9E 30 7A 90 00 [19:36:34]wFMCommunicate OK [19:36:34]SAM_PROTO_SignData done [19:36:34]FM_MakeSignedData done [19:36:34]CreateOFDProtocolMessage [19:36:34]wFMCommunicate request_size=4 [19:36:34]MH_SAM_APDU [19:36:34]CAPDU: 80 11 00 00 [19:36:34]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:34]Read from MH i2c: E2 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 17 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 73 [19:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:36:34]wFMCommunicate OK [19:36:34]CreateOFDProtocolMessage done [19:36:34]OFDSenderStorePacket 72903 [19:36:34]StoreOFDPacket docnum=72903 [19:36:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 8B 97 08 01 83 90 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 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C1 8A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1C 01 00 35 04 06 00 EE F0 21 FF 97 99 53 BB A1 F4 AA 9E 30 7A [19:36:34]CheckFolder [19:36:34]dirname=/storage/ofd_packets [19:36:34]CheckFolder done [19:36:34]ProducePacketName [19:36:34]name=ofd_packets/00072903 [19:36:34]NVStorageSaveData ofd_packets/00072903 [19:36:34]File name is /storage/ofd_packets/00072903 [19:36:34]Write 302 bytes [19:36:34]NVStorageSaveData done [19:36:34]OFDSenderStorePacket done [19:36:34]KKMCreateOFDPacket done [19:36:34]NVStorageSaveData kkm_last_timestamp [19:36:34]File name is /storage/kkm_last_timestamp [19:36:34]Write 4 bytes [19:36:34]NVStorageSaveData done [19:36:34]ExternCall_PrintAddStr [19:36:34]wPrintStart [19:36:34]Write to MH i2c: 01 00 00 A5 01 A6 [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: 01 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: 01 07 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [19:36:34]RasterBufferAndPrint [19:36:34]line Счет N : (1)952499 [19:36:34]line ИНН: 02508201610067 [19:36:34]line Контрольно-Кассовый Чек [19:36:34]line ПРОДАЖА [19:36:34]line ТРК (МРК, ГНК) : 33 [19:36:34]line Товар: 2710194210 [19:36:34]line ДТ(л)-К-5 [19:36:34]line 34.130 * 76.20 [19:36:34]line = 2600.71 [19:36:34]line НДС 12% НСП 1% [19:36:34]line > о реализуемом товаре [19:36:34]line ИТОГО: 2600.71 [19:36:34]line НСП 1% : 23.01 [19:36:34]line НДС 12% : 276.18 [19:36:34]line Наличными: 0.00 [19:36:34]line Безнал.: 2600.71 [19:36:34]line Место: АЗС № 113 "Партнер Нефть" [19:36:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:36:34]line СНО: Общий режим [19:36:34]line Чек 140 30.10.2024 19:36 [19:36:34]line Смена: 556 ФФД: 1.0 [19:36:34]line ЗНМ: 0300000087 [19:36:34]line РНМ: 0000000000091644 [19:36:34]line Версия ККМ: 001 [19:36:34]line Платежная система: АКБ Кыргызстан [19:36:34]line ФМ: 0000000000874662 [19:36:34]line ФД: 72903 [19:36:34]line ФПД: 262715129960345 [19:36:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T193633&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72903&fm=262715129960345&tin=02508201610067®Number=0000000000091644&sum=260071 [19:36:34]written 0, free lines is 4095 [19:36:34]OFD Sender: Processing packet 72903 [packets to send 279, broken 278] [19:36:34]ProducePacketName [19:36:34]name=ofd_packets/00072903 [19:36:34]OFD Sender: To server: pG, [19:36:34]CommunicateWithHost lk.salyk.kg:30040 [19:36:34]ConnectInit lk.salyk.kg [19:36:34]Write to MH i2c: 01 00 00 CF 01 D0 [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: 01 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: 01 07 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 E4 0C C7 [19:36:34]RasterBufferAndPrint [19:36:34]line [19:36:34]line [19:36:34]line [19:36:34]line [19:36:34]line [19:36:34]written 0, free lines is 3307 [19:36:34]MH_Cut [19:36:34]Write to MH i2c: D1 01 00 D6 01 01 A9 [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: D1 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: D1 01 00 [19:36:34]MH_I2C_Read... [19:36:34]Read from MH i2c: D1 01 00 D6 01 00 A8 [19:36:34]Write to MH i2c: 01 00 00 D7 01 D8 [19:36:34]Write i2c OK [19:36:34]MH_I2C_Read... [19:36:35]*** Cut start [19:36:35]*** Partial cut [19:36:35]*** CUTSNS_PIN = 1 [19:36:35]*** CUTSNS_PIN = 0 [19:36:35]*** Brake cut motor [19:36:36]Read from MH i2c: 01 [19:36:36]MH_I2C_Read... [19:36:36]*** Stop cut motor [19:36:36]*** Cut end [19:36:36]Read from MH i2c: 01 07 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [19:36:36]process_action close_receipt done [19:36:36]requested_data is exist [19:36:36]produce_requested_data [19:36:36]requested_item fm.sn is exist - process it [19:36:36]wFMCommunicate request_size=4 [19:36:36]MH_SAM_APDU [19:36:36]CAPDU: 80 11 00 00 [19:36:36]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:36]Read from MH i2c: E2 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 17 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A7 [19:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:36:36]wFMCommunicate OK [19:36:36]requested_item fd.num is exist - process it [19:36:36]SAM_PROTO_GetFieldsCounters [19:36:36]wFMCommunicate request_size=4 [19:36:36]MH_SAM_APDU [19:36:36]CAPDU: 80 13 00 00 [19:36:36]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:36]Read from MH i2c: E2 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 62 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 62 00 D9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C7 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [19:36:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C7 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:36]wFMCommunicate OK [19:36:36]SAM_PROTO_GetFieldsCounters done [19:36:36]requested_item shift.num is exist - process it [19:36:36]requested_item shift.opened is exist - process it [19:36:36]req_shift_opened [19:36:36]FM_GetShiftState [19:36:36]SAM_PROTO_GetShiftState [19:36:36]wFMCommunicate request_size=4 [19:36:36]MH_SAM_APDU [19:36:36]CAPDU: 80 13 01 00 [19:36:36]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [19:36:36]Write i2c OK [19:36:36]MH_I2C_Read... [19:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:36]Read from MH i2c: E2 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 0E 00 [19:36:36]MH_I2C_Read... [19:36:36]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 2A [19:36:36]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:36:36]wFMCommunicate OK [19:36:36]SAM_PROTO_GetShiftState done [19:36:36]FM_GetShiftState done [19:36:36]req_shift_opened done [19:36:36]requested_item shift.open_date is exist - process it [19:36:36]req_shift_open_date [19:36:36]req_shift_open_date done [19:36:36]produce_requested_data done [19:36:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72903,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:36:36]process_action_free close_receipt [19:36:36]json_value_free [19:36:36]json_value_free done [19:36:36]process_json_proto returns [19:36:36]Send response to host [19:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72903,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:36:36]free response buf [19:36:36]execute_script done [19:36:36]execute_script returns [19:36:36]free content buf [19:36:36]Sock 10.Close socket [19:36:36]Sock 10.Thread stoped [19:36:36]Connected sock=11 [19:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 8B 97 08 01 83 90 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 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 C1 8A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1C 01 00 35 04 06 00 EE F0 21 FF 97 99 53 BB A1 F4 AA 9E 30 7A [19:36:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 92 0B 47 00 5C EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1C 01 00 F4 03 04 00 7B 35 22 67 B6 04 01 00 00 DE 81 F2 32 B0 DA B7 CC [19:36:37]CommunicateWithHost err = 0 [19:36:37]CheckOFDResponse [19:36:37]1017 (14) - 77093643461234 [19:36:37]1041 (16) - 0000000000874662 [19:36:37]1040 (4) - 72903 [19:36:37]1012 (4) - 30.10.2024 13:32 [19:36:37]1206 (1) - 0 [19:36:37]OFD Sender: Remove packet 72903 [19:36:37]ProducePacketName [19:36:37]name=ofd_packets/00072903 [19:36:37]NVStorageDeleteData [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]recv_with_timeout no data received [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:08]recv_with_timeout no data received [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:21]recv_with_timeout no data received [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:30]ConnectInit Can't connect to host [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]accept exits with 9 [19:43:43]New connection [19:43:43]New thread 3067338084 created [19:43:43]Thread 3067194724 joined [19:43:43]Waiting for new connection... [19:43:43] Sock 9.Parse request [19:43:43]Sock 9.Check first char [19:43:43]Sock 9.First char is OK [19:43:43]request: POST /json_proto HTTP/1.0 [19:43:43]Method: POST [19:43:43]URL: /json_proto [19:43:43]Method is POST - this is cgi request [19:43:43]url: /json_proto [19:43:43]query_string will be loaded in cgi processing [19:43:43]execute_cgi json_proto POST (null) [19:43:43]execute_cgi path=json_proto method=POST [19:43:43]POST find Content-Length [19:43:43]Host: 172.17.43.195:8080 [19:43:43]Content-Length: 754 [19:43:43]Content-Type: application/json [19:43:43] [19:43:43]POST finish read [19:43:43]Found Content-Length = 754 [19:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:43]execute_script... [19:43:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:43]POST & json_proto [19:43:43]process_json_proto [19:43:43]json parsed OK: [19:43:43]protocol is kg_v1.0 [19:43:43]action value=close_receipt [19:43:43]process_action close_receipt [19:43:43]cmd_close_receipt [19:43:43]MH_GetDate [19:43:43]Write to MH i2c: F0 00 00 DB 01 CB [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: F0 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: F0 09 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: F0 09 00 DB 01 00 6F 8C 22 67 74 2C AD 66 0B [19:43:43]GetLastDocTimeStamp 1730316993 [19:43:43]current date 1730317423 [19:43:43]FM_GetShiftState [19:43:43]SAM_PROTO_GetShiftState [19:43:43]wFMCommunicate request_size=4 [19:43:43]MH_SAM_APDU [19:43:43]CAPDU: 80 13 01 00 [19:43:43]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [19:43:43]Write i2c OK [19:43:43]MH_I2C_Read... [19:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:43]Read from MH i2c: E2 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 0E 00 [19:43:43]MH_I2C_Read... [19:43:43]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 2C [19:43:43]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:43:43]wFMCommunicate OK [19:43:43]SAM_PROTO_GetShiftState done [19:43:43]FM_GetShiftState done [19:43:43]opened in 1730247109 [19:43:43]opened+sec_in_day 1730333509 [19:43:43]quantity*price = 0 [19:43:43]sum+1 = 1 [19:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 141 30.10.2024 19:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30005682 ФМ: 0000000000874662 ФД: 72904 ФПД: 4270617582643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194343&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72904&fm=4270617582643&tin=02508201610067®Number=0000000000091644&sum=0 [19:43:44]StoreToDocumentArchive [19:43:44]shift 556 fd 72904 [19:43:44]save to /storage/0556/doc_00072904 [19:43:44]save last doc name /storage/0556/doc_00072904 to /storage/kkm_last_doc_name [19:43:44]save OK [19:43:44]Clear old archive folders... [19:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:44]tlvbuf is 0071B840 [19:43:44]SAM_PROTO_ClearQueue [19:43:44]wFMCommunicate request_size=4 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 09 00 00 [19:43:44]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [19:43:44]RAPDU: 90 00 [19:43:44]wFMCommunicate OK [19:43:44]SAM_PROTO_ClearQueue done [19:43:44]KKMCreateOFDPacket [19:43:44]OFDProtocolAddRootSTLVToBuf [19:43:44]FM_MakeSignedData [19:43:44]FM_MakeSignedData [19:43:44]SAM_PROTO_SignData [19:43:44]wFMCommunicate request_size=4 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 0D 01 02 [19:43:44]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [19:43:44]RAPDU: 90 00 [19:43:44]wFMCommunicate OK [19:43:44]wFMCommunicate request_size=255 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8D 00 00 00 F4 03 04 00 6F 8C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1C 01 00 35 04 06 00 03 [19:43:44]Write to MH i2c: E2 02 01 EB 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 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 8D 00 00 00 F4 03 04 00 6F 8C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1C 01 00 35 04 06 00 03 00 00 CC [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [19:43:44]RAPDU: 90 00 [19:43:44]wFMCommunicate OK [19:43:44]wFMCommunicate request_size=10 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 0D 02 02 05 E2 54 A4 DC 33 [19:43:44]Write to MH i2c: E2 0D 00 EC 01 80 0D 02 02 05 00 E2 54 A4 DC 33 00 00 5A [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [19:43:44]RAPDU: 90 00 [19:43:44]wFMCommunicate OK [19:43:44]wFMCommunicate request_size=4 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 0D 03 02 [19:43:44]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 0B 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 0B 00 ED 01 00 18 97 BD 62 4A C9 35 29 90 00 A9 [19:43:44]RAPDU: 18 97 BD 62 4A C9 35 29 90 00 [19:43:44]wFMCommunicate OK [19:43:44]SAM_PROTO_SignData done [19:43:44]FM_MakeSignedData done [19:43:44]CreateOFDProtocolMessage [19:43:44]wFMCommunicate request_size=4 [19:43:44]MH_SAM_APDU [19:43:44]CAPDU: 80 11 00 00 [19:43:44]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:44]Read from MH i2c: E2 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 17 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BD [19:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:43:44]wFMCommunicate OK [19:43:44]CreateOFDProtocolMessage done [19:43:44]OFDSenderStorePacket 72904 [19:43:44]StoreOFDPacket docnum=72904 [19:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 64 98 07 01 D0 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 6F 8C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1C 01 00 35 04 06 00 03 E2 54 A4 DC 33 18 97 BD 62 4A C9 35 29 [19:43:44]CheckFolder [19:43:44]dirname=/storage/ofd_packets [19:43:44]CheckFolder done [19:43:44]ProducePacketName [19:43:44]name=ofd_packets/00072904 [19:43:44]NVStorageSaveData ofd_packets/00072904 [19:43:44]File name is /storage/ofd_packets/00072904 [19:43:44]Write 301 bytes [19:43:44]NVStorageSaveData done [19:43:44]OFDSenderStorePacket done [19:43:44]KKMCreateOFDPacket done [19:43:44]NVStorageSaveData kkm_last_timestamp [19:43:44]File name is /storage/kkm_last_timestamp [19:43:44]Write 4 bytes [19:43:44]NVStorageSaveData done [19:43:44]ExternCall_PrintAddStr [19:43:44]wPrintStart [19:43:44]Write to MH i2c: 01 00 00 EF 01 F0 [19:43:44]Write i2c OK [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 07 00 [19:43:44]MH_I2C_Read... [19:43:44]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [19:43:44]RasterBufferAndPrint [19:43:44]line Счет N : (1)952500 [19:43:44]line ИНН: 02508201610067 [19:43:44]line Контрольно-Кассовый Чек [19:43:44]line ПРОДАЖА [19:43:44]line ТРК (МРК, ГНК) : 53 [19:43:44]line Товар: 2710124130 [19:43:44]line Аи-92-К-5 [19:43:44]line 10.000 * 0.00 [19:43:44]line = 0.00 [19:43:44]line НДС 12% НСП 1% [19:43:44]line > о реализуемом товаре [19:43:44]line ИТОГО: 0.00 [19:43:44]line НСП 1% : 0.00 [19:43:44]line НДС 12% : 0.00 [19:43:44]line Наличными: 0.00 [19:43:44]line Безнал.: 0.00 [19:43:44]line Место: АЗС № 113 "Партнер Нефть" [19:43:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:43:44]line СНО: Общий режим [19:43:44]line Чек 141 30.10.2024 19:43 [19:43:44]line Смена: 556 ФФД: 1.0 [19:43:44]line ЗНМ: 0300000087 [19:43:44]line РНМ: 0000000000091644 [19:43:44]line Версия ККМ: 001 [19:43:44]line Талоны: ТК ГПНА Online [19:43:44]line 30005682 [19:43:44]line ФМ: 0000000000874662 [19:43:44]line ФД: 72904 [19:43:44]line ФПД: 4270617582643 [19:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194343&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72904&fm=4270617582643&tin=02508201610067®Number=0000000000091644&sum=0 [19:43:44]written 0, free lines is 4095 [19:43:44]OFD Sender: Processing packet 72904 [packets to send 279, broken 278] [19:43:44]ProducePacketName [19:43:44]name=ofd_packets/00072904 [19:43:44]OFD Sender: To server: pG, [19:43:44]CommunicateWithHost lk.salyk.kg:30040 [19:43:44]ConnectInit lk.salyk.kg [19:43:45]Write to MH i2c: 01 00 00 19 02 1B [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: 01 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: 01 07 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 D7 0C 05 [19:43:45]RasterBufferAndPrint [19:43:45]line [19:43:45]line [19:43:45]line [19:43:45]line [19:43:45]line [19:43:45]written 0, free lines is 3293 [19:43:45]MH_Cut [19:43:45]Write to MH i2c: D1 01 00 20 02 01 F4 [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: D1 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: D1 01 00 [19:43:45]MH_I2C_Read... [19:43:45]Read from MH i2c: D1 01 00 20 02 00 F3 [19:43:45]Write to MH i2c: 01 00 00 21 02 23 [19:43:45]Write i2c OK [19:43:45]MH_I2C_Read... [19:43:46]*** Cut start [19:43:46]*** Partial cut [19:43:46]*** CUTSNS_PIN = 1 [19:43:46]*** CUTSNS_PIN = 0 [19:43:46]*** Brake cut motor [19:43:46]Read from MH i2c: 01 [19:43:46]MH_I2C_Read... [19:43:46]*** Stop cut motor [19:43:46]*** Cut end [19:43:46]Read from MH i2c: 01 07 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [19:43:46]process_action close_receipt done [19:43:46]requested_data is exist [19:43:46]produce_requested_data [19:43:46]requested_item fm.sn is exist - process it [19:43:46]wFMCommunicate request_size=4 [19:43:46]MH_SAM_APDU [19:43:46]CAPDU: 80 11 00 00 [19:43:46]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [19:43:46]Write i2c OK [19:43:46]MH_I2C_Read... [19:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:46]Read from MH i2c: E2 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 17 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F2 [19:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:43:46]wFMCommunicate OK [19:43:46]requested_item fd.num is exist - process it [19:43:46]SAM_PROTO_GetFieldsCounters [19:43:46]wFMCommunicate request_size=4 [19:43:46]MH_SAM_APDU [19:43:46]CAPDU: 80 13 00 00 [19:43:46]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [19:43:46]Connected sock=10 [19:43:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 64 98 07 01 D0 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 6F 8C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1C 01 00 35 04 06 00 03 E2 54 A4 DC 33 18 97 BD 62 4A C9 35 29 [19:43:46]Write i2c OK [19:43:46]MH_I2C_Read... [19:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:46]Read from MH i2c: E2 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 62 00 [19:43:46]MH_I2C_Read... [19:43:46]Read from MH i2c: E2 62 00 23 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C8 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [19:43:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C8 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:47]wFMCommunicate OK [19:43:47]SAM_PROTO_GetFieldsCounters done [19:43:47]requested_item shift.num is exist - process it [19:43:47]requested_item shift.opened is exist - process it [19:43:47]req_shift_opened [19:43:47]FM_GetShiftState [19:43:47]SAM_PROTO_GetShiftState [19:43:47]wFMCommunicate request_size=4 [19:43:47]MH_SAM_APDU [19:43:47]CAPDU: 80 13 01 00 [19:43:47]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [19:43:47]Write i2c OK [19:43:47]MH_I2C_Read... [19:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:47]Read from MH i2c: E2 [19:43:47]MH_I2C_Read... [19:43:47]Read from MH i2c: E2 0E 00 [19:43:47]MH_I2C_Read... [19:43:47]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 75 [19:43:47]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:43:47]wFMCommunicate OK [19:43:47]SAM_PROTO_GetShiftState done [19:43:47]FM_GetShiftState done [19:43:47]req_shift_opened done [19:43:47]requested_item shift.open_date is exist - process it [19:43:47]req_shift_open_date [19:43:47]req_shift_open_date done [19:43:47]produce_requested_data done [19:43:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72904,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:43:47]process_action_free close_receipt [19:43:47]json_value_free [19:43:47]json_value_free done [19:43:47]process_json_proto returns [19:43:47]Send response to host [19:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72904,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:43:47]free response buf [19:43:47]execute_script done [19:43:47]execute_script returns [19:43:47]free content buf [19:43:47]Sock 9.Close socket [19:43:47]Sock 9.Thread stoped [19:43:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 81 56 47 00 B5 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 38 37 34 36 36 32 10 04 04 00 C8 1C 01 00 F4 03 04 00 2A 37 22 67 B6 04 01 00 00 6A 68 90 40 43 60 07 80 [19:43:49]CommunicateWithHost err = 0 [19:43:49]CheckOFDResponse [19:43:49]1017 (14) - 77093643461234 [19:43:49]1041 (16) - 0000000000874662 [19:43:49]1040 (4) - 72904 [19:43:49]1012 (4) - 30.10.2024 13:39 [19:43:49]1206 (1) - 0 [19:43:49]OFD Sender: Remove packet 72904 [19:43:49]ProducePacketName [19:43:49]name=ofd_packets/00072904 [19:43:49]NVStorageDeleteData [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: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:24]accept exits with 7 [19:44:24]New connection [19:44:24]New thread 3067194724 created [19:44:24]Thread 3067338084 joined [19:44:24]Waiting for new connection... [19:44:24] Sock 7.Parse request [19:44:24]Sock 7.Check first char [19:44:24]Sock 7.First char is OK [19:44:24]request: POST /json_proto HTTP/1.0 [19:44:24]Method: POST [19:44:24]URL: /json_proto [19:44:24]Method is POST - this is cgi request [19:44:24]url: /json_proto [19:44:24]query_string will be loaded in cgi processing [19:44:24]execute_cgi json_proto POST (null) [19:44:24]execute_cgi path=json_proto method=POST [19:44:24]POST find Content-Length [19:44:24]Host: 172.17.43.195:8080 [19:44:24]Content-Length: 754 [19:44:24]Content-Type: application/json [19:44:24] [19:44:24]POST finish read [19:44:24]Found Content-Length = 754 [19:44:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:24]execute_script... [19:44:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:24]POST & json_proto [19:44:24]process_json_proto [19:44:24]json parsed OK: [19:44:24]protocol is kg_v1.0 [19:44:24]action value=close_receipt [19:44:24]process_action close_receipt [19:44:24]cmd_close_receipt [19:44:24]MH_GetDate [19:44:24]Write to MH i2c: F0 00 00 25 02 16 [19:44:24]Write i2c OK [19:44:24]MH_I2C_Read... [19:44:24]Read from MH i2c: F0 [19:44:24]MH_I2C_Read... [19:44:24]Read from MH i2c: F0 09 00 [19:44:24]MH_I2C_Read... [19:44:24]Read from MH i2c: F0 09 00 25 02 00 99 8C 22 67 74 2C AD 66 80 [19:44:24]GetLastDocTimeStamp 1730317423 [19:44:24]current date 1730317465 [19:44:24]FM_GetShiftState [19:44:24]SAM_PROTO_GetShiftState [19:44:24]wFMCommunicate request_size=4 [19:44:24]MH_SAM_APDU [19:44:24]CAPDU: 80 13 01 00 [19:44:24]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [19:44:24]Write i2c OK [19:44:24]MH_I2C_Read... [19:44:24]Read from MH i2c: E2 [19:44:24]MH_I2C_Read... [19:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:24]Read from MH i2c: E2 0E 00 [19:44:24]MH_I2C_Read... [19:44:24]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 77 [19:44:24]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:44:24]wFMCommunicate OK [19:44:24]SAM_PROTO_GetShiftState done [19:44:24]FM_GetShiftState done [19:44:24]opened in 1730247109 [19:44:24]opened+sec_in_day 1730333509 [19:44:24]quantity*price = 0 [19:44:24]sum+1 = 1 [19:44:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 142 30.10.2024 19:44 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30005682 ФМ: 0000000000874662 ФД: 72905 ФПД: 265518735300916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194425&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72905&fm=265518735300916&tin=02508201610067®Number=0000000000091644&sum=0 [19:44:26]StoreToDocumentArchive [19:44:26]shift 556 fd 72905 [19:44:26]save to /storage/0556/doc_00072905 [19:44:26]save last doc name /storage/0556/doc_00072905 to /storage/kkm_last_doc_name [19:44:26]save OK [19:44:26]Clear old archive folders... [19:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:26]tlvbuf is 0068B380 [19:44:26]SAM_PROTO_ClearQueue [19:44:26]wFMCommunicate request_size=4 [19:44:26]MH_SAM_APDU [19:44:26]CAPDU: 80 09 00 00 [19:44:26]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [19:44:26]RAPDU: 90 00 [19:44:26]wFMCommunicate OK [19:44:26]SAM_PROTO_ClearQueue done [19:44:26]KKMCreateOFDPacket [19:44:26]OFDProtocolAddRootSTLVToBuf [19:44:26]FM_MakeSignedData [19:44:26]FM_MakeSignedData [19:44:26]SAM_PROTO_SignData [19:44:26]wFMCommunicate request_size=4 [19:44:26]MH_SAM_APDU [19:44:26]CAPDU: 80 0D 01 02 [19:44:26]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [19:44:26]RAPDU: 90 00 [19:44:26]wFMCommunicate OK [19:44:26]wFMCommunicate request_size=255 [19:44:26]MH_SAM_APDU [19:44:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 99 8C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1C 01 00 35 04 06 00 F1 [19:44:26]Write to MH i2c: E2 02 01 35 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 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 8E 00 00 00 F4 03 04 00 99 8C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1C 01 00 35 04 06 00 F1 00 00 31 [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [19:44:26]RAPDU: 90 00 [19:44:26]wFMCommunicate OK [19:44:26]wFMCommunicate request_size=10 [19:44:26]MH_SAM_APDU [19:44:26]CAPDU: 80 0D 02 02 05 7C E5 E6 19 34 [19:44:26]Write to MH i2c: E2 0D 00 36 02 80 0D 02 02 05 00 7C E5 E6 19 34 00 00 50 [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [19:44:26]RAPDU: 90 00 [19:44:26]wFMCommunicate OK [19:44:26]wFMCommunicate request_size=4 [19:44:26]MH_SAM_APDU [19:44:26]CAPDU: 80 0D 03 02 [19:44:26]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 0B 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 0B 00 37 02 00 B8 99 D9 EE 57 C7 F1 DF 90 00 BB [19:44:26]RAPDU: B8 99 D9 EE 57 C7 F1 DF 90 00 [19:44:26]wFMCommunicate OK [19:44:26]SAM_PROTO_SignData done [19:44:26]FM_MakeSignedData done [19:44:26]CreateOFDProtocolMessage [19:44:26]wFMCommunicate request_size=4 [19:44:26]MH_SAM_APDU [19:44:26]CAPDU: 80 11 00 00 [19:44:26]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:26]Read from MH i2c: E2 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 17 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 08 [19:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:44:26]wFMCommunicate OK [19:44:26]CreateOFDProtocolMessage done [19:44:26]OFDSenderStorePacket 72905 [19:44:26]StoreOFDPacket docnum=72905 [19:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9F 7D 07 01 C3 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8E 00 00 00 F4 03 04 00 99 8C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1C 01 00 35 04 06 00 F1 7C E5 E6 19 34 B8 99 D9 EE 57 C7 F1 DF [19:44:26]CheckFolder [19:44:26]dirname=/storage/ofd_packets [19:44:26]CheckFolder done [19:44:26]ProducePacketName [19:44:26]name=ofd_packets/00072905 [19:44:26]NVStorageSaveData ofd_packets/00072905 [19:44:26]File name is /storage/ofd_packets/00072905 [19:44:26]Write 301 bytes [19:44:26]NVStorageSaveData done [19:44:26]OFDSenderStorePacket done [19:44:26]KKMCreateOFDPacket done [19:44:26]NVStorageSaveData kkm_last_timestamp [19:44:26]File name is /storage/kkm_last_timestamp [19:44:26]Write 4 bytes [19:44:26]NVStorageSaveData done [19:44:26]ExternCall_PrintAddStr [19:44:26]wPrintStart [19:44:26]Write to MH i2c: 01 00 00 39 02 3B [19:44:26]Write i2c OK [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: 01 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: 01 07 00 [19:44:26]MH_I2C_Read... [19:44:26]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [19:44:26]RasterBufferAndPrint [19:44:26]line Счет N : (1)952501 [19:44:26]line ИНН: 02508201610067 [19:44:26]line Контрольно-Кассовый Чек [19:44:26]line ПРОДАЖА [19:44:26]line ТРК (МРК, ГНК) : 63 [19:44:26]line Товар: 2710124130 [19:44:26]line Аи-92-К-5 [19:44:26]line 10.000 * 0.00 [19:44:26]line = 0.00 [19:44:26]line НДС 12% НСП 1% [19:44:26]line > о реализуемом товаре [19:44:26]line ИТОГО: 0.00 [19:44:26]line НСП 1% : 0.00 [19:44:26]line НДС 12% : 0.00 [19:44:26]line Наличными: 0.00 [19:44:26]line Безнал.: 0.00 [19:44:26]line Место: АЗС № 113 "Партнер Нефть" [19:44:26]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:44:26]line СНО: Общий режим [19:44:26]line Чек 142 30.10.2024 19:44 [19:44:26]line Смена: 556 ФФД: 1.0 [19:44:26]line ЗНМ: 0300000087 [19:44:26]line РНМ: 0000000000091644 [19:44:26]line Версия ККМ: 001 [19:44:26]line Талоны: ТК ГПНА Online [19:44:26]line 30005682 [19:44:26]line ФМ: 0000000000874662 [19:44:26]line ФД: 72905 [19:44:26]line ФПД: 265518735300916 [19:44:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194425&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72905&fm=265518735300916&tin=02508201610067®Number=0000000000091644&sum=0 [19:44:26]written 0, free lines is 4095 [19:44:26]OFD Sender: Processing packet 72905 [packets to send 279, broken 278] [19:44:26]ProducePacketName [19:44:26]name=ofd_packets/00072905 [19:44:26]OFD Sender: To server: pG, [19:44:26]CommunicateWithHost lk.salyk.kg:30040 [19:44:26]ConnectInit lk.salyk.kg [19:44:27]Write to MH i2c: 01 00 00 63 02 65 [19:44:27]Write i2c OK [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: 01 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: 01 07 00 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 D4 0C 4C [19:44:27]RasterBufferAndPrint [19:44:27]line [19:44:27]line [19:44:27]line [19:44:27]line [19:44:27]line [19:44:27]written 0, free lines is 3296 [19:44:27]MH_Cut [19:44:27]Write to MH i2c: D1 01 00 6A 02 01 3E [19:44:27]Write i2c OK [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: D1 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: D1 01 00 [19:44:27]MH_I2C_Read... [19:44:27]Read from MH i2c: D1 01 00 6A 02 00 3D [19:44:27]Write to MH i2c: 01 00 00 6B 02 6D [19:44:27]Write i2c OK [19:44:27]MH_I2C_Read... [19:44:27]*** Cut start [19:44:27]*** Partial cut [19:44:27]*** CUTSNS_PIN = 1 [19:44:27]Connected sock=11 [19:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9F 7D 07 01 C3 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 *** CUTSNS_PIN = 0 [19:44:27]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 8E 00 00 00 F4 03 04 00 99 8C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1C 01 00 35 04 06 00 F1 7C E5 E6 19 34 B8 99 D9 EE 57 C7 F1 DF [19:44:28]*** Brake cut motor [19:44:28]Read from MH i2c: 01 [19:44:28]MH_I2C_Read... [19:44:28]*** Stop cut motor [19:44:28]*** Cut end [19:44:28]Read from MH i2c: 01 07 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [19:44:28]process_action close_receipt done [19:44:28]requested_data is exist [19:44:28]produce_requested_data [19:44:28]requested_item fm.sn is exist - process it [19:44:28]wFMCommunicate request_size=4 [19:44:28]MH_SAM_APDU [19:44:28]CAPDU: 80 11 00 00 [19:44:28]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:28]Read from MH i2c: E2 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 17 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [19:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:44:28]wFMCommunicate OK [19:44:28]requested_item fd.num is exist - process it [19:44:28]SAM_PROTO_GetFieldsCounters [19:44:28]wFMCommunicate request_size=4 [19:44:28]MH_SAM_APDU [19:44:28]CAPDU: 80 13 00 00 [19:44:28]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:28]Read from MH i2c: E2 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 62 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C9 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [19:44:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C9 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:28]wFMCommunicate OK [19:44:28]SAM_PROTO_GetFieldsCounters done [19:44:28]requested_item shift.num is exist - process it [19:44:28]requested_item shift.opened is exist - process it [19:44:28]req_shift_opened [19:44:28]FM_GetShiftState [19:44:28]SAM_PROTO_GetShiftState [19:44:28]wFMCommunicate request_size=4 [19:44:28]MH_SAM_APDU [19:44:28]CAPDU: 80 13 01 00 [19:44:28]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [19:44:28]Write i2c OK [19:44:28]MH_I2C_Read... [19:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:28]Read from MH i2c: E2 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 0E 00 [19:44:28]MH_I2C_Read... [19:44:28]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 BF [19:44:28]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:44:28]wFMCommunicate OK [19:44:28]SAM_PROTO_GetShiftState done [19:44:28]FM_GetShiftState done [19:44:28]req_shift_opened done [19:44:28]requested_item shift.open_date is exist - process it [19:44:28]req_shift_open_date [19:44:28]req_shift_open_date done [19:44:28]produce_requested_data done [19:44:28]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72905,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:44:28]process_action_free close_receipt [19:44:28]json_value_free [19:44:28]json_value_free done [19:44:28]process_json_proto returns [19:44:28]Send response to host [19:44:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72905,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:44:28]free response buf [19:44:28]execute_script done [19:44:28]execute_script returns [19:44:28]free content buf [19:44:28]Sock 7.Close socket [19:44:28]Sock 7.Thread stoped [19:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F3 77 47 00 23 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1C 01 00 F4 03 04 00 52 37 22 67 B6 04 01 00 00 DF 81 2A 68 77 2C 76 B1 [19:44:28]CommunicateWithHost err = 0 [19:44:28]CheckOFDResponse [19:44:28]1017 (14) - 77093643461234 [19:44:28]1041 (16) - 0000000000874662 [19:44:28]1040 (4) - 72905 [19:44:28]1012 (4) - 30.10.2024 13:40 [19:44:28]1206 (1) - 0 [19:44:28]OFD Sender: Remove packet 72905 [19:44:28]ProducePacketName [19:44:28]name=ofd_packets/00072905 [19:44:28]NVStorageDeleteData [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [19:44:58]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:51]recv_with_timeout no data received [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:01]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:03]accept exits with 10 [19:48:03]New connection [19:48:03]New thread 3067338084 created [19:48:03]Thread 3067194724 joined [19:48:03]Waiting for new connection... [19:48:03] Sock 10.Parse request [19:48:03]Sock 10.Check first char [19:48:03]Sock 10.First char is OK [19:48:03]request: POST /json_proto HTTP/1.0 [19:48:03]Method: POST [19:48:03]URL: /json_proto [19:48:03]Method is POST - this is cgi request [19:48:03]url: /json_proto [19:48:03]query_string will be loaded in cgi processing [19:48:03]execute_cgi json_proto POST (null) [19:48:03]execute_cgi path=json_proto method=POST [19:48:03]POST find Content-Length [19:48:03]Host: 172.17.43.195:8080 [19:48:03]Content-Length: 682 [19:48:03]Content-Type: application/json [19:48:03] [19:48:03]POST finish read [19:48:03]Found Content-Length = 682 [19:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 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" ] } } [19:48:03]execute_script... [19:48: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)952502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 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" ] } } [19:48:03]POST & json_proto [19:48:03]process_json_proto [19:48:03]json parsed OK: [19:48:03]protocol is kg_v1.0 [19:48:03]action value=close_receipt [19:48:03]process_action close_receipt [19:48:03]cmd_close_receipt [19:48:03]MH_GetDate [19:48:03]Write to MH i2c: F0 00 00 6F 02 60 [19:48:03]Write i2c OK [19:48:03]MH_I2C_Read... [19:48:03]Read from MH i2c: F0 [19:48:03]MH_I2C_Read... [19:48:03]Read from MH i2c: F0 09 00 [19:48:03]MH_I2C_Read... [19:48:03]Read from MH i2c: F0 09 00 6F 02 00 73 8D 22 67 74 2C AD 66 A5 [19:48:03]GetLastDocTimeStamp 1730317465 [19:48:03]current date 1730317683 [19:48:03]FM_GetShiftState [19:48:03]SAM_PROTO_GetShiftState [19:48:03]wFMCommunicate request_size=4 [19:48:03]MH_SAM_APDU [19:48:03]CAPDU: 80 13 01 00 [19:48:03]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [19:48:03]Write i2c OK [19:48:03]MH_I2C_Read... [19:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:03]Read from MH i2c: E2 [19:48:03]MH_I2C_Read... [19:48:03]Read from MH i2c: E2 0E 00 [19:48:03]MH_I2C_Read... [19:48:03]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 C1 [19:48:03]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:48:03]wFMCommunicate OK [19:48:03]SAM_PROTO_GetShiftState done [19:48:03]FM_GetShiftState done [19:48:03]opened in 1730247109 [19:48:03]opened+sec_in_day 1730333509 [19:48:03]quantity*price = 150032 [19:48:03]sum+1 = 150033 [19:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 143 30.10.2024 19:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72906 ФПД: 90960534106817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194803&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72906&fm=90960534106817&tin=02508201610067®Number=0000000000091644&sum=150000 [19:48:04]StoreToDocumentArchive [19:48:04]shift 556 fd 72906 [19:48:04]save to /storage/0556/doc_00072906 [19:48:04]save last doc name /storage/0556/doc_00072906 to /storage/kkm_last_doc_name [19:48:04]save OK [19:48:04]Clear old archive folders... [19:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:04]tlvbuf is 00714C30 [19:48:04]SAM_PROTO_ClearQueue [19:48:04]wFMCommunicate request_size=4 [19:48:04]MH_SAM_APDU [19:48:04]CAPDU: 80 09 00 00 [19:48:04]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [19:48:04]Write i2c OK [19:48:04]MH_I2C_Read... [19:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:04]Read from MH i2c: E2 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 03 00 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [19:48:04]RAPDU: 90 00 [19:48:04]wFMCommunicate OK [19:48:04]SAM_PROTO_ClearQueue done [19:48:04]KKMCreateOFDPacket [19:48:04]OFDProtocolAddRootSTLVToBuf [19:48:04]FM_MakeSignedData [19:48:04]FM_MakeSignedData [19:48:04]SAM_PROTO_SignData [19:48:04]wFMCommunicate request_size=4 [19:48:04]MH_SAM_APDU [19:48:04]CAPDU: 80 0D 01 02 [19:48:04]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [19:48:04]Write i2c OK [19:48:04]MH_I2C_Read... [19:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:04]Read from MH i2c: E2 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 03 00 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [19:48:04]RAPDU: 90 00 [19:48:04]wFMCommunicate OK [19:48:04]wFMCommunicate request_size=255 [19:48:04]MH_SAM_APDU [19:48:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 73 8D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1C 01 00 35 04 06 00 52 [19:48:04]Write to MH i2c: E2 02 01 7F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 8F 00 00 00 F4 03 04 00 73 8D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1C 01 00 35 04 06 00 52 00 00 68 [19:48:04]Write i2c OK [19:48:04]MH_I2C_Read... [19:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:04]Read from MH i2c: E2 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 03 00 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [19:48:04]RAPDU: 90 00 [19:48:04]wFMCommunicate OK [19:48:04]wFMCommunicate request_size=10 [19:48:04]MH_SAM_APDU [19:48:04]CAPDU: 80 0D 02 02 05 BA 66 52 F2 C1 [19:48:04]Write to MH i2c: E2 0D 00 80 02 80 0D 02 02 05 00 BA 66 52 F2 C1 00 00 2B [19:48:04]Write i2c OK [19:48:04]MH_I2C_Read... [19:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:04]Read from MH i2c: E2 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 03 00 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [19:48:04]RAPDU: 90 00 [19:48:04]wFMCommunicate OK [19:48:04]wFMCommunicate request_size=4 [19:48:04]MH_SAM_APDU [19:48:04]CAPDU: 80 0D 03 02 [19:48:04]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [19:48:04]Write i2c OK [19:48:04]MH_I2C_Read... [19:48:04]OFD Sender: No OFD packet to send [19:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:04]Read from MH i2c: E2 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 0B 00 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 0B 00 81 02 00 17 AE 69 44 94 E5 F2 74 90 00 50 [19:48:04]RAPDU: 17 AE 69 44 94 E5 F2 74 90 00 [19:48:04]wFMCommunicate OK [19:48:04]SAM_PROTO_SignData done [19:48:04]FM_MakeSignedData done [19:48:04]CreateOFDProtocolMessage [19:48:04]wFMCommunicate request_size=4 [19:48:04]MH_SAM_APDU [19:48:04]CAPDU: 80 11 00 00 [19:48:04]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [19:48:04]Write i2c OK [19:48:04]MH_I2C_Read... [19:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:04]Read from MH i2c: E2 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 17 00 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [19:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:48:04]wFMCommunicate OK [19:48:04]CreateOFDProtocolMessage done [19:48:04]OFDSenderStorePacket 72906 [19:48:04]StoreOFDPacket docnum=72906 [19:48:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AF BB 07 01 8B 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 73 8D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1C 01 00 35 04 06 00 52 BA 66 52 F2 C1 17 AE 69 44 94 E5 F2 74 [19:48:04]CheckFolder [19:48:04]dirname=/storage/ofd_packets [19:48:04]CheckFolder done [19:48:04]ProducePacketName [19:48:04]name=ofd_packets/00072906 [19:48:04]NVStorageSaveData ofd_packets/00072906 [19:48:04]File name is /storage/ofd_packets/00072906 [19:48:04]Write 301 bytes [19:48:04]NVStorageSaveData done [19:48:04]OFDSenderStorePacket done [19:48:04]KKMCreateOFDPacket done [19:48:04]NVStorageSaveData kkm_last_timestamp [19:48:04]File name is /storage/kkm_last_timestamp [19:48:04]Write 4 bytes [19:48:04]NVStorageSaveData done [19:48:04]ExternCall_PrintAddStr [19:48:04]wPrintStart [19:48:04]Write to MH i2c: 01 00 00 83 02 85 [19:48:04]Write i2c OK [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: 01 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: 01 07 00 [19:48:04]MH_I2C_Read... [19:48:04]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [19:48:04]RasterBufferAndPrint [19:48:04]line Счет N : (1)952502 [19:48:04]line ИНН: 02508201610067 [19:48:04]line Контрольно-Кассовый Чек [19:48:04]line ПРОДАЖА [19:48:04]line ТРК (МРК, ГНК) : 62 [19:48:04]line Товар: 2710124500 [19:48:04]line Аи-95-К-3 [19:48:04]line 20.220 * 74.20 [19:48:04]line = 1500.32 [19:48:04]line НДС 12% НСП 1% [19:48:04]line > о реализуемом товаре [19:48:04]line ОКРУГЛЕНИЕ: -0.32 [19:48:04]line ИТОГО: 1500.00 [19:48:04]line Внесено: 1500.00 [19:48:04]line СДАЧА: 0.00 [19:48:04]line НСП 1% : 13.28 [19:48:04]line НДС 12% : 159.33 [19:48:04]line Наличными: 1500.00 [19:48:04]line Безнал.: 0.00 [19:48:04]line Место: АЗС № 113 "Партнер Нефть" [19:48:04]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:48:04]line СНО: Общий режим [19:48:04]line Чек 143 30.10.2024 19:48 [19:48:04]line Смена: 556 ФФД: 1.0 [19:48:04]line ЗНМ: 0300000087 [19:48:04]line РНМ: 0000000000091644 [19:48:04]line Версия ККМ: 001 [19:48:04]line ФМ: 0000000000874662 [19:48:04]line ФД: 72906 [19:48:04]line ФПД: 90960534106817 [19:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194803&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72906&fm=90960534106817&tin=02508201610067®Number=0000000000091644&sum=150000 [19:48:05]OFD Sender: Processing packet 72906 [packets to send 279, broken 278] [19:48:05]ProducePacketName [19:48:05]name=ofd_packets/00072906 [19:48:05]OFD Sender: To server: pG, [19:48:05]CommunicateWithHost lk.salyk.kg:30040 [19:48:05]ConnectInit lk.salyk.kg [19:48:05]written 0, free lines is 4095 [19:48:05]Write to MH i2c: 01 00 00 AE 02 B0 [19:48:05]Write i2c OK [19:48:05]MH_I2C_Read... [19:48:05]Read from MH i2c: 01 [19:48:05]MH_I2C_Read... [19:48:05]Read from MH i2c: 01 07 00 [19:48:05]MH_I2C_Read... [19:48:05]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 CE 0C 91 [19:48:05]RasterBufferAndPrint [19:48:05]line [19:48:05]line [19:48:05]line [19:48:05]line [19:48:05]line [19:48:05]written 0, free lines is 3282 [19:48:05]MH_Cut [19:48:05]Write to MH i2c: D1 01 00 B5 02 01 89 [19:48:05]Write i2c OK [19:48:05]MH_I2C_Read... [19:48:05]Read from MH i2c: D1 [19:48:05]MH_I2C_Read... [19:48:05]Read from MH i2c: D1 01 00 [19:48:05]MH_I2C_Read... [19:48:05]Read from MH i2c: D1 01 00 B5 02 00 88 [19:48:05]Write to MH i2c: 01 00 00 B6 02 B8 [19:48:05]Write i2c OK [19:48:05]MH_I2C_Read... [19:48:06]*** Cut start [19:48:06]*** Partial cut [19:48:06]*** CUTSNS_PIN = 1 [19:48:06]*** CUTSNS_PIN = 0 [19:48:06]*** Brake cut motor [19:48:07]Read from MH i2c: 01 [19:48:07]MH_I2C_Read... [19:48:07]*** Stop cut motor [19:48:07]*** Cut end [19:48:07]Read from MH i2c: 01 07 00 [19:48:07]MH_I2C_Read... [19:48:07]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [19:48:07]process_action close_receipt done [19:48:07]requested_data is exist [19:48:07]produce_requested_data [19:48:07]requested_item fm.sn is exist - process it [19:48:07]wFMCommunicate request_size=4 [19:48:07]MH_SAM_APDU [19:48:07]CAPDU: 80 11 00 00 [19:48:07]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [19:48:07]Write i2c OK [19:48:07]MH_I2C_Read... [19:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:07]Read from MH i2c: E2 [19:48:07]MH_I2C_Read... [19:48:07]Read from MH i2c: E2 17 00 [19:48:07]MH_I2C_Read... [19:48:07]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 87 [19:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:48:07]wFMCommunicate OK [19:48:07]requested_item fd.num is exist - process it [19:48:07]SAM_PROTO_GetFieldsCounters [19:48:07]wFMCommunicate request_size=4 [19:48:07]MH_SAM_APDU [19:48:07]CAPDU: 80 13 00 00 [19:48:07]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [19:48:07]Write i2c OK [19:48:07]MH_I2C_Read... [19:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:07]Read from MH i2c: E2 [19:48:07]MH_I2C_Read... [19:48:07]Read from MH i2c: E2 62 00 [19:48:07]MH_I2C_Read... [19:48:07]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CA 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [19:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CA 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:07]wFMCommunicate OK [19:48:07]SAM_PROTO_GetFieldsCounters done [19:48:07]requested_item shift.num is exist - process it [19:48:07]requested_item shift.opened is exist - process it [19:48:07]req_shift_opened [19:48:07]FM_GetShiftState [19:48:07]SAM_PROTO_GetShiftState [19:48:07]wFMCommunicate request_size=4 [19:48:07]MH_SAM_APDU [19:48:07]CAPDU: 80 13 01 00 [19:48:07]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [19:48:07]Write i2c OK [19:48:07]MH_I2C_Read... [19:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:07]Read from MH i2c: E2 [19:48:07]MH_I2C_Read... [19:48:07]Read from MH i2c: E2 0E 00 [19:48:07]MH_I2C_Read... [19:48:07]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 0A [19:48:07]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:48:07]wFMCommunicate OK [19:48:07]SAM_PROTO_GetShiftState done [19:48:07]FM_GetShiftState done [19:48:07]req_shift_opened done [19:48:07]requested_item shift.open_date is exist - process it [19:48:07]req_shift_open_date [19:48:07]req_shift_open_date done [19:48:07]produce_requested_data done [19:48:07]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72906,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:48:07]process_action_free close_receipt [19:48:07]json_value_free [19:48:07]json_value_free done [19:48:07]process_json_proto returns [19:48:07]Send response to host [19:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72906,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:48:07]free response buf [19:48:07]execute_script done [19:48:07]execute_script returns [19:48:07]free content buf [19:48:07]Sock 10.Close socket [19:48:07]Sock 10.Thread stoped [19:48:09]Connected sock=11 [19:48:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AF BB 07 01 8B 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 73 8D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1C 01 00 35 04 06 00 52 BA 66 52 F2 C1 17 AE 69 44 94 E5 F2 74 [19:48:14]recv_with_timeout no data received [19:48:14]CommunicateWithHost answer receiving error [19:48:14]CommunicateWithHost err = -3 [19:48:14]OFD Sender: Server communicate error [19:48:19]OFD Sender: Processing packet 72906 [packets to send 279, broken 278] [19:48:19]ProducePacketName [19:48:19]name=ofd_packets/00072906 [19:48:19]OFD Sender: To server: pG, [19:48:19]CommunicateWithHost lk.salyk.kg:30040 [19:48:19]ConnectInit lk.salyk.kg [19:48:20]Connected sock=10 [19:48:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AF BB 07 01 8B 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 73 8D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1C 01 00 35 04 06 00 52 BA 66 52 F2 C1 17 AE 69 44 94 E5 F2 74 [19:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 79 DC 47 00 38 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1C 01 00 F4 03 04 00 3B 38 22 67 B6 04 01 00 00 83 2B 9B 2C 4A 3B B2 C3 [19:48:21]CommunicateWithHost err = 0 [19:48:21]CheckOFDResponse [19:48:21]1017 (14) - 77093643461234 [19:48:21]1041 (16) - 0000000000874662 [19:48:21]1040 (4) - 72906 [19:48:21]1012 (4) - 30.10.2024 13:44 [19:48:21]1206 (1) - 0 [19:48:21]OFD Sender: Remove packet 72906 [19:48:21]ProducePacketName [19:48:21]name=ofd_packets/00072906 [19:48:21]NVStorageDeleteData [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:28]accept exits with 7 [19:48:28]New connection [19:48:28]New thread 3067194724 created [19:48:28]Thread 3067338084 joined [19:48:28]Waiting for new connection... [19:48:28] Sock 7.Parse request [19:48:28]Sock 7.Check first char [19:48:28]Sock 7.First char is OK [19:48:28]request: POST /json_proto HTTP/1.0 [19:48:28]Method: POST [19:48:28]URL: /json_proto [19:48:28]Method is POST - this is cgi request [19:48:28]url: /json_proto [19:48:28]query_string will be loaded in cgi processing [19:48:28]execute_cgi json_proto POST (null) [19:48:28]execute_cgi path=json_proto method=POST [19:48:28]POST find Content-Length [19:48:28]Host: 172.17.43.195:8080 [19:48:28]Content-Length: 754 [19:48:28]Content-Type: application/json [19:48:28] [19:48:28]POST finish read [19:48:28]Found Content-Length = 754 [19:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:28]execute_script... [19:48:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:28]POST & json_proto [19:48:28]process_json_proto [19:48:28]json parsed OK: [19:48:28]protocol is kg_v1.0 [19:48:28]action value=close_receipt [19:48:28]process_action close_receipt [19:48:28]cmd_close_receipt [19:48:28]MH_GetDate [19:48:28]Write to MH i2c: F0 00 00 BA 02 AB [19:48:28]Write i2c OK [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: F0 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: F0 09 00 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: F0 09 00 BA 02 00 8C 8D 22 67 74 2C AD 66 09 [19:48:28]GetLastDocTimeStamp 1730317683 [19:48:28]current date 1730317708 [19:48:28]FM_GetShiftState [19:48:28]SAM_PROTO_GetShiftState [19:48:28]wFMCommunicate request_size=4 [19:48:28]MH_SAM_APDU [19:48:28]CAPDU: 80 13 01 00 [19:48:28]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [19:48:28]Write i2c OK [19:48:28]MH_I2C_Read... [19:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:28]Read from MH i2c: E2 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: E2 0E 00 [19:48:28]MH_I2C_Read... [19:48:28]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 0C [19:48:28]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:48:28]wFMCommunicate OK [19:48:28]SAM_PROTO_GetShiftState done [19:48:28]FM_GetShiftState done [19:48:28]opened in 1730247109 [19:48:28]opened+sec_in_day 1730333509 [19:48:28]quantity*price = 0 [19:48:28]sum+1 = 1 [19:48:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 144 30.10.2024 19:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30005682 ФМ: 0000000000874662 ФД: 72907 ФПД: 135576015355642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194828&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72907&fm=135576015355642&tin=02508201610067®Number=0000000000091644&sum=0 [19:48:29]StoreToDocumentArchive [19:48:29]shift 556 fd 72907 [19:48:29]save to /storage/0556/doc_00072907 [19:48:29]save last doc name /storage/0556/doc_00072907 to /storage/kkm_last_doc_name [19:48:29]save OK [19:48:29]Clear old archive folders... [19:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:29]tlvbuf is 0068C670 [19:48:29]SAM_PROTO_ClearQueue [19:48:29]wFMCommunicate request_size=4 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 09 00 00 [19:48:29]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 03 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [19:48:29]RAPDU: 90 00 [19:48:29]wFMCommunicate OK [19:48:29]SAM_PROTO_ClearQueue done [19:48:29]KKMCreateOFDPacket [19:48:29]OFDProtocolAddRootSTLVToBuf [19:48:29]FM_MakeSignedData [19:48:29]FM_MakeSignedData [19:48:29]SAM_PROTO_SignData [19:48:29]wFMCommunicate request_size=4 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 0D 01 02 [19:48:29]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 03 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [19:48:29]RAPDU: 90 00 [19:48:29]wFMCommunicate OK [19:48:29]wFMCommunicate request_size=255 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 90 00 00 00 F4 03 04 00 8C 8D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1C 01 00 35 04 06 00 7B [19:48:29]Write to MH i2c: E2 02 01 CA 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 98 3A 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 90 00 00 00 F4 03 04 00 8C 8D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1C 01 00 35 04 06 00 7B 00 00 E3 [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 03 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [19:48:29]RAPDU: 90 00 [19:48:29]wFMCommunicate OK [19:48:29]wFMCommunicate request_size=10 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 0D 02 02 05 4E 40 3C 3E FA [19:48:29]Write to MH i2c: E2 0D 00 CB 02 80 0D 02 02 05 00 4E 40 3C 3E FA 00 00 53 [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 03 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [19:48:29]RAPDU: 90 00 [19:48:29]wFMCommunicate OK [19:48:29]wFMCommunicate request_size=4 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 0D 03 02 [19:48:29]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 0B 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 0B 00 CC 02 00 F0 5B E0 6D C1 DF 5B 24 90 00 01 [19:48:29]RAPDU: F0 5B E0 6D C1 DF 5B 24 90 00 [19:48:29]wFMCommunicate OK [19:48:29]SAM_PROTO_SignData done [19:48:29]FM_MakeSignedData done [19:48:29]CreateOFDProtocolMessage [19:48:29]wFMCommunicate request_size=4 [19:48:29]MH_SAM_APDU [19:48:29]CAPDU: 80 11 00 00 [19:48:29]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:29]Read from MH i2c: E2 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 17 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9D [19:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:48:29]wFMCommunicate OK [19:48:29]CreateOFDProtocolMessage done [19:48:29]OFDSenderStorePacket 72907 [19:48:29]StoreOFDPacket docnum=72907 [19:48:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4E 7B 07 01 25 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 90 00 00 00 F4 03 04 00 8C 8D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1C 01 00 35 04 06 00 7B 4E 40 3C 3E FA F0 5B E0 6D C1 DF 5B 24 [19:48:29]CheckFolder [19:48:29]dirname=/storage/ofd_packets [19:48:29]CheckFolder done [19:48:29]ProducePacketName [19:48:29]name=ofd_packets/00072907 [19:48:29]NVStorageSaveData ofd_packets/00072907 [19:48:29]File name is /storage/ofd_packets/00072907 [19:48:29]Write 301 bytes [19:48:29]NVStorageSaveData done [19:48:29]OFDSenderStorePacket done [19:48:29]KKMCreateOFDPacket done [19:48:29]NVStorageSaveData kkm_last_timestamp [19:48:29]File name is /storage/kkm_last_timestamp [19:48:29]Write 4 bytes [19:48:29]NVStorageSaveData done [19:48:29]ExternCall_PrintAddStr [19:48:29]wPrintStart [19:48:29]Write to MH i2c: 01 00 00 CE 02 D0 [19:48:29]Write i2c OK [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: 01 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: 01 07 00 [19:48:29]MH_I2C_Read... [19:48:29]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 FF 0F E5 [19:48:29]RasterBufferAndPrint [19:48:29]line Счет N : (1)952503 [19:48:29]line ИНН: 02508201610067 [19:48:29]line Контрольно-Кассовый Чек [19:48:29]line ПРОДАЖА [19:48:29]line ТРК (МРК, ГНК) : 53 [19:48:29]line Товар: 2710124130 [19:48:29]line Аи-92-К-5 [19:48:29]line 15.000 * 0.00 [19:48:29]line = 0.00 [19:48:29]line НДС 12% НСП 1% [19:48:29]line > о реализуемом товаре [19:48:29]line ИТОГО: 0.00 [19:48:29]line НСП 1% : 0.00 [19:48:29]line НДС 12% : 0.00 [19:48:29]line Наличными: 0.00 [19:48:29]line Безнал.: 0.00 [19:48:29]line Место: АЗС № 113 "Партнер Нефть" [19:48:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:48:29]line СНО: Общий режим [19:48:29]line Чек 144 30.10.2024 19:48 [19:48:29]line Смена: 556 ФФД: 1.0 [19:48:29]line ЗНМ: 0300000087 [19:48:29]line РНМ: 0000000000091644 [19:48:29]line Версия ККМ: 001 [19:48:29]line Талоны: ТК ГПНА Online [19:48:29]line 30005682 [19:48:29]line ФМ: 0000000000874662 [19:48:29]line ФД: 72907 [19:48:29]line ФПД: 135576015355642 [19:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T194828&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72907&fm=135576015355642&tin=02508201610067®Number=0000000000091644&sum=0 [19:48:29]written 0, free lines is 4095 [19:48:29]OFD Sender: Processing packet 72907 [packets to send 279, broken 278] [19:48:29]ProducePacketName [19:48:29]name=ofd_packets/00072907 [19:48:29]OFD Sender: To server: pG, [19:48:29]CommunicateWithHost lk.salyk.kg:30040 [19:48:29]ConnectInit lk.salyk.kg [19:48:30]Write to MH i2c: 01 00 00 F8 02 FA [19:48:30]Write i2c OK [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: 01 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: 01 07 00 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 DD 0C EA [19:48:30]RasterBufferAndPrint [19:48:30]line [19:48:30]line [19:48:30]line [19:48:30]line [19:48:30]line [19:48:30]written 0, free lines is 3299 [19:48:30]MH_Cut [19:48:30]Write to MH i2c: D1 01 00 FF 02 01 D3 [19:48:30]Write i2c OK [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: D1 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: D1 01 00 [19:48:30]MH_I2C_Read... [19:48:30]Read from MH i2c: D1 01 00 FF 02 00 D2 [19:48:30]Write to MH i2c: 01 00 00 00 03 03 [19:48:30]Write i2c OK [19:48:30]MH_I2C_Read... [19:48:31]*** Cut start [19:48:31]*** Partial cut [19:48:31]*** CUTSNS_PIN = 1 [19:48:31]*** CUTSNS_PIN = 0 [19:48:31]*** Brake cut motor [19:48:31]Read from MH i2c: 01 [19:48:31]MH_I2C_Read... [19:48:31]*** Stop cut motor [19:48:31]*** Cut end [19:48:31]Read from MH i2c: 01 07 00 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: 01 07 00 00 03 00 00 00 00 00 FF 0F 18 [19:48:31]process_action close_receipt done [19:48:31]requested_data is exist [19:48:31]produce_requested_data [19:48:31]requested_item fm.sn is exist - process it [19:48:31]wFMCommunicate request_size=4 [19:48:31]MH_SAM_APDU [19:48:31]CAPDU: 80 11 00 00 [19:48:31]Write to MH i2c: E2 08 00 01 03 80 11 00 00 00 00 00 00 7E [19:48:31]Write i2c OK [19:48:31]MH_I2C_Read... [19:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:31]Read from MH i2c: E2 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: E2 17 00 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: E2 17 00 01 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D2 [19:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:48:31]wFMCommunicate OK [19:48:31]requested_item fd.num is exist - process it [19:48:31]SAM_PROTO_GetFieldsCounters [19:48:31]wFMCommunicate request_size=4 [19:48:31]MH_SAM_APDU [19:48:31]CAPDU: 80 13 00 00 [19:48:31]Write to MH i2c: E2 08 00 02 03 80 13 00 00 00 00 00 00 81 [19:48:31]Write i2c OK [19:48:31]MH_I2C_Read... [19:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:31]Read from MH i2c: E2 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: E2 62 00 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: E2 62 00 02 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [19:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:31]wFMCommunicate OK [19:48:31]SAM_PROTO_GetFieldsCounters done [19:48:31]requested_item shift.num is exist - process it [19:48:31]requested_item shift.opened is exist - process it [19:48:31]req_shift_opened [19:48:31]FM_GetShiftState [19:48:31]SAM_PROTO_GetShiftState [19:48:31]wFMCommunicate request_size=4 [19:48:31]MH_SAM_APDU [19:48:31]CAPDU: 80 13 01 00 [19:48:31]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [19:48:31]Write i2c OK [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: E2 [19:48:31]MH_I2C_Read... [19:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:31]Read from MH i2c: E2 0E 00 [19:48:31]MH_I2C_Read... [19:48:31]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 55 [19:48:31]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [19:48:31]wFMCommunicate OK [19:48:31]SAM_PROTO_GetShiftState done [19:48:31]FM_GetShiftState done [19:48:31]req_shift_opened done [19:48:31]requested_item shift.open_date is exist - process it [19:48:31]req_shift_open_date [19:48:31]req_shift_open_date done [19:48:31]produce_requested_data done [19:48:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72907,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [19:48:31]process_action_free close_receipt [19:48:31]json_value_free [19:48:31]json_value_free done [19:48:31]process_json_proto returns [19:48:31]Send response to host [19:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72907,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [19:48:31]free response buf [19:48:31]execute_script done [19:48:31]execute_script returns [19:48:31]free content buf [19:48:31]Sock 7.Close socket [19:48:31]Sock 7.Thread stoped [19:48:32]Connected sock=11 [19:48:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4E 7B 07 01 25 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 90 00 00 00 F4 03 04 00 8C 8D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1C 01 00 35 04 06 00 7B 4E 40 3C 3E FA F0 5B E0 6D C1 DF 5B 24 [19:48:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7F 91 47 00 CD F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1C 01 00 F4 03 04 00 46 38 22 67 B6 04 01 00 00 B4 D9 2D 79 C7 97 AC D6 [19:48:33]CommunicateWithHost err = 0 [19:48:33]CheckOFDResponse [19:48:33]1017 (14) - 77093643461234 [19:48:33]1041 (16) - 0000000000874662 [19:48:33]1040 (4) - 72907 [19:48:33]1012 (4) - 30.10.2024 13:44 [19:48:33]1206 (1) - 0 [19:48:33]OFD Sender: Remove packet 72907 [19:48:33]ProducePacketName [19:48:33]name=ofd_packets/00072907 [19:48:33]NVStorageDeleteData [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:34]recv_with_timeout no data received [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:45]recv_with_timeout no data received [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:22]recv_with_timeout no data received [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:10]recv_with_timeout no data received [19:52:13]OFD Sender: No OFD packet to send [19:52:18]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:56]recv_with_timeout no data received [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:14]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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]recv_with_timeout no data received [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:13]recv_with_timeout no data received [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:37]recv_with_timeout no data received [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:43]recv_with_timeout no data received [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:43]recv_with_timeout no data received [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:07]recv_with_timeout no data received [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:46]recv_with_timeout no data received [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:00]recv_with_timeout no data received [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:12]recv_with_timeout no data received [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:38]recv_with_timeout no data received [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02: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:09]recv_with_timeout no data received [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:21]recv_with_timeout no data received [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:34]accept exits with 10 [20:03:34]New connection [20:03:34]New thread 3067338084 created [20:03:34]Thread 3067194724 joined [20:03:34]Waiting for new connection... [20:03:34] Sock 10.Parse request [20:03:34]Sock 10.Check first char [20:03:34]Sock 10.First char is OK [20:03:34]request: POST /json_proto HTTP/1.0 [20:03:34]Method: POST [20:03:34]URL: /json_proto [20:03:34]Method is POST - this is cgi request [20:03:34]url: /json_proto [20:03:34]query_string will be loaded in cgi processing [20:03:34]execute_cgi json_proto POST (null) [20:03:34]execute_cgi path=json_proto method=POST [20:03:34]POST find Content-Length [20:03:34]Host: 172.17.43.195:8080 [20:03:34]Content-Length: 843 [20:03:34]Content-Type: application/json [20:03:34] [20:03:34]POST finish read [20:03:34]Found Content-Length = 843 [20:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:34]execute_script... [20:03:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:34]POST & json_proto [20:03:34]process_json_proto [20:03:34]json parsed OK: [20:03:34]protocol is kg_v1.0 [20:03:34]action value=close_receipt [20:03:34]process_action close_receipt [20:03:34]cmd_close_receipt [20:03:34]MH_GetDate [20:03:34]Write to MH i2c: F0 00 00 04 03 F6 [20:03:34]Write i2c OK [20:03:34]MH_I2C_Read... [20:03:34]Read from MH i2c: F0 [20:03:34]MH_I2C_Read... [20:03:34]Read from MH i2c: F0 09 00 [20:03:34]MH_I2C_Read... [20:03:34]Read from MH i2c: F0 09 00 04 03 00 17 91 22 67 74 2C AD 66 E3 [20:03:34]GetLastDocTimeStamp 1730317708 [20:03:34]current date 1730318615 [20:03:34]FM_GetShiftState [20:03:34]SAM_PROTO_GetShiftState [20:03:34]wFMCommunicate request_size=4 [20:03:34]MH_SAM_APDU [20:03:34]CAPDU: 80 13 01 00 [20:03:34]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [20:03:34]Write i2c OK [20:03:34]MH_I2C_Read... [20:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:34]Read from MH i2c: E2 [20:03:34]MH_I2C_Read... [20:03:34]Read from MH i2c: E2 0E 00 [20:03:34]MH_I2C_Read... [20:03:34]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 57 [20:03:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:03:34]wFMCommunicate OK [20:03:34]SAM_PROTO_GetShiftState done [20:03:34]FM_GetShiftState done [20:03:34]opened in 1730247109 [20:03:34]opened+sec_in_day 1730333509 [20:03:34]quantity*price = 400012 [20:03:34]sum+1 = 400013 [20:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.12 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.12 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 145 30.10.2024 20:03 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72908 ФПД: 111297326251407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T200335&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72908&fm=111297326251407&tin=02508201610067®Number=0000000000091644&sum=400012 [20:03:35]StoreToDocumentArchive [20:03:35]shift 556 fd 72908 [20:03:35]save to /storage/0556/doc_00072908 [20:03:35]save last doc name /storage/0556/doc_00072908 to /storage/kkm_last_doc_name [20:03:35]save OK [20:03:35]Clear old archive folders... [20:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:35]tlvbuf is 0071B0D0 [20:03:35]SAM_PROTO_ClearQueue [20:03:35]wFMCommunicate request_size=4 [20:03:35]MH_SAM_APDU [20:03:35]CAPDU: 80 09 00 00 [20:03:35]Write to MH i2c: E2 08 00 12 03 80 09 00 00 00 00 00 00 87 [20:03:35]Write i2c OK [20:03:35]MH_I2C_Read... [20:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:35]Read from MH i2c: E2 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 03 00 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [20:03:35]RAPDU: 90 00 [20:03:35]wFMCommunicate OK [20:03:35]SAM_PROTO_ClearQueue done [20:03:35]KKMCreateOFDPacket [20:03:35]OFDProtocolAddRootSTLVToBuf [20:03:35]FM_MakeSignedData [20:03:35]FM_MakeSignedData [20:03:35]SAM_PROTO_SignData [20:03:35]wFMCommunicate request_size=4 [20:03:35]MH_SAM_APDU [20:03:35]CAPDU: 80 0D 01 02 [20:03:35]Write to MH i2c: E2 08 00 13 03 80 0D 01 02 00 00 00 00 8F [20:03:35]Write i2c OK [20:03:35]MH_I2C_Read... [20:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:35]Read from MH i2c: E2 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 03 00 [20:03:35]MH_I2C_Read... [20:03:35]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [20:03:35]RAPDU: 90 00 [20:03:35]wFMCommunicate OK [20:03:35]wFMCommunicate request_size=255 [20:03:35]MH_SAM_APDU [20:03:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 17 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1C 01 00 35 04 06 00 65 [20:03:35]Write to MH i2c: E2 02 01 14 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 17 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1C 01 00 35 04 06 00 65 00 00 D2 [20:03:35]Write i2c OK [20:03:35]MH_I2C_Read... [20:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:36]Read from MH i2c: E2 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [20:03:36]RAPDU: 90 00 [20:03:36]wFMCommunicate OK [20:03:36]wFMCommunicate request_size=10 [20:03:36]MH_SAM_APDU [20:03:36]CAPDU: 80 0D 02 02 05 39 6D 98 7D 8F [20:03:36]Write to MH i2c: E2 0D 00 15 03 80 0D 02 02 05 00 39 6D 98 7D 8F 00 00 E6 [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:36]Read from MH i2c: E2 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [20:03:36]RAPDU: 90 00 [20:03:36]wFMCommunicate OK [20:03:36]wFMCommunicate request_size=4 [20:03:36]MH_SAM_APDU [20:03:36]CAPDU: 80 0D 03 02 [20:03:36]Write to MH i2c: E2 08 00 16 03 80 0D 03 02 00 00 00 00 94 [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:36]Read from MH i2c: E2 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 0B 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 0B 00 16 03 00 B0 74 A3 08 1E 69 5C FD 90 00 44 [20:03:36]RAPDU: B0 74 A3 08 1E 69 5C FD 90 00 [20:03:36]wFMCommunicate OK [20:03:36]SAM_PROTO_SignData done [20:03:36]FM_MakeSignedData done [20:03:36]CreateOFDProtocolMessage [20:03:36]wFMCommunicate request_size=4 [20:03:36]MH_SAM_APDU [20:03:36]CAPDU: 80 11 00 00 [20:03:36]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:36]Read from MH i2c: E2 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 17 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E8 [20:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:03:36]wFMCommunicate OK [20:03:36]CreateOFDProtocolMessage done [20:03:36]OFDSenderStorePacket 72908 [20:03:36]StoreOFDPacket docnum=72908 [20:03:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B2 F3 07 01 EF 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 17 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1C 01 00 35 04 06 00 65 39 6D 98 7D 8F B0 74 A3 08 1E 69 5C FD [20:03:36]CheckFolder [20:03:36]dirname=/storage/ofd_packets [20:03:36]CheckFolder done [20:03:36]ProducePacketName [20:03:36]name=ofd_packets/00072908 [20:03:36]NVStorageSaveData ofd_packets/00072908 [20:03:36]File name is /storage/ofd_packets/00072908 [20:03:36]Write 301 bytes [20:03:36]NVStorageSaveData done [20:03:36]OFDSenderStorePacket done [20:03:36]KKMCreateOFDPacket done [20:03:36]NVStorageSaveData kkm_last_timestamp [20:03:36]File name is /storage/kkm_last_timestamp [20:03:36]Write 4 bytes [20:03:36]NVStorageSaveData done [20:03:36]ExternCall_PrintAddStr [20:03:36]wPrintStart [20:03:36]Write to MH i2c: 01 00 00 18 03 1B [20:03:36]OFD Sender: Processing packet 72908 [packets to send 279, broken 278] [20:03:36]ProducePacketName [20:03:36]name=ofd_packets/00072908 [20:03:36]OFD Sender: To server: pG, [20:03:36]CommunicateWithHost lk.salyk.kg:30040 [20:03:36]ConnectInit lk.salyk.kg [20:03:36]Write i2c OK [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: 01 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: 01 07 00 [20:03:36]MH_I2C_Read... [20:03:36]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 FF 0F 30 [20:03:36]RasterBufferAndPrint [20:03:36]line Счет N : (1)952504 [20:03:36]line ИНН: 02508201610067 [20:03:36]line Контрольно-Кассовый Чек [20:03:36]line ПРОДАЖА [20:03:36]line ТРК (МРК, ГНК) : 52 [20:03:36]line Товар: 2710124500 [20:03:36]line Аи-95-К-3 [20:03:36]line 53.910 * 74.20 [20:03:36]line = 4000.12 [20:03:36]line НДС 12% НСП 1% [20:03:36]line > о реализуемом товаре [20:03:36]line ИТОГО: 4000.12 [20:03:36]line НСП 1% : 35.40 [20:03:36]line НДС 12% : 424.79 [20:03:36]line Наличными: 0.00 [20:03:36]line Безнал.: 4000.12 [20:03:36]line Место: АЗС № 113 "Партнер Нефть" [20:03:36]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:03:36]line СНО: Общий режим [20:03:36]line Чек 145 30.10.2024 20:03 [20:03:36]line Смена: 556 ФФД: 1.0 [20:03:36]line ЗНМ: 0300000087 [20:03:36]line РНМ: 0000000000091644 [20:03:36]line Версия ККМ: 001 [20:03:36]line Платежная система: АКБ Кыргызстан [20:03:36]line ФМ: 0000000000874662 [20:03:36]line ФД: 72908 [20:03:36]line ФПД: 111297326251407 [20:03:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T200335&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72908&fm=111297326251407&tin=02508201610067®Number=0000000000091644&sum=400012 [20:03:36]written 0, free lines is 4095 [20:03:37]Write to MH i2c: 01 00 00 42 03 45 [20:03:37]Write i2c OK [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: 01 [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: 01 07 00 [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 E4 0C 3C [20:03:37]RasterBufferAndPrint [20:03:37]line [20:03:37]line [20:03:37]line [20:03:37]line [20:03:37]line [20:03:37]written 0, free lines is 3307 [20:03:37]MH_Cut [20:03:37]Write to MH i2c: D1 01 00 49 03 01 1E [20:03:37]Write i2c OK [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: D1 [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: D1 01 00 [20:03:37]MH_I2C_Read... [20:03:37]Read from MH i2c: D1 01 00 49 03 00 1D [20:03:37]Write to MH i2c: 01 00 00 4A 03 4D [20:03:37]Write i2c OK [20:03:37]MH_I2C_Read... [20:03:37]*** Cut start [20:03:37]*** Partial cut [20:03:37]*** CUTSNS_PIN = 1 [20:03:38]*** CUTSNS_PIN = 0 [20:03:38]*** Brake cut motor [20:03:38]Read from MH i2c: 01 [20:03:38]MH_I2C_Read... [20:03:38]*** Stop cut motor [20:03:38]*** Cut end [20:03:38]Read from MH i2c: 01 07 00 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 FF 0F 62 [20:03:38]process_action close_receipt done [20:03:38]requested_data is exist [20:03:38]produce_requested_data [20:03:38]requested_item fm.sn is exist - process it [20:03:38]wFMCommunicate request_size=4 [20:03:38]MH_SAM_APDU [20:03:38]CAPDU: 80 11 00 00 [20:03:38]Write to MH i2c: E2 08 00 4B 03 80 11 00 00 00 00 00 00 C8 [20:03:38]Write i2c OK [20:03:38]MH_I2C_Read... [20:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:38]Read from MH i2c: E2 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: E2 17 00 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: E2 17 00 4B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1C [20:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:03:38]wFMCommunicate OK [20:03:38]requested_item fd.num is exist - process it [20:03:38]SAM_PROTO_GetFieldsCounters [20:03:38]wFMCommunicate request_size=4 [20:03:38]MH_SAM_APDU [20:03:38]CAPDU: 80 13 00 00 [20:03:38]Write to MH i2c: E2 08 00 4C 03 80 13 00 00 00 00 00 00 CB [20:03:38]Write i2c OK [20:03:38]MH_I2C_Read... [20:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:38]Read from MH i2c: E2 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: E2 62 00 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: E2 62 00 4C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CC 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [20:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CC 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:03:38]wFMCommunicate OK [20:03:38]SAM_PROTO_GetFieldsCounters done [20:03:38]requested_item shift.num is exist - process it [20:03:38]requested_item shift.opened is exist - process it [20:03:38]req_shift_opened [20:03:38]FM_GetShiftState [20:03:38]SAM_PROTO_GetShiftState [20:03:38]wFMCommunicate request_size=4 [20:03:38]MH_SAM_APDU [20:03:38]CAPDU: 80 13 01 00 [20:03:38]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [20:03:38]Write i2c OK [20:03:38]MH_I2C_Read... [20:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:38]Read from MH i2c: E2 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: E2 0E 00 [20:03:38]MH_I2C_Read... [20:03:38]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 9F [20:03:38]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:03:38]wFMCommunicate OK [20:03:38]SAM_PROTO_GetShiftState done [20:03:38]FM_GetShiftState done [20:03:38]req_shift_opened done [20:03:38]requested_item shift.open_date is exist - process it [20:03:38]req_shift_open_date [20:03:38]req_shift_open_date done [20:03:38]produce_requested_data done [20:03:38]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72908,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [20:03:38]process_action_free close_receipt [20:03:38]json_value_free [20:03:38]json_value_free done [20:03:38]process_json_proto returns [20:03:38]Send response to host [20:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72908,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [20:03:38]free response buf [20:03:38]execute_script done [20:03:38]execute_script returns [20:03:38]free content buf [20:03:38]Sock 10.Close socket [20:03:38]Sock 10.Thread stoped [20:03:40]Connected sock=7 [20:03:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B2 F3 07 01 EF 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 17 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1C 01 00 35 04 06 00 65 39 6D 98 7D 8F B0 74 A3 08 1E 69 5C FD [20:03:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 AF 55 47 00 9D 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1C 01 00 F4 03 04 00 D2 3B 22 67 B6 04 01 00 00 D0 DA 3E B9 E8 2A 9B 2F [20:03:40]CommunicateWithHost err = 0 [20:03:40]CheckOFDResponse [20:03:40]1017 (14) - 77093643461234 [20:03:40]1041 (16) - 0000000000874662 [20:03:40]1040 (4) - 72908 [20:03:40]1012 (4) - 30.10.2024 13:59 [20:03:40]1206 (1) - 0 [20:03:41]OFD Sender: Remove packet 72908 [20:03:41]ProducePacketName [20:03:41]name=ofd_packets/00072908 [20:03:41]NVStorageDeleteData [20:03:41]OFD Sender: No OFD packet to send [20:03:45]recv_with_timeout no data received [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]recv_with_timeout no data received [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:42]recv_with_timeout no data received [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:18]recv_with_timeout no data received [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:28]recv_with_timeout no data received [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:43]accept exits with 9 [20:05:43]New connection [20:05:43]New thread 3067194724 created [20:05:43]Thread 3067338084 joined [20:05:43]Waiting for new connection... [20:05:43] Sock 9.Parse request [20:05:43]Sock 9.Check first char [20:05:43]Sock 9.First char is OK [20:05:43]request: POST /json_proto HTTP/1.0 [20:05:43]Method: POST [20:05:43]URL: /json_proto [20:05:43]Method is POST - this is cgi request [20:05:43]url: /json_proto [20:05:43]query_string will be loaded in cgi processing [20:05:43]execute_cgi json_proto POST (null) [20:05:43]execute_cgi path=json_proto method=POST [20:05:43]POST find Content-Length [20:05:43]Host: 172.17.43.195:8080 [20:05:43]Content-Length: 754 [20:05:43]Content-Type: application/json [20:05:43] [20:05:43]POST finish read [20:05:43]Found Content-Length = 754 [20:05:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:43]execute_script... [20:05:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:43]POST & json_proto [20:05:43]process_json_proto [20:05:43]json parsed OK: [20:05:43]protocol is kg_v1.0 [20:05:43]action value=close_receipt [20:05:43]process_action close_receipt [20:05:43]cmd_close_receipt [20:05:43]MH_GetDate [20:05:43]Write to MH i2c: F0 00 00 4E 03 40 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: F0 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: F0 09 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: F0 09 00 4E 03 00 97 91 22 67 74 2C AD 66 AD [20:05:43]GetLastDocTimeStamp 1730318615 [20:05:43]current date 1730318743 [20:05:43]FM_GetShiftState [20:05:43]SAM_PROTO_GetShiftState [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 13 01 00 [20:05:43]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0E 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A1 [20:05:43]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:05:43]wFMCommunicate OK [20:05:43]SAM_PROTO_GetShiftState done [20:05:43]FM_GetShiftState done [20:05:43]opened in 1730247109 [20:05:43]opened+sec_in_day 1730333509 [20:05:43]quantity*price = 0 [20:05:43]sum+1 = 1 [20:05:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 146 30.10.2024 20:05 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30005682 ФМ: 0000000000874662 ФД: 72909 ФПД: 280259671959510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T200543&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72909&fm=280259671959510&tin=02508201610067®Number=0000000000091644&sum=0 [20:05:44]StoreToDocumentArchive [20:05:44]shift 556 fd 72909 [20:05:44]save to /storage/0556/doc_00072909 [20:05:44]save last doc name /storage/0556/doc_00072909 to /storage/kkm_last_doc_name [20:05:44]save OK [20:05:44]Clear old archive folders... [20:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:44]tlvbuf is 0071CAE0 [20:05:44]SAM_PROTO_ClearQueue [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 09 00 00 [20:05:44]Write to MH i2c: E2 08 00 5C 03 80 09 00 00 00 00 00 00 D1 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]SAM_PROTO_ClearQueue done [20:05:44]KKMCreateOFDPacket [20:05:44]OFDProtocolAddRootSTLVToBuf [20:05:44]FM_MakeSignedData [20:05:44]FM_MakeSignedData [20:05:44]SAM_PROTO_SignData [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 01 02 [20:05:44]Write to MH i2c: E2 08 00 5D 03 80 0D 01 02 00 00 00 00 D9 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]wFMCommunicate request_size=255 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 92 00 00 00 F4 03 04 00 97 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1C 01 00 35 04 06 00 FE [20:05:44]Write to MH i2c: E2 02 01 5E 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 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 92 00 00 00 F4 03 04 00 97 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1C 01 00 35 04 06 00 FE 00 00 73 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]wFMCommunicate request_size=10 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 02 02 05 E5 0A 31 27 D6 [20:05:44]Write to MH i2c: E2 0D 00 5F 03 80 0D 02 02 05 00 E5 0A 31 27 D6 00 00 03 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [20:05:44]RAPDU: 90 00 [20:05:44]wFMCommunicate OK [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 0D 03 02 [20:05:44]Write to MH i2c: E2 08 00 60 03 80 0D 03 02 00 00 00 00 DE [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 0B 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 0B 00 60 03 00 09 35 AD 0E 89 99 9F 70 90 00 09 [20:05:44]RAPDU: 09 35 AD 0E 89 99 9F 70 90 00 [20:05:44]wFMCommunicate OK [20:05:44]SAM_PROTO_SignData done [20:05:44]FM_MakeSignedData done [20:05:44]CreateOFDProtocolMessage [20:05:44]wFMCommunicate request_size=4 [20:05:44]MH_SAM_APDU [20:05:44]CAPDU: 80 11 00 00 [20:05:44]Write to MH i2c: E2 08 00 61 03 80 11 00 00 00 00 00 00 DE [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:44]Read from MH i2c: E2 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 17 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: E2 17 00 61 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [20:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:05:44]wFMCommunicate OK [20:05:44]CreateOFDProtocolMessage done [20:05:44]OFDSenderStorePacket 72909 [20:05:44]StoreOFDPacket docnum=72909 [20:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C6 03 07 01 0A 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 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 92 00 00 00 F4 03 04 00 97 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1C 01 00 35 04 06 00 FE E5 0A 31 27 D6 09 35 AD 0E 89 99 9F 70 [20:05:44]CheckFolder [20:05:44]dirname=/storage/ofd_packets [20:05:44]CheckFolder done [20:05:44]ProducePacketName [20:05:44]name=ofd_packets/00072909 [20:05:44]NVStorageSaveData ofd_packets/00072909 [20:05:44]File name is /storage/ofd_packets/00072909 [20:05:44]Write 301 bytes [20:05:44]NVStorageSaveData done [20:05:44]OFDSenderStorePacket done [20:05:44]KKMCreateOFDPacket done [20:05:44]NVStorageSaveData kkm_last_timestamp [20:05:44]File name is /storage/kkm_last_timestamp [20:05:44]Write 4 bytes [20:05:44]NVStorageSaveData done [20:05:44]OFD Sender: Processing packet 72909 [packets to send 279, broken 278] [20:05:44]ProducePacketName [20:05:44]name=ofd_packets/00072909 [20:05:44]OFD Sender: To server: pG, [20:05:44]CommunicateWithHost lk.salyk.kg:30040 [20:05:44]ConnectInit lk.salyk.kg [20:05:44]ExternCall_PrintAddStr [20:05:44]wPrintStart [20:05:44]Write to MH i2c: 01 00 00 62 03 65 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: 01 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: 01 07 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: 01 07 00 62 03 00 00 00 00 00 FF 0F 7A [20:05:44]RasterBufferAndPrint [20:05:44]line Счет N : (1)952505 [20:05:44]line ИНН: 02508201610067 [20:05:44]line Контрольно-Кассовый Чек [20:05:44]line ПРОДАЖА [20:05:44]line ТРК (МРК, ГНК) : 63 [20:05:44]line Товар: 2710124130 [20:05:44]line Аи-92-К-5 [20:05:44]line 10.000 * 0.00 [20:05:44]line = 0.00 [20:05:44]line НДС 12% НСП 1% [20:05:44]line > о реализуемом товаре [20:05:44]line ИТОГО: 0.00 [20:05:44]line НСП 1% : 0.00 [20:05:44]line НДС 12% : 0.00 [20:05:44]line Наличными: 0.00 [20:05:44]line Безнал.: 0.00 [20:05:44]line Место: АЗС № 113 "Партнер Нефть" [20:05:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:05:44]line СНО: Общий режим [20:05:44]line Чек 146 30.10.2024 20:05 [20:05:44]line Смена: 556 ФФД: 1.0 [20:05:44]line ЗНМ: 0300000087 [20:05:44]line РНМ: 0000000000091644 [20:05:44]line Версия ККМ: 001 [20:05:44]line Талоны: ТК ГПНА Online [20:05:44]line 30005682 [20:05:44]line ФМ: 0000000000874662 [20:05:44]line ФД: 72909 [20:05:44]line ФПД: 280259671959510 [20:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T200543&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72909&fm=280259671959510&tin=02508201610067®Number=0000000000091644&sum=0 [20:05:45]written 0, free lines is 4095 [20:05:45]Write to MH i2c: 01 00 00 8C 03 8F [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 07 00 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 07 00 8C 03 00 00 00 00 00 D8 0C 7A [20:05:45]RasterBufferAndPrint [20:05:45]line [20:05:45]line [20:05:45]line [20:05:45]line [20:05:45]line [20:05:45]written 0, free lines is 3294 [20:05:45]MH_Cut [20:05:45]Write to MH i2c: D1 01 00 93 03 01 68 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: D1 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: D1 01 00 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: D1 01 00 93 03 00 67 [20:05:45]Write to MH i2c: 01 00 00 94 03 97 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:46]*** Cut start [20:05:46]*** Partial cut [20:05:46]*** CUTSNS_PIN = 1 [20:05:46]*** CUTSNS_PIN = 0 [20:05:46]Connected sock=11 [20:05:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C6 03 07 01 0A 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 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 92 00 00 00 F4 03 04 00 97 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1C 01 00 35 04 06 00 FE E5 0A 31 27 D6 09 35 AD 0E 89 99 9F 70 [20:05:46]*** Brake cut motor [20:05:47]Read from MH i2c: 01 [20:05:47]MH_I2C_Read... [20:05:47]*** Stop cut motor [20:05:47]*** Cut end [20:05:47]Read from MH i2c: 01 07 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 FF 0F AC [20:05:47]process_action close_receipt done [20:05:47]requested_data is exist [20:05:47]produce_requested_data [20:05:47]requested_item fm.sn is exist - process it [20:05:47]wFMCommunicate request_size=4 [20:05:47]MH_SAM_APDU [20:05:47]CAPDU: 80 11 00 00 [20:05:47]Write to MH i2c: E2 08 00 95 03 80 11 00 00 00 00 00 00 12 [20:05:47]Write i2c OK [20:05:47]MH_I2C_Read... [20:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:47]Read from MH i2c: E2 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 17 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 17 00 95 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [20:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:05:47]wFMCommunicate OK [20:05:47]requested_item fd.num is exist - process it [20:05:47]SAM_PROTO_GetFieldsCounters [20:05:47]wFMCommunicate request_size=4 [20:05:47]MH_SAM_APDU [20:05:47]CAPDU: 80 13 00 00 [20:05:47]Write to MH i2c: E2 08 00 96 03 80 13 00 00 00 00 00 00 15 [20:05:47]Write i2c OK [20:05:47]MH_I2C_Read... [20:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:47]Read from MH i2c: E2 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 62 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 62 00 96 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CD 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [20:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CD 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:47]wFMCommunicate OK [20:05:47]SAM_PROTO_GetFieldsCounters done [20:05:47]requested_item shift.num is exist - process it [20:05:47]requested_item shift.opened is exist - process it [20:05:47]req_shift_opened [20:05:47]FM_GetShiftState [20:05:47]SAM_PROTO_GetShiftState [20:05:47]wFMCommunicate request_size=4 [20:05:47]MH_SAM_APDU [20:05:47]CAPDU: 80 13 01 00 [20:05:47]Write to MH i2c: E2 08 00 97 03 80 13 01 00 00 00 00 00 17 [20:05:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6F 7D 47 00 FA 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1C 01 00 F4 03 04 00 51 3C 22 67 B6 04 01 00 00 7A 64 FC C2 74 B9 0D CA [20:05:47]CommunicateWithHost err = 0 [20:05:47]CheckOFDResponse [20:05:47]1017 (14) - 77093643461234 [20:05:47]1041 (16) - 0000000000874662 [20:05:47]1040 (4) - 72909 [20:05:47]1012 (4) - 30.10.2024 14:01 [20:05:47]1206 (1) - 0 [20:05:47]OFD Sender: Remove packet 72909 [20:05:47]ProducePacketName [20:05:47]name=ofd_packets/00072909 [20:05:47]NVStorageDeleteData [20:05:47]Write i2c OK [20:05:47]MH_I2C_Read... [20:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:47]Read from MH i2c: E2 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 0E 00 [20:05:47]MH_I2C_Read... [20:05:47]Read from MH i2c: E2 0E 00 97 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E9 [20:05:47]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:05:47]wFMCommunicate OK [20:05:47]SAM_PROTO_GetShiftState done [20:05:47]FM_GetShiftState done [20:05:47]req_shift_opened done [20:05:47]requested_item shift.open_date is exist - process it [20:05:47]req_shift_open_date [20:05:47]req_shift_open_date done [20:05:47]produce_requested_data done [20:05:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72909,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [20:05:47]process_action_free close_receipt [20:05:47]json_value_free [20:05:47]json_value_free done [20:05:47]process_json_proto returns [20:05:47]Send response to host [20:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72909,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [20:05:47]free response buf [20:05:47]execute_script done [20:05:47]execute_script returns [20:05:47]free content buf [20:05:47]Sock 9.Close socket [20:05:47]Sock 9.Thread stoped [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:06]recv_with_timeout no data received [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:21]recv_with_timeout no data received [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]recv_with_timeout no data received [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:19]recv_with_timeout no data received [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:53]OFD Sender: No OFD packet to send [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:34]recv_with_timeout no data received [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:50]recv_with_timeout no data received [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:10]recv_with_timeout no data received [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:40]recv_with_timeout no data received [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:43]recv_with_timeout no data received [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:16]recv_with_timeout no data received [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:00]recv_with_timeout no data received [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:37]recv_with_timeout no data received [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:57]recv_with_timeout no data received [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]recv_with_timeout no data received [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:15]recv_with_timeout no data received [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:10]recv_with_timeout no data received [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]recv_with_timeout no data received [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:19]recv_with_timeout no data received [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:51]recv_with_timeout no data received [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:51]recv_with_timeout no data received [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:03]recv_with_timeout no data received [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:42]recv_with_timeout no data received [20:21:42]accept exits with 10 [20:21:42]New connection [20:21:42]New thread 3067338084 created [20:21:42]Thread 3067194724 joined [20:21:42]Waiting for new connection... [20:21:42] Sock 10.Parse request [20:21:42]Sock 10.Check first char [20:21:42]Sock 10.First char is OK [20:21:42]request: POST /json_proto HTTP/1.0 [20:21:42]Method: POST [20:21:42]URL: /json_proto [20:21:42]Method is POST - this is cgi request [20:21:42]url: /json_proto [20:21:42]query_string will be loaded in cgi processing [20:21:42]execute_cgi json_proto POST (null) [20:21:42]execute_cgi path=json_proto method=POST [20:21:42]POST find Content-Length [20:21:42]Host: 172.17.43.195:8080 [20:21:42]Content-Length: 754 [20:21:42]Content-Type: application/json [20:21:42] [20:21:42]POST finish read [20:21:42]Found Content-Length = 754 [20:21:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:42]execute_script... [20:21:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005682", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:42]POST & json_proto [20:21:42]process_json_proto [20:21:42]json parsed OK: [20:21:42]protocol is kg_v1.0 [20:21:42]action value=close_receipt [20:21:42]process_action close_receipt [20:21:42]cmd_close_receipt [20:21:42]MH_GetDate [20:21:42]Write to MH i2c: F0 00 00 98 03 8A [20:21:42]Write i2c OK [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: F0 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: F0 09 00 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: F0 09 00 98 03 00 57 95 22 67 74 2C AD 66 BB [20:21:42]GetLastDocTimeStamp 1730318743 [20:21:42]current date 1730319703 [20:21:42]FM_GetShiftState [20:21:42]SAM_PROTO_GetShiftState [20:21:42]wFMCommunicate request_size=4 [20:21:42]MH_SAM_APDU [20:21:42]CAPDU: 80 13 01 00 [20:21:42]Write to MH i2c: E2 08 00 99 03 80 13 01 00 00 00 00 00 19 [20:21:42]Write i2c OK [20:21:42]MH_I2C_Read... [20:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:42]Read from MH i2c: E2 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: E2 0E 00 [20:21:42]MH_I2C_Read... [20:21:42]Read from MH i2c: E2 0E 00 99 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 EB [20:21:42]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:21:42]wFMCommunicate OK [20:21:42]SAM_PROTO_GetShiftState done [20:21:42]FM_GetShiftState done [20:21:42]opened in 1730247109 [20:21:42]opened+sec_in_day 1730333509 [20:21:42]quantity*price = 0 [20:21:42]sum+1 = 1 [20:21:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 147 30.10.2024 20:21 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30005682 ФМ: 0000000000874662 ФД: 72910 ФПД: 126515800040990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202143&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72910&fm=126515800040990&tin=02508201610067®Number=0000000000091644&sum=0 [20:21:43]StoreToDocumentArchive [20:21:43]shift 556 fd 72910 [20:21:43]save to /storage/0556/doc_00072910 [20:21:43]save last doc name /storage/0556/doc_00072910 to /storage/kkm_last_doc_name [20:21:43]save OK [20:21:43]Clear old archive folders... [20:21:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:43]tlvbuf is 0071E730 [20:21:43]SAM_PROTO_ClearQueue [20:21:43]wFMCommunicate request_size=4 [20:21:43]MH_SAM_APDU [20:21:43]CAPDU: 80 09 00 00 [20:21:43]Write to MH i2c: E2 08 00 A6 03 80 09 00 00 00 00 00 00 1B [20:21:43]Write i2c OK [20:21:43]MH_I2C_Read... [20:21:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:43]Read from MH i2c: E2 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 03 00 [20:21:43]MH_I2C_Read... [20:21:43]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [20:21:43]RAPDU: 90 00 [20:21:43]wFMCommunicate OK [20:21:43]SAM_PROTO_ClearQueue done [20:21:43]KKMCreateOFDPacket [20:21:43]OFDProtocolAddRootSTLVToBuf [20:21:43]FM_MakeSignedData [20:21:43]FM_MakeSignedData [20:21:43]SAM_PROTO_SignData [20:21:43]wFMCommunicate request_size=4 [20:21:43]MH_SAM_APDU [20:21:43]CAPDU: 80 0D 01 02 [20:21:43]Write to MH i2c: E2 08 00 A7 03 80 0D 01 02 00 00 00 00 23 [20:21:43]Write i2c OK [20:21:43]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [20:21:44]RAPDU: 90 00 [20:21:44]wFMCommunicate OK [20:21:44]wFMCommunicate request_size=255 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 93 00 00 00 F4 03 04 00 57 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1C 01 00 35 04 06 00 73 [20:21:44]Write to MH i2c: E2 02 01 A8 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 98 3A 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 93 00 00 00 F4 03 04 00 57 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1C 01 00 35 04 06 00 73 00 00 93 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [20:21:44]RAPDU: 90 00 [20:21:44]wFMCommunicate OK [20:21:44]wFMCommunicate request_size=10 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 0D 02 02 05 10 C1 51 E6 1E [20:21:44]Write to MH i2c: E2 0D 00 A9 03 80 0D 02 02 05 00 10 C1 51 E6 1E 00 00 56 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [20:21:44]RAPDU: 90 00 [20:21:44]wFMCommunicate OK [20:21:44]wFMCommunicate request_size=4 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 0D 03 02 [20:21:44]Write to MH i2c: E2 08 00 AA 03 80 0D 03 02 00 00 00 00 28 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 0B 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 0B 00 AA 03 00 BF 31 49 85 38 F4 FE F7 90 00 08 [20:21:44]RAPDU: BF 31 49 85 38 F4 FE F7 90 00 [20:21:44]wFMCommunicate OK [20:21:44]SAM_PROTO_SignData done [20:21:44]FM_MakeSignedData done [20:21:44]CreateOFDProtocolMessage [20:21:44]wFMCommunicate request_size=4 [20:21:44]MH_SAM_APDU [20:21:44]CAPDU: 80 11 00 00 [20:21:44]Write to MH i2c: E2 08 00 AB 03 80 11 00 00 00 00 00 00 28 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]OFD Sender: No OFD packet to send [20:21:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:44]Read from MH i2c: E2 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 17 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: E2 17 00 AB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [20:21:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:21:44]wFMCommunicate OK [20:21:44]CreateOFDProtocolMessage done [20:21:44]OFDSenderStorePacket 72910 [20:21:44]StoreOFDPacket docnum=72910 [20:21:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AD 19 07 01 A9 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 93 00 00 00 F4 03 04 00 57 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1C 01 00 35 04 06 00 73 10 C1 51 E6 1E BF 31 49 85 38 F4 FE F7 [20:21:44]CheckFolder [20:21:44]dirname=/storage/ofd_packets [20:21:44]CheckFolder done [20:21:44]ProducePacketName [20:21:44]name=ofd_packets/00072910 [20:21:44]NVStorageSaveData ofd_packets/00072910 [20:21:44]File name is /storage/ofd_packets/00072910 [20:21:44]Write 301 bytes [20:21:44]NVStorageSaveData done [20:21:44]OFDSenderStorePacket done [20:21:44]KKMCreateOFDPacket done [20:21:44]NVStorageSaveData kkm_last_timestamp [20:21:44]File name is /storage/kkm_last_timestamp [20:21:44]Write 4 bytes [20:21:44]NVStorageSaveData done [20:21:44]ExternCall_PrintAddStr [20:21:44]wPrintStart [20:21:44]Write to MH i2c: 01 00 00 AC 03 AF [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: 01 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: 01 07 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 FF 0F C4 [20:21:44]RasterBufferAndPrint [20:21:44]line Счет N : (1)952506 [20:21:44]line ИНН: 02508201610067 [20:21:44]line Контрольно-Кассовый Чек [20:21:44]line ПРОДАЖА [20:21:44]line ТРК (МРК, ГНК) : 53 [20:21:44]line Товар: 2710124130 [20:21:44]line Аи-92-К-5 [20:21:44]line 15.000 * 0.00 [20:21:44]line = 0.00 [20:21:44]line НДС 12% НСП 1% [20:21:44]line > о реализуемом товаре [20:21:44]line ИТОГО: 0.00 [20:21:44]line НСП 1% : 0.00 [20:21:44]line НДС 12% : 0.00 [20:21:44]line Наличными: 0.00 [20:21:44]line Безнал.: 0.00 [20:21:44]line Место: АЗС № 113 "Партнер Нефть" [20:21:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:21:44]line СНО: Общий режим [20:21:44]line Чек 147 30.10.2024 20:21 [20:21:44]line Смена: 556 ФФД: 1.0 [20:21:44]line ЗНМ: 0300000087 [20:21:44]line РНМ: 0000000000091644 [20:21:44]line Версия ККМ: 001 [20:21:44]line Талоны: ТК ГПНА Online [20:21:44]line 30005682 [20:21:44]line ФМ: 0000000000874662 [20:21:44]line ФД: 72910 [20:21:44]line ФПД: 126515800040990 [20:21:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202143&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72910&fm=126515800040990&tin=02508201610067®Number=0000000000091644&sum=0 [20:21:44]written 0, free lines is 4095 [20:21:44]OFD Sender: Processing packet 72910 [packets to send 279, broken 278] [20:21:44]ProducePacketName [20:21:44]name=ofd_packets/00072910 [20:21:44]OFD Sender: To server: pG, [20:21:44]CommunicateWithHost lk.salyk.kg:30040 [20:21:44]ConnectInit lk.salyk.kg [20:21:44]Write to MH i2c: 01 00 00 D6 03 D9 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: 01 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: 01 07 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: 01 07 00 D6 03 00 00 00 00 00 DD 0C C9 [20:21:44]RasterBufferAndPrint [20:21:44]line [20:21:44]line [20:21:44]line [20:21:44]line [20:21:44]line [20:21:44]written 0, free lines is 3299 [20:21:44]MH_Cut [20:21:44]Write to MH i2c: D1 01 00 DD 03 01 B2 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: D1 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: D1 01 00 [20:21:44]MH_I2C_Read... [20:21:44]Read from MH i2c: D1 01 00 DD 03 00 B1 [20:21:44]Write to MH i2c: 01 00 00 DE 03 E1 [20:21:44]Write i2c OK [20:21:44]MH_I2C_Read... [20:21:45]*** Cut start [20:21:45]*** Partial cut [20:21:45]*** CUTSNS_PIN = 1 [20:21:45]*** CUTSNS_PIN = 0 [20:21:45]*** Brake cut motor [20:21:46]Connected sock=9 [20:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AD 19 07 01 A9 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 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 93 00 00 00 F4 03 04 00 57 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1C 01 00 35 04 06 00 73 10 C1 51 E6 1E BF 31 49 85 38 F4 FE F7 [20:21:46]Read from MH i2c: 01 [20:21:46]MH_I2C_Read... [20:21:46]*** Stop cut motor [20:21:46]*** Cut end [20:21:46]Read from MH i2c: 01 07 00 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 FF 0F F6 [20:21:46]process_action close_receipt done [20:21:46]requested_data is exist [20:21:46]produce_requested_data [20:21:46]requested_item fm.sn is exist - process it [20:21:46]wFMCommunicate request_size=4 [20:21:46]MH_SAM_APDU [20:21:46]CAPDU: 80 11 00 00 [20:21:46]Write to MH i2c: E2 08 00 DF 03 80 11 00 00 00 00 00 00 5C [20:21:46]Write i2c OK [20:21:46]MH_I2C_Read... [20:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:46]Read from MH i2c: E2 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: E2 17 00 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: E2 17 00 DF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B0 [20:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:21:46]wFMCommunicate OK [20:21:46]requested_item fd.num is exist - process it [20:21:46]SAM_PROTO_GetFieldsCounters [20:21:46]wFMCommunicate request_size=4 [20:21:46]MH_SAM_APDU [20:21:46]CAPDU: 80 13 00 00 [20:21:46]Write to MH i2c: E2 08 00 E0 03 80 13 00 00 00 00 00 00 5F [20:21:46]Write i2c OK [20:21:46]MH_I2C_Read... [20:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:46]Read from MH i2c: E2 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: E2 62 00 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: E2 62 00 E0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CE 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [20:21:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CE 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:46]wFMCommunicate OK [20:21:46]SAM_PROTO_GetFieldsCounters done [20:21:46]requested_item shift.num is exist - process it [20:21:46]requested_item shift.opened is exist - process it [20:21:46]req_shift_opened [20:21:46]FM_GetShiftState [20:21:46]SAM_PROTO_GetShiftState [20:21:46]wFMCommunicate request_size=4 [20:21:46]MH_SAM_APDU [20:21:46]CAPDU: 80 13 01 00 [20:21:46]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [20:21:46]Write i2c OK [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: E2 [20:21:46]MH_I2C_Read... [20:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:46]Read from MH i2c: E2 0E 00 [20:21:46]MH_I2C_Read... [20:21:46]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 33 [20:21:46]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:21:46]wFMCommunicate OK [20:21:46]SAM_PROTO_GetShiftState done [20:21:46]FM_GetShiftState done [20:21:46]req_shift_opened done [20:21:46]requested_item shift.open_date is exist - process it [20:21:46]req_shift_open_date [20:21:46]req_shift_open_date done [20:21:46]produce_requested_data done [20:21:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72910,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [20:21:46]process_action_free close_receipt [20:21:46]json_value_free [20:21:46]json_value_free done [20:21:46]process_json_proto returns [20:21:46]Send response to host [20:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72910,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [20:21:46]free response buf [20:21:46]execute_script done [20:21:46]execute_script returns [20:21:46]free content buf [20:21:46]Sock 10.Close socket [20:21:46]Sock 10.Thread stoped [20:21:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 5E CB 47 00 25 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1C 01 00 F4 03 04 00 10 40 22 67 B6 04 01 00 00 CA EA C5 82 88 DD 57 08 [20:21:46]CommunicateWithHost err = 0 [20:21:46]CheckOFDResponse [20:21:46]1017 (14) - 77093643461234 [20:21:46]1041 (16) - 0000000000874662 [20:21:46]1040 (4) - 72910 [20:21:46]1012 (4) - 30.10.2024 14:17 [20:21:46]1206 (1) - 0 [20:21:46]OFD Sender: Remove packet 72910 [20:21:46]ProducePacketName [20:21:46]name=ofd_packets/00072910 [20:21:46]NVStorageDeleteData [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:53]recv_with_timeout no data received [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:51]recv_with_timeout no data received [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:01]accept exits with 7 [20:23:01]New connection [20:23:01]New thread 3067194724 created [20:23:01]Thread 3067338084 joined [20:23:01]Waiting for new connection... [20:23:01] Sock 7.Parse request [20:23:01]Sock 7.Check first char [20:23:01]Sock 7.First char is OK [20:23:01]request: POST /json_proto HTTP/1.0 [20:23:01]Method: POST [20:23:01]URL: /json_proto [20:23:01]Method is POST - this is cgi request [20:23:01]url: /json_proto [20:23:01]query_string will be loaded in cgi processing [20:23:01]execute_cgi json_proto POST (null) [20:23:01]execute_cgi path=json_proto method=POST [20:23:01]POST find Content-Length [20:23:01]Host: 172.17.43.195:8080 [20:23:01]Content-Length: 773 [20:23:01]Content-Type: application/json [20:23:01] [20:23:01]POST finish read [20:23:01]Found Content-Length = 773 [20:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 0.00, "quantity" : 33.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\u000A46333", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:01]execute_script... [20:23: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)952507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 0.00, "quantity" : 33.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\u000A46333", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:01]POST & json_proto [20:23:01]process_json_proto [20:23:01]json parsed OK: [20:23:01]protocol is kg_v1.0 [20:23:01]action value=close_receipt [20:23:01]process_action close_receipt [20:23:01]cmd_close_receipt [20:23:01]MH_GetDate [20:23:01]Write to MH i2c: F0 00 00 E2 03 D4 [20:23:01]Write i2c OK [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: F0 [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: F0 09 00 [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: F0 09 00 E2 03 00 A6 95 22 67 74 2C AD 66 54 [20:23:01]GetLastDocTimeStamp 1730319703 [20:23:01]current date 1730319782 [20:23:01]FM_GetShiftState [20:23:01]SAM_PROTO_GetShiftState [20:23:01]wFMCommunicate request_size=4 [20:23:01]MH_SAM_APDU [20:23:01]CAPDU: 80 13 01 00 [20:23:01]Write to MH i2c: E2 08 00 E3 03 80 13 01 00 00 00 00 00 63 [20:23:01]Write i2c OK [20:23:01]MH_I2C_Read... [20:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:01]Read from MH i2c: E2 [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: E2 0E 00 [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: E2 0E 00 E3 03 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 35 [20:23:01]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:23:01]wFMCommunicate OK [20:23:01]SAM_PROTO_GetShiftState done [20:23:01]FM_GetShiftState done [20:23:01]opened in 1730247109 [20:23:01]opened+sec_in_day 1730333509 [20:23:01]quantity*price = 0 [20:23:01]sum+1 = 1 [20:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 148 30.10.2024 20:23 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 46333 ФМ: 0000000000874662 ФД: 72911 ФПД: 257219317558754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202302&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72911&fm=257219317558754&tin=02508201610067®Number=0000000000091644&sum=0 [20:23:02]StoreToDocumentArchive [20:23:02]shift 556 fd 72911 [20:23:02]save to /storage/0556/doc_00072911 [20:23:02]save last doc name /storage/0556/doc_00072911 to /storage/kkm_last_doc_name [20:23:02]save OK [20:23:02]Clear old archive folders... [20:23:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:23:02]tlvbuf is 0071C790 [20:23:02]SAM_PROTO_ClearQueue [20:23:02]wFMCommunicate request_size=4 [20:23:02]MH_SAM_APDU [20:23:02]CAPDU: 80 09 00 00 [20:23:02]Write to MH i2c: E2 08 00 F0 03 80 09 00 00 00 00 00 00 65 [20:23:02]Write i2c OK [20:23:02]MH_I2C_Read... [20:23:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:02]Read from MH i2c: E2 [20:23:02]MH_I2C_Read... [20:23:02]Read from MH i2c: E2 03 00 [20:23:02]MH_I2C_Read... [20:23:02]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [20:23:02]RAPDU: 90 00 [20:23:02]wFMCommunicate OK [20:23:02]SAM_PROTO_ClearQueue done [20:23:02]KKMCreateOFDPacket [20:23:02]OFDProtocolAddRootSTLVToBuf [20:23:02]FM_MakeSignedData [20:23:02]FM_MakeSignedData [20:23:02]SAM_PROTO_SignData [20:23:02]wFMCommunicate request_size=4 [20:23:02]MH_SAM_APDU [20:23:02]CAPDU: 80 0D 01 02 [20:23:02]Write to MH i2c: E2 08 00 F1 03 80 0D 01 02 00 00 00 00 6D [20:23:02]Write i2c OK [20:23:02]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [20:23:03]RAPDU: 90 00 [20:23:03]wFMCommunicate OK [20:23:03]wFMCommunicate request_size=253 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 E8 80 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 94 00 00 00 F4 03 04 00 A6 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CF 1C 01 00 35 04 06 00 E9 F0 8A 0D 6D E2 [20:23:03]Write to MH i2c: E2 00 01 F2 03 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 E8 80 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 94 00 00 00 F4 03 04 00 A6 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CF 1C 01 00 35 04 06 00 E9 F0 8A 0D 6D E2 00 00 79 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [20:23:03]RAPDU: 90 00 [20:23:03]wFMCommunicate OK [20:23:03]wFMCommunicate request_size=4 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 0D 03 02 [20:23:03]Write to MH i2c: E2 08 00 F3 03 80 0D 03 02 00 00 00 00 71 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 0B 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 0B 00 F3 03 00 DF 42 31 14 79 AC 75 88 90 00 FA [20:23:03]RAPDU: DF 42 31 14 79 AC 75 88 90 00 [20:23:03]wFMCommunicate OK [20:23:03]SAM_PROTO_SignData done [20:23:03]FM_MakeSignedData done [20:23:03]CreateOFDProtocolMessage [20:23:03]wFMCommunicate request_size=4 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 11 00 00 [20:23:03]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 17 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 17 00 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [20:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:23:03]wFMCommunicate OK [20:23:03]CreateOFDProtocolMessage done [20:23:03]OFDSenderStorePacket 72911 [20:23:03]StoreOFDPacket docnum=72911 [20:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 62 88 00 01 CA AE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 E8 80 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 94 00 00 00 F4 03 04 00 A6 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CF 1C 01 00 35 04 06 00 E9 F0 8A 0D 6D E2 DF 42 31 14 79 AC 75 88 [20:23:03]CheckFolder [20:23:03]dirname=/storage/ofd_packets [20:23:03]CheckFolder done [20:23:03]ProducePacketName [20:23:03]name=ofd_packets/00072911 [20:23:03]NVStorageSaveData ofd_packets/00072911 [20:23:03]File name is /storage/ofd_packets/00072911 [20:23:03]Write 294 bytes [20:23:03]NVStorageSaveData done [20:23:03]OFDSenderStorePacket done [20:23:03]KKMCreateOFDPacket done [20:23:03]NVStorageSaveData kkm_last_timestamp [20:23:03]File name is /storage/kkm_last_timestamp [20:23:03]Write 4 bytes [20:23:03]NVStorageSaveData done [20:23:03]ExternCall_PrintAddStr [20:23:03]wPrintStart [20:23:03]Write to MH i2c: 01 00 00 F5 03 F8 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: 01 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: 01 07 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [20:23:03]RasterBufferAndPrint [20:23:03]line Счет N : (1)952507 [20:23:03]line ИНН: 02508201610067 [20:23:03]line Контрольно-Кассовый Чек [20:23:03]line ПРОДАЖА [20:23:03]line ТРК (МРК, ГНК) : 61 [20:23:03]line Товар: 50.50.0 [20:23:03]line Super 92 [20:23:03]line 33.000 * 0.00 [20:23:03]line = 0.00 [20:23:03]line НДС 12% НСП 1% [20:23:03]line > о реализуемом товаре [20:23:03]line ИТОГО: 0.00 [20:23:03]line НСП 1% : 0.00 [20:23:03]line НДС 12% : 0.00 [20:23:03]line Наличными: 0.00 [20:23:03]line Безнал.: 0.00 [20:23:03]line Место: АЗС № 113 "Партнер Нефть" [20:23:03]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:23:03]line СНО: Общий режим [20:23:03]line Чек 148 30.10.2024 20:23 [20:23:03]line Смена: 556 ФФД: 1.0 [20:23:03]line ЗНМ: 0300000087 [20:23:03]line РНМ: 0000000000091644 [20:23:03]line Версия ККМ: 001 [20:23:03]line Талоны: Топливная Карта [20:23:03]line 46333 [20:23:03]line ФМ: 0000000000874662 [20:23:03]line ФД: 72911 [20:23:03]line ФПД: 257219317558754 [20:23:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202302&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72911&fm=257219317558754&tin=02508201610067®Number=0000000000091644&sum=0 [20:23:03]OFD Sender: Processing packet 72911 [packets to send 279, broken 278] [20:23:03]ProducePacketName [20:23:03]name=ofd_packets/00072911 [20:23:03]OFD Sender: To server: pG, [20:23:03]CommunicateWithHost lk.salyk.kg:30040 [20:23:03]ConnectInit lk.salyk.kg [20:23:03]written 0, free lines is 4095 [20:23:04]Write to MH i2c: 01 00 00 1F 04 23 [20:23:04]Write i2c OK [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: 01 [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: 01 07 00 [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 DF 0C 15 [20:23:04]RasterBufferAndPrint [20:23:04]line [20:23:04]line [20:23:04]line [20:23:04]line [20:23:04]line [20:23:04]written 0, free lines is 3301 [20:23:04]MH_Cut [20:23:04]Write to MH i2c: D1 01 00 26 04 01 FC [20:23:04]Write i2c OK [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: D1 [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: D1 01 00 [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: D1 01 00 26 04 00 FB [20:23:04]Write to MH i2c: 01 00 00 27 04 2B [20:23:04]Write i2c OK [20:23:04]MH_I2C_Read... [20:23:04]*** Cut start [20:23:04]*** Partial cut [20:23:04]*** CUTSNS_PIN = 1 [20:23:04]*** CUTSNS_PIN = 0 [20:23:05]*** Brake cut motor [20:23:05]Read from MH i2c: 01 [20:23:05]MH_I2C_Read... [20:23:05]*** Stop cut motor [20:23:05]*** Cut end [20:23:05]Read from MH i2c: 01 07 00 [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [20:23:05]process_action close_receipt done [20:23:05]requested_data is exist [20:23:05]produce_requested_data [20:23:05]requested_item fm.sn is exist - process it [20:23:05]wFMCommunicate request_size=4 [20:23:05]MH_SAM_APDU [20:23:05]CAPDU: 80 11 00 00 [20:23:05]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [20:23:05]Write i2c OK [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: E2 [20:23:05]MH_I2C_Read... [20:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:05]Read from MH i2c: E2 17 00 [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FA [20:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:23:05]wFMCommunicate OK [20:23:05]requested_item fd.num is exist - process it [20:23:05]SAM_PROTO_GetFieldsCounters [20:23:05]wFMCommunicate request_size=4 [20:23:05]MH_SAM_APDU [20:23:05]CAPDU: 80 13 00 00 [20:23:05]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [20:23:05]Write i2c OK [20:23:05]MH_I2C_Read... [20:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:05]Read from MH i2c: E2 [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: E2 62 00 [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: E2 62 00 29 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CF 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [20:23:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CF 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:05]wFMCommunicate OK [20:23:05]SAM_PROTO_GetFieldsCounters done [20:23:05]requested_item shift.num is exist - process it [20:23:05]requested_item shift.opened is exist - process it [20:23:05]req_shift_opened [20:23:05]FM_GetShiftState [20:23:05]SAM_PROTO_GetShiftState [20:23:05]wFMCommunicate request_size=4 [20:23:05]MH_SAM_APDU [20:23:05]CAPDU: 80 13 01 00 [20:23:05]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [20:23:05]Write i2c OK [20:23:05]MH_I2C_Read... [20:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:05]Read from MH i2c: E2 [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: E2 0E 00 [20:23:05]MH_I2C_Read... [20:23:05]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 7D [20:23:05]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:23:05]wFMCommunicate OK [20:23:05]SAM_PROTO_GetShiftState done [20:23:05]FM_GetShiftState done [20:23:05]req_shift_opened done [20:23:05]requested_item shift.open_date is exist - process it [20:23:05]req_shift_open_date [20:23:05]req_shift_open_date done [20:23:05]produce_requested_data done [20:23:05]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72911,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [20:23:05]process_action_free close_receipt [20:23:05]json_value_free [20:23:05]json_value_free done [20:23:05]process_json_proto returns [20:23:05]Send response to host [20:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72911,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [20:23:05]free response buf [20:23:05]execute_script done [20:23:05]execute_script returns [20:23:05]free content buf [20:23:05]Sock 7.Close socket [20:23:05]Sock 7.Thread stoped [20:23:08]ConnectInit Can't take IP for lk.salyk.kg [20:23:08]CommunicateWithHost connect error [20:23:08]CommunicateWithHost err = -1 [20:23:08]OFD Sender: Server communicate error [20:23:13]OFD Sender: Processing packet 72911 [packets to send 279, broken 278] [20:23:13]ProducePacketName [20:23:13]name=ofd_packets/00072911 [20:23:13]OFD Sender: To server: pG, [20:23:13]CommunicateWithHost lk.salyk.kg:30040 [20:23:13]ConnectInit lk.salyk.kg [20:23:15]recv_with_timeout no data received [20:23:18]ConnectInit Can't take IP for lk.salyk.kg [20:23:18]CommunicateWithHost connect error [20:23:18]CommunicateWithHost err = -1 [20:23:18]OFD Sender: Server communicate error [20:23:23]OFD Sender: Processing packet 72911 [packets to send 279, broken 278] [20:23:23]ProducePacketName [20:23:23]name=ofd_packets/00072911 [20:23:23]OFD Sender: To server: pG, [20:23:23]CommunicateWithHost lk.salyk.kg:30040 [20:23:23]ConnectInit lk.salyk.kg [20:23:29]recv_with_timeout no data received [20:23:29]Connected sock=9 [20:23:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 62 88 00 01 CA AE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 E8 80 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 94 00 00 00 F4 03 04 00 A6 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CF 1C 01 00 35 04 06 00 E9 F0 8A 0D 6D E2 DF 42 31 14 79 AC 75 88 [20:23:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 19 EA 47 00 22 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CF 1C 01 00 F4 03 04 00 78 40 22 67 B6 04 01 00 00 CA 14 75 D3 93 AE A8 C1 [20:23:30]CommunicateWithHost err = 0 [20:23:30]CheckOFDResponse [20:23:30]1017 (14) - 77093643461234 [20:23:30]1041 (16) - 0000000000874662 [20:23:30]1040 (4) - 72911 [20:23:30]1012 (4) - 30.10.2024 14:19 [20:23:30]1206 (1) - 0 [20:23:30]OFD Sender: Remove packet 72911 [20:23:30]ProducePacketName [20:23:30]name=ofd_packets/00072911 [20:23:30]NVStorageDeleteData [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:39]recv_with_timeout no data received [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:10]recv_with_timeout no data received [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]recv_with_timeout no data received [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:34]recv_with_timeout no data received [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:39]recv_with_timeout no data received [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:09]recv_with_timeout no data received [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]recv_with_timeout no data received [20:29:06]OFD Sender: No OFD packet to send [20:29:08]accept exits with 10 [20:29:08]New connection [20:29:08]New thread 3067338084 created [20:29:08]Thread 3067194724 joined [20:29:08]Waiting for new connection... [20:29:08] Sock 10.Parse request [20:29:08]Sock 10.Check first char [20:29:08]Sock 10.First char is OK [20:29:08]request: POST /json_proto HTTP/1.0 [20:29:08]Method: POST [20:29:08]URL: /json_proto [20:29:08]Method is POST - this is cgi request [20:29:08]url: /json_proto [20:29:08]query_string will be loaded in cgi processing [20:29:08]execute_cgi json_proto POST (null) [20:29:08]execute_cgi path=json_proto method=POST [20:29:08]POST find Content-Length [20:29:08]Host: 172.17.43.195:8080 [20:29:08]Content-Length: 663 [20:29:08]Content-Type: application/json [20:29:08] [20:29:08]POST finish read [20:29:08]Found Content-Length = 663 [20:29:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 32.900, "sum" : 2250.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2250.00, "total" : 2250.00, "payments": [ { "type": 0, "sum" : 2250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:08]execute_script... [20:29:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 32.900, "sum" : 2250.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2250.00, "total" : 2250.00, "payments": [ { "type": 0, "sum" : 2250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:08]POST & json_proto [20:29:08]process_json_proto [20:29:08]json parsed OK: [20:29:08]protocol is kg_v1.0 [20:29:08]action value=close_receipt [20:29:08]process_action close_receipt [20:29:08]cmd_close_receipt [20:29:08]MH_GetDate [20:29:08]Write to MH i2c: F0 00 00 2B 04 1E [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: F0 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: F0 09 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: F0 09 00 2B 04 00 15 97 22 67 74 2C AD 66 0F [20:29:08]GetLastDocTimeStamp 1730319782 [20:29:08]current date 1730320149 [20:29:08]FM_GetShiftState [20:29:08]SAM_PROTO_GetShiftState [20:29:08]wFMCommunicate request_size=4 [20:29:08]MH_SAM_APDU [20:29:08]CAPDU: 80 13 01 00 [20:29:08]Write to MH i2c: E2 08 00 2C 04 80 13 01 00 00 00 00 00 AD [20:29:08]Write i2c OK [20:29:08]MH_I2C_Read... [20:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:08]Read from MH i2c: E2 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 0E 00 [20:29:08]MH_I2C_Read... [20:29:08]Read from MH i2c: E2 0E 00 2C 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 7F [20:29:08]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:29:08]wFMCommunicate OK [20:29:08]SAM_PROTO_GetShiftState done [20:29:08]FM_GetShiftState done [20:29:08]opened in 1730247109 [20:29:08]opened+sec_in_day 1730333509 [20:29:08]quantity*price = 225036 [20:29:08]sum+1 = 225037 [20:29:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 2250.00 Внесено: 2250.00 СДАЧА: 0.00 НСП 1% : 19.91 НДС 12% : 238.98 Наличными: 2250.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 149 30.10.2024 20:29 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72912 ФПД: 212921846139095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202909&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72912&fm=212921846139095&tin=02508201610067®Number=0000000000091644&sum=225000 [20:29:09]StoreToDocumentArchive [20:29:09]shift 556 fd 72912 [20:29:09]save to /storage/0556/doc_00072912 [20:29:09]save last doc name /storage/0556/doc_00072912 to /storage/kkm_last_doc_name [20:29:09]save OK [20:29:09]Clear old archive folders... [20:29:09]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:29:09]tlvbuf is 00692150 [20:29:09]SAM_PROTO_ClearQueue [20:29:09]wFMCommunicate request_size=4 [20:29:09]MH_SAM_APDU [20:29:09]CAPDU: 80 09 00 00 [20:29:09]Write to MH i2c: E2 08 00 39 04 80 09 00 00 00 00 00 00 AF [20:29:09]Write i2c OK [20:29:09]MH_I2C_Read... [20:29:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:09]Read from MH i2c: E2 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: E2 03 00 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [20:29:09]RAPDU: 90 00 [20:29:09]wFMCommunicate OK [20:29:09]SAM_PROTO_ClearQueue done [20:29:09]KKMCreateOFDPacket [20:29:09]OFDProtocolAddRootSTLVToBuf [20:29:09]FM_MakeSignedData [20:29:09]FM_MakeSignedData [20:29:09]SAM_PROTO_SignData [20:29:09]wFMCommunicate request_size=4 [20:29:09]MH_SAM_APDU [20:29:09]CAPDU: 80 0D 01 02 [20:29:09]Write to MH i2c: E2 08 00 3A 04 80 0D 01 02 00 00 00 00 B7 [20:29:09]Write i2c OK [20:29:09]MH_I2C_Read... [20:29:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:09]Read from MH i2c: E2 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: E2 03 00 [20:29:09]MH_I2C_Read... [20:29:09]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [20:29:09]RAPDU: 90 00 [20:29:09]wFMCommunicate OK [20:29:09]wFMCommunicate request_size=253 [20:29:09]MH_SAM_APDU [20:29:09]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 84 80 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0C 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 5D 00 00 00 00 07 04 06 00 E8 6E 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 15 97 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D0 1C 01 00 35 04 06 00 C1 A6 BB 01 08 D7 [20:29:09]Write to MH i2c: E2 00 01 3B 04 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 84 80 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0C 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 5D 00 00 00 00 07 04 06 00 E8 6E 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 15 97 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D0 1C 01 00 35 04 06 00 C1 A6 BB 01 08 D7 00 00 9C [20:29:09]Write i2c OK [20:29:09]MH_I2C_Read... [20:29:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:10]Read from MH i2c: E2 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: E2 03 00 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [20:29:10]RAPDU: 90 00 [20:29:10]wFMCommunicate OK [20:29:10]wFMCommunicate request_size=4 [20:29:10]MH_SAM_APDU [20:29:10]CAPDU: 80 0D 03 02 [20:29:10]Write to MH i2c: E2 08 00 3C 04 80 0D 03 02 00 00 00 00 BB [20:29:10]Write i2c OK [20:29:10]MH_I2C_Read... [20:29:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:10]Read from MH i2c: E2 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: E2 0B 00 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: E2 0B 00 3C 04 00 2F AF 0A 84 DB 22 C0 D6 90 00 BB [20:29:10]RAPDU: 2F AF 0A 84 DB 22 C0 D6 90 00 [20:29:10]wFMCommunicate OK [20:29:10]SAM_PROTO_SignData done [20:29:10]FM_MakeSignedData done [20:29:10]CreateOFDProtocolMessage [20:29:10]wFMCommunicate request_size=4 [20:29:10]MH_SAM_APDU [20:29:10]CAPDU: 80 11 00 00 [20:29:10]Write to MH i2c: E2 08 00 3D 04 80 11 00 00 00 00 00 00 BB [20:29:10]Write i2c OK [20:29:10]MH_I2C_Read... [20:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:10]Read from MH i2c: E2 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: E2 17 00 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: E2 17 00 3D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 0F [20:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:29:10]wFMCommunicate OK [20:29:10]CreateOFDProtocolMessage done [20:29:10]OFDSenderStorePacket 72912 [20:29:10]StoreOFDPacket docnum=72912 [20:29:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 B9 81 00 01 DF 89 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 84 80 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0C 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 5D 00 00 00 00 07 04 06 00 E8 6E 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 15 97 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D0 1C 01 00 35 04 06 00 C1 A6 BB 01 08 D7 2F AF 0A 84 DB 22 C0 D6 [20:29:10]CheckFolder [20:29:10]dirname=/storage/ofd_packets [20:29:10]CheckFolder done [20:29:10]ProducePacketName [20:29:10]name=ofd_packets/00072912 [20:29:10]NVStorageSaveData ofd_packets/00072912 [20:29:10]File name is /storage/ofd_packets/00072912 [20:29:10]Write 294 bytes [20:29:10]NVStorageSaveData done [20:29:10]OFDSenderStorePacket done [20:29:10]KKMCreateOFDPacket done [20:29:10]NVStorageSaveData kkm_last_timestamp [20:29:10]File name is /storage/kkm_last_timestamp [20:29:10]Write 4 bytes [20:29:10]NVStorageSaveData done [20:29:10]ExternCall_PrintAddStr [20:29:10]wPrintStart [20:29:10]Write to MH i2c: 01 00 00 3E 04 42 [20:29:10]Write i2c OK [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: 01 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: 01 07 00 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: 01 07 00 3E 04 00 00 00 00 00 FF 0F 57 [20:29:10]RasterBufferAndPrint [20:29:10]line Счет N : (1)952509 [20:29:10]line ИНН: 02508201610067 [20:29:10]line Контрольно-Кассовый Чек [20:29:10]line ПРОДАЖА [20:29:10]line ТРК (МРК, ГНК) : 61 [20:29:10]line Товар: 50.50.0 [20:29:10]line Super 92 [20:29:10]line 32.900 * 68.40 [20:29:10]line = 2250.36 [20:29:10]line НДС 12% НСП 1% [20:29:10]line > о реализуемом товаре [20:29:10]line ОКРУГЛЕНИЕ: -0.36 [20:29:10]line ИТОГО: 2250.00 [20:29:10]line Внесено: 2250.00 [20:29:10]line СДАЧА: 0.00 [20:29:10]line НСП 1% : 19.91 [20:29:10]line НДС 12% : 238.98 [20:29:10]line Наличными: 2250.00 [20:29:10]line Безнал.: 0.00 [20:29:10]line Место: АЗС № 113 "Партнер Нефть" [20:29:10]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:29:10]line СНО: Общий режим [20:29:10]line Чек 149 30.10.2024 20:29 [20:29:10]line Смена: 556 ФФД: 1.0 [20:29:10]line ЗНМ: 0300000087 [20:29:10]line РНМ: 0000000000091644 [20:29:10]line Версия ККМ: 001 [20:29:10]line ФМ: 0000000000874662 [20:29:10]line ФД: 72912 [20:29:10]line ФПД: 212921846139095 [20:29:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202909&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72912&fm=212921846139095&tin=02508201610067®Number=0000000000091644&sum=225000 [20:29:10]OFD Sender: Processing packet 72912 [packets to send 279, broken 278] [20:29:10]ProducePacketName [20:29:10]name=ofd_packets/00072912 [20:29:10]OFD Sender: To server: pG, [20:29:10]CommunicateWithHost lk.salyk.kg:30040 [20:29:10]ConnectInit lk.salyk.kg [20:29:10]written 0, free lines is 4095 [20:29:10]Write to MH i2c: 01 00 00 69 04 6D [20:29:10]Write i2c OK [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: 01 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: 01 07 00 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 E0 0C 60 [20:29:10]RasterBufferAndPrint [20:29:10]line [20:29:10]line [20:29:10]line [20:29:10]line [20:29:10]line [20:29:10]written 0, free lines is 3302 [20:29:10]MH_Cut [20:29:10]Write to MH i2c: D1 01 00 70 04 01 46 [20:29:10]Write i2c OK [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: D1 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: D1 01 00 [20:29:10]MH_I2C_Read... [20:29:10]Read from MH i2c: D1 01 00 70 04 00 45 [20:29:10]Write to MH i2c: 01 00 00 71 04 75 [20:29:10]Write i2c OK [20:29:10]MH_I2C_Read... [20:29:11]Connected sock=9 [20:29:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 B9 81 00 01 DF 89 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 84 80 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0C 6F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 5D 00 00 00 00 07 04 06 00 E8 6E 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 15 97 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D0 1C 01 00 35 04 06 00 C1 A6 BB 01 08 D7 2F AF 0A 84 DB 22 C0 D6 [20:29:11]*** Cut start [20:29:11]*** Partial cut [20:29:11]*** CUTSNS_PIN = 1 [20:29:11]*** CUTSNS_PIN = 0 [20:29:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 5B FE 47 00 FF A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D0 1C 01 00 F4 03 04 00 CD 41 22 67 B6 04 01 00 00 03 79 77 7D 27 4B C5 0D [20:29:11]CommunicateWithHost err = 0 [20:29:11]CheckOFDResponse [20:29:11]1017 (14) - 77093643461234 [20:29:11]1041 (16) - 0000000000874662 [20:29:11]1040 (4) - 72912 [20:29:11]1012 (4) - 30.10.2024 14:25 [20:29:11]1206 (1) - 0 [20:29:11]OFD Sender: Remove packet 72912 [20:29:11]ProducePacketName [20:29:11]name=ofd_packets/00072912 [20:29:11]NVStorageDeleteData [20:29:12]*** Brake cut motor [20:29:12]OFD Sender: No OFD packet to send [20:29:12]Read from MH i2c: 01 [20:29:12]MH_I2C_Read... [20:29:12]*** Stop cut motor [20:29:12]*** Cut end [20:29:12]Read from MH i2c: 01 07 00 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 FF 0F 8A [20:29:12]process_action close_receipt done [20:29:12]requested_data is exist [20:29:12]produce_requested_data [20:29:12]requested_item fm.sn is exist - process it [20:29:12]wFMCommunicate request_size=4 [20:29:12]MH_SAM_APDU [20:29:12]CAPDU: 80 11 00 00 [20:29:12]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [20:29:12]Write i2c OK [20:29:12]MH_I2C_Read... [20:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:12]Read from MH i2c: E2 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: E2 17 00 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 44 [20:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:29:12]wFMCommunicate OK [20:29:12]requested_item fd.num is exist - process it [20:29:12]SAM_PROTO_GetFieldsCounters [20:29:12]wFMCommunicate request_size=4 [20:29:12]MH_SAM_APDU [20:29:12]CAPDU: 80 13 00 00 [20:29:12]Write to MH i2c: E2 08 00 73 04 80 13 00 00 00 00 00 00 F3 [20:29:12]Write i2c OK [20:29:12]MH_I2C_Read... [20:29:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:12]Read from MH i2c: E2 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: E2 62 00 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: E2 62 00 73 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D0 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [20:29:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D0 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:12]wFMCommunicate OK [20:29:12]SAM_PROTO_GetFieldsCounters done [20:29:12]requested_item shift.num is exist - process it [20:29:12]requested_item shift.opened is exist - process it [20:29:12]req_shift_opened [20:29:12]FM_GetShiftState [20:29:12]SAM_PROTO_GetShiftState [20:29:12]wFMCommunicate request_size=4 [20:29:12]MH_SAM_APDU [20:29:12]CAPDU: 80 13 01 00 [20:29:12]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [20:29:12]Write i2c OK [20:29:12]MH_I2C_Read... [20:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:12]Read from MH i2c: E2 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: E2 0E 00 [20:29:12]MH_I2C_Read... [20:29:12]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 C7 [20:29:12]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:29:12]wFMCommunicate OK [20:29:12]SAM_PROTO_GetShiftState done [20:29:12]FM_GetShiftState done [20:29:12]req_shift_opened done [20:29:12]requested_item shift.open_date is exist - process it [20:29:12]req_shift_open_date [20:29:12]req_shift_open_date done [20:29:12]produce_requested_data done [20:29:12]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72912,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [20:29:12]process_action_free close_receipt [20:29:12]json_value_free [20:29:12]json_value_free done [20:29:12]process_json_proto returns [20:29:12]Send response to host [20:29:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72912,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [20:29:12]free response buf [20:29:12]execute_script done [20:29:12]execute_script returns [20:29:12]free content buf [20:29:12]Sock 10.Close socket [20:29:12]Sock 10.Thread stoped [20:29:17]recv_with_timeout no data received [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:39]recv_with_timeout no data received [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:09]recv_with_timeout no data received [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:45]recv_with_timeout no data received [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:41]recv_with_timeout no data received [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]recv_with_timeout no data received [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]recv_with_timeout no data received [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:50]recv_with_timeout no data received [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:49]recv_with_timeout no data received [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:01]recv_with_timeout no data received [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:45]recv_with_timeout no data received [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]recv_with_timeout no data received [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:43]recv_with_timeout no data received [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:06]recv_with_timeout no data received [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:24]recv_with_timeout no data received [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:04]recv_with_timeout no data received [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:35]accept exits with 7 [20:41:35]New connection [20:41:35]New thread 3067194724 created [20:41:35]Thread 3067338084 joined [20:41:35]Waiting for new connection... [20:41:35] Sock 7.Parse request [20:41:35]Sock 7.Check first char [20:41:35]Sock 7.First char is OK [20:41:35]request: POST /json_proto HTTP/1.0 [20:41:35]Method: POST [20:41:35]URL: /json_proto [20:41:35]Method is POST - this is cgi request [20:41:35]url: /json_proto [20:41:35]query_string will be loaded in cgi processing [20:41:35]execute_cgi json_proto POST (null) [20:41:35]execute_cgi path=json_proto method=POST [20:41:35]POST find Content-Length [20:41:35]Host: 172.17.43.195:8080 [20:41:35]Content-Length: 792 [20:41:35]Content-Type: application/json [20:41:35] [20:41:35]POST finish read [20:41:35]Found Content-Length = 792 [20:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:35]execute_script... [20:41:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:35]POST & json_proto [20:41:35]process_json_proto [20:41:35]json parsed OK: [20:41:35]protocol is kg_v1.0 [20:41:35]action value=close_receipt [20:41:35]process_action close_receipt [20:41:35]cmd_close_receipt [20:41:35]MH_GetDate [20:41:35]Write to MH i2c: F0 00 00 75 04 68 [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 09 00 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: F0 09 00 75 04 00 00 9A 22 67 74 2C AD 66 47 [20:41:35]GetLastDocTimeStamp 1730320149 [20:41:35]current date 1730320896 [20:41:35]FM_GetShiftState [20:41:35]SAM_PROTO_GetShiftState [20:41:35]wFMCommunicate request_size=4 [20:41:35]MH_SAM_APDU [20:41:35]CAPDU: 80 13 01 00 [20:41:35]Write to MH i2c: E2 08 00 76 04 80 13 01 00 00 00 00 00 F7 [20:41:35]Write i2c OK [20:41:35]MH_I2C_Read... [20:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:35]Read from MH i2c: E2 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: E2 0E 00 [20:41:35]MH_I2C_Read... [20:41:35]Read from MH i2c: E2 0E 00 76 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 C9 [20:41:35]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:41:35]wFMCommunicate OK [20:41:35]SAM_PROTO_GetShiftState done [20:41:35]FM_GetShiftState done [20:41:35]opened in 1730247109 [20:41:35]opened+sec_in_day 1730333509 [20:41:35]quantity*price = 0 [20:41:35]sum+1 = 1 [20:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 150 30.10.2024 20:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72913 ФПД: 246850725260890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T204136&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72913&fm=246850725260890&tin=02508201610067®Number=0000000000091644&sum=0 [20:41:36]StoreToDocumentArchive [20:41:36]shift 556 fd 72913 [20:41:36]save to /storage/0556/doc_00072913 [20:41:36]save last doc name /storage/0556/doc_00072913 to /storage/kkm_last_doc_name [20:41:36]save OK [20:41:36]Clear old archive folders... [20:41:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:36]tlvbuf is 00691A40 [20:41:36]SAM_PROTO_ClearQueue [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 09 00 00 [20:41:36]Write to MH i2c: E2 08 00 83 04 80 09 00 00 00 00 00 00 F9 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]SAM_PROTO_ClearQueue done [20:41:36]KKMCreateOFDPacket [20:41:36]OFDProtocolAddRootSTLVToBuf [20:41:36]FM_MakeSignedData [20:41:36]FM_MakeSignedData [20:41:36]SAM_PROTO_SignData [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 01 02 [20:41:36]Write to MH i2c: E2 08 00 84 04 80 0D 01 02 00 00 00 00 01 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]wFMCommunicate request_size=255 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 00 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D1 1C 01 00 35 04 06 00 E0 [20:41:36]Write to MH i2c: E2 02 01 85 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 00 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D1 1C 01 00 35 04 06 00 E0 00 00 65 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]wFMCommunicate request_size=10 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 02 02 05 82 69 CA AE 5A [20:41:36]Write to MH i2c: E2 0D 00 86 04 80 0D 02 02 05 00 82 69 CA AE 5A 00 00 CB [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [20:41:36]RAPDU: 90 00 [20:41:36]wFMCommunicate OK [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 0D 03 02 [20:41:36]Write to MH i2c: E2 08 00 87 04 80 0D 03 02 00 00 00 00 06 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 0B 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 0B 00 87 04 00 85 4B 4B 8D 9B AD AF 9D 90 00 43 [20:41:36]RAPDU: 85 4B 4B 8D 9B AD AF 9D 90 00 [20:41:36]wFMCommunicate OK [20:41:36]SAM_PROTO_SignData done [20:41:36]FM_MakeSignedData done [20:41:36]CreateOFDProtocolMessage [20:41:36]wFMCommunicate request_size=4 [20:41:36]MH_SAM_APDU [20:41:36]CAPDU: 80 11 00 00 [20:41:36]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:36]Read from MH i2c: E2 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 17 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5A [20:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:41:36]wFMCommunicate OK [20:41:36]CreateOFDProtocolMessage done [20:41:36]OFDSenderStorePacket 72913 [20:41:36]StoreOFDPacket docnum=72913 [20:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 7B FF 07 01 14 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 00 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D1 1C 01 00 35 04 06 00 E0 82 69 CA AE 5A 85 4B 4B 8D 9B AD AF 9D [20:41:36]CheckFolder [20:41:36]dirname=/storage/ofd_packets [20:41:36]CheckFolder done [20:41:36]ProducePacketName [20:41:36]name=ofd_packets/00072913 [20:41:36]NVStorageSaveData ofd_packets/00072913 [20:41:36]File name is /storage/ofd_packets/00072913 [20:41:36]Write 301 bytes [20:41:36]NVStorageSaveData done [20:41:36]OFDSenderStorePacket done [20:41:36]KKMCreateOFDPacket done [20:41:36]NVStorageSaveData kkm_last_timestamp [20:41:36]File name is /storage/kkm_last_timestamp [20:41:36]Write 4 bytes [20:41:36]NVStorageSaveData done [20:41:36]ExternCall_PrintAddStr [20:41:36]wPrintStart [20:41:36]Write to MH i2c: 01 00 00 89 04 8D [20:41:36]Write i2c OK [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: 01 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: 01 07 00 [20:41:36]MH_I2C_Read... [20:41:36]Read from MH i2c: 01 07 00 89 04 00 00 00 00 00 FF 0F A2 [20:41:36]RasterBufferAndPrint [20:41:36]line Счет N : (1)952511 [20:41:36]line ИНН: 02508201610067 [20:41:36]line Контрольно-Кассовый Чек [20:41:36]line ПРОДАЖА [20:41:36]line ТРК (МРК, ГНК) : 53 [20:41:36]line Товар: 2710124130 [20:41:36]line Аи-92-К-5 [20:41:36]line 30.000 * 0.00 [20:41:36]line = 0.00 [20:41:36]line НДС 12% НСП 1% [20:41:36]line > о реализуемом товаре [20:41:36]line ИТОГО: 0.00 [20:41:36]line НСП 1% : 0.00 [20:41:36]line НДС 12% : 0.00 [20:41:36]line Наличными: 0.00 [20:41:36]line Безнал.: 0.00 [20:41:36]line Место: АЗС № 113 "Партнер Нефть" [20:41:36]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:41:36]line СНО: Общий режим [20:41:36]line Чек 150 30.10.2024 20:41 [20:41:36]line Смена: 556 ФФД: 1.0 [20:41:36]line ЗНМ: 0300000087 [20:41:36]line РНМ: 0000000000091644 [20:41:36]line Версия ККМ: 001 [20:41:36]line Талоны: Топливная Карта [20:41:36]line 03047 [20:41:36]line ФМ: 0000000000874662 [20:41:36]line ФД: 72913 [20:41:36]line ФПД: 246850725260890 [20:41:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T204136&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72913&fm=246850725260890&tin=02508201610067®Number=0000000000091644&sum=0 [20:41:36]written 0, free lines is 4095 [20:41:37]OFD Sender: Processing packet 72913 [packets to send 279, broken 278] [20:41:37]ProducePacketName [20:41:37]name=ofd_packets/00072913 [20:41:37]OFD Sender: To server: pG, [20:41:37]CommunicateWithHost lk.salyk.kg:30040 [20:41:37]ConnectInit lk.salyk.kg [20:41:37]Write to MH i2c: 01 00 00 B3 04 B7 [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 07 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 DA 0C A4 [20:41:37]RasterBufferAndPrint [20:41:37]line [20:41:37]line [20:41:37]line [20:41:37]line [20:41:37]line [20:41:37]written 0, free lines is 3296 [20:41:37]MH_Cut [20:41:37]Write to MH i2c: D1 01 00 BA 04 01 90 [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: D1 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: D1 01 00 [20:41:37]MH_I2C_Read... [20:41:37]Read from MH i2c: D1 01 00 BA 04 00 8F [20:41:37]Write to MH i2c: 01 00 00 BB 04 BF [20:41:37]Write i2c OK [20:41:37]MH_I2C_Read... [20:41:37]Connected sock=9 [20:41:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 7B FF 07 01 14 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 00 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D1 1C 01 00 35 04 06 00 E0 82 69 CA AE 5A 85 4B 4B 8D 9B AD AF 9D [20:41:38]*** Cut start [20:41:38]*** Partial cut [20:41:38]*** CUTSNS_PIN = 1 [20:41:38]*** CUTSNS_PIN = 0 [20:41:38]*** Brake cut motor [20:41:38]Read from MH i2c: 01 [20:41:38]MH_I2C_Read... [20:41:38]*** Stop cut motor [20:41:38]*** Cut end [20:41:38]Read from MH i2c: 01 07 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [20:41:38]process_action close_receipt done [20:41:38]requested_data is exist [20:41:38]produce_requested_data [20:41:38]requested_item fm.sn is exist - process it [20:41:38]wFMCommunicate request_size=4 [20:41:38]MH_SAM_APDU [20:41:38]CAPDU: 80 11 00 00 [20:41:38]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:38]Read from MH i2c: E2 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 17 00 [20:41:38]MH_I2C_Read... [20:41:38]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8E [20:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:41:38]wFMCommunicate OK [20:41:38]requested_item fd.num is exist - process it [20:41:38]SAM_PROTO_GetFieldsCounters [20:41:38]wFMCommunicate request_size=4 [20:41:38]MH_SAM_APDU [20:41:38]CAPDU: 80 13 00 00 [20:41:38]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [20:41:38]Write i2c OK [20:41:38]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 62 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 62 00 BD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D1 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [20:41:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D1 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:39]wFMCommunicate OK [20:41:39]SAM_PROTO_GetFieldsCounters done [20:41:39]requested_item shift.num is exist - process it [20:41:39]requested_item shift.opened is exist - process it [20:41:39]req_shift_opened [20:41:39]FM_GetShiftState [20:41:39]SAM_PROTO_GetShiftState [20:41:39]wFMCommunicate request_size=4 [20:41:39]MH_SAM_APDU [20:41:39]CAPDU: 80 13 01 00 [20:41:39]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [20:41:39]Write i2c OK [20:41:39]MH_I2C_Read... [20:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:39]Read from MH i2c: E2 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 0E 00 [20:41:39]MH_I2C_Read... [20:41:39]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 11 [20:41:39]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:41:39]wFMCommunicate OK [20:41:39]SAM_PROTO_GetShiftState done [20:41:39]FM_GetShiftState done [20:41:39]req_shift_opened done [20:41:39]requested_item shift.open_date is exist - process it [20:41:39]req_shift_open_date [20:41:39]req_shift_open_date done [20:41:39]produce_requested_data done [20:41:39]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72913,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [20:41:39]process_action_free close_receipt [20:41:39]json_value_free [20:41:39]json_value_free done [20:41:39]process_json_proto returns [20:41:39]Send response to host [20:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72913,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [20:41:39]free response buf [20:41:39]execute_script done [20:41:39]execute_script returns [20:41:39]free content buf [20:41:39]Sock 7.Close socket [20:41:39]Sock 7.Thread stoped [20:41:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 3D 08 47 00 78 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 38 37 34 36 36 32 10 04 04 00 D1 1C 01 00 F4 03 04 00 B8 44 22 67 B6 04 01 00 00 C0 DC CC 17 E6 65 5F 46 [20:41:39]CommunicateWithHost err = 0 [20:41:39]CheckOFDResponse [20:41:39]1017 (14) - 77093643461234 [20:41:39]1041 (16) - 0000000000874662 [20:41:39]1040 (4) - 72913 [20:41:39]1012 (4) - 30.10.2024 14:37 [20:41:39]1206 (1) - 0 [20:41:39]OFD Sender: Remove packet 72913 [20:41:39]ProducePacketName [20:41:39]name=ofd_packets/00072913 [20:41:39]NVStorageDeleteData [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:41:56]recv_with_timeout no data received [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:11]recv_with_timeout no data received [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:22]recv_with_timeout no data received [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:50]recv_with_timeout no data received [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:01]accept exits with 10 [20:44:01]New connection [20:44:01]New thread 3067338084 created [20:44:01]Thread 3067194724 joined [20:44:01]Waiting for new connection... [20:44:01] Sock 10.Parse request [20:44:01]Sock 10.Check first char [20:44:01]Sock 10.First char is OK [20:44:01]request: POST /json_proto HTTP/1.0 [20:44:01]Method: POST [20:44:01]URL: /json_proto [20:44:01]Method is POST - this is cgi request [20:44:01]url: /json_proto [20:44:01]query_string will be loaded in cgi processing [20:44:01]execute_cgi json_proto POST (null) [20:44:01]execute_cgi path=json_proto method=POST [20:44:01]POST find Content-Length [20:44:01]Host: 172.17.43.195:8080 [20:44:01]Content-Length: 663 [20:44:01]Content-Type: application/json [20:44:01] [20:44:01]POST finish read [20:44:01]Found Content-Length = 663 [20:44:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:01]execute_script... [20:44: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)952512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:01]POST & json_proto [20:44:01]process_json_proto [20:44:01]json parsed OK: [20:44:01]protocol is kg_v1.0 [20:44:01]action value=close_receipt [20:44:01]process_action close_receipt [20:44:01]cmd_close_receipt [20:44:01]MH_GetDate [20:44:01]Write to MH i2c: F0 00 00 BF 04 B2 [20:44:01]Write i2c OK [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: F0 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: F0 09 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: F0 09 00 BF 04 00 91 9A 22 67 74 2C AD 66 22 [20:44:01]GetLastDocTimeStamp 1730320896 [20:44:01]current date 1730321041 [20:44:01]FM_GetShiftState [20:44:01]SAM_PROTO_GetShiftState [20:44:01]wFMCommunicate request_size=4 [20:44:01]MH_SAM_APDU [20:44:01]CAPDU: 80 13 01 00 [20:44:01]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [20:44:01]Write i2c OK [20:44:01]MH_I2C_Read... [20:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:01]Read from MH i2c: E2 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 0E 00 [20:44:01]MH_I2C_Read... [20:44:01]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 13 [20:44:01]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:44:01]wFMCommunicate OK [20:44:01]SAM_PROTO_GetShiftState done [20:44:01]FM_GetShiftState done [20:44:01]opened in 1730247109 [20:44:01]opened+sec_in_day 1730333509 [20:44:01]quantity*price = 100000 [20:44:01]sum+1 = 100002 [20:44:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 151 30.10.2024 20:44 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72914 ФПД: 183674570017111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T204402&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72914&fm=183674570017111&tin=02508201610067®Number=0000000000091644&sum=100000 [20:44:02]StoreToDocumentArchive [20:44:02]shift 556 fd 72914 [20:44:02]save to /storage/0556/doc_00072914 [20:44:02]save last doc name /storage/0556/doc_00072914 to /storage/kkm_last_doc_name [20:44:02]save OK [20:44:02]Clear old archive folders... [20:44:02]ProcessDocumentItem done err = 0, tmpTLVsize=244 [20:44:02]tlvbuf is 0066DDF0 [20:44:02]SAM_PROTO_ClearQueue [20:44:02]wFMCommunicate request_size=4 [20:44:02]MH_SAM_APDU [20:44:02]CAPDU: 80 09 00 00 [20:44:02]Write to MH i2c: E2 08 00 CD 04 80 09 00 00 00 00 00 00 43 [20:44:02]Write i2c OK [20:44:02]MH_I2C_Read... [20:44:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:02]Read from MH i2c: E2 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: E2 03 00 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [20:44:02]RAPDU: 90 00 [20:44:02]wFMCommunicate OK [20:44:02]SAM_PROTO_ClearQueue done [20:44:02]KKMCreateOFDPacket [20:44:02]OFDProtocolAddRootSTLVToBuf [20:44:02]FM_MakeSignedData [20:44:02]FM_MakeSignedData [20:44:02]SAM_PROTO_SignData [20:44:02]wFMCommunicate request_size=4 [20:44:02]MH_SAM_APDU [20:44:02]CAPDU: 80 0D 01 02 [20:44:02]Write to MH i2c: E2 08 00 CE 04 80 0D 01 02 00 00 00 00 4B [20:44:02]Write i2c OK [20:44:02]MH_I2C_Read... [20:44:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:02]Read from MH i2c: E2 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: E2 03 00 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [20:44:02]RAPDU: 90 00 [20:44:02]wFMCommunicate OK [20:44:02]wFMCommunicate request_size=253 [20:44:02]MH_SAM_APDU [20:44:02]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 97 00 00 00 F4 03 04 00 92 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D2 1C 01 00 35 04 06 00 A7 0D 11 80 09 57 [20:44:02]Write to MH i2c: E2 00 01 CF 04 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 97 00 00 00 F4 03 04 00 92 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D2 1C 01 00 35 04 06 00 A7 0D 11 80 09 57 00 00 86 [20:44:02]Write i2c OK [20:44:02]MH_I2C_Read... [20:44:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:02]Read from MH i2c: E2 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: E2 03 00 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [20:44:02]RAPDU: 90 00 [20:44:02]wFMCommunicate OK [20:44:02]wFMCommunicate request_size=4 [20:44:02]MH_SAM_APDU [20:44:02]CAPDU: 80 0D 03 02 [20:44:02]Write to MH i2c: E2 08 00 D0 04 80 0D 03 02 00 00 00 00 4F [20:44:02]Write i2c OK [20:44:02]MH_I2C_Read... [20:44:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:02]Read from MH i2c: E2 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: E2 0B 00 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: E2 0B 00 D0 04 00 F0 17 91 15 40 A3 BB F8 90 00 93 [20:44:02]RAPDU: F0 17 91 15 40 A3 BB F8 90 00 [20:44:02]wFMCommunicate OK [20:44:02]SAM_PROTO_SignData done [20:44:02]FM_MakeSignedData done [20:44:02]CreateOFDProtocolMessage [20:44:02]wFMCommunicate request_size=4 [20:44:02]MH_SAM_APDU [20:44:02]CAPDU: 80 11 00 00 [20:44:02]Write to MH i2c: E2 08 00 D1 04 80 11 00 00 00 00 00 00 4F [20:44:02]Write i2c OK [20:44:02]MH_I2C_Read... [20:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:02]Read from MH i2c: E2 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: E2 17 00 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: E2 17 00 D1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A3 [20:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:44:02]wFMCommunicate OK [20:44:02]CreateOFDProtocolMessage done [20:44:02]OFDSenderStorePacket 72914 [20:44:02]StoreOFDPacket docnum=72914 [20:44:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 D7 6E 00 01 FA 51 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 97 00 00 00 F4 03 04 00 92 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D2 1C 01 00 35 04 06 00 A7 0D 11 80 09 57 F0 17 91 15 40 A3 BB F8 [20:44:02]CheckFolder [20:44:02]dirname=/storage/ofd_packets [20:44:02]CheckFolder done [20:44:02]ProducePacketName [20:44:02]name=ofd_packets/00072914 [20:44:02]NVStorageSaveData ofd_packets/00072914 [20:44:02]File name is /storage/ofd_packets/00072914 [20:44:02]Write 294 bytes [20:44:02]NVStorageSaveData done [20:44:02]OFDSenderStorePacket done [20:44:02]KKMCreateOFDPacket done [20:44:02]NVStorageSaveData kkm_last_timestamp [20:44:02]File name is /storage/kkm_last_timestamp [20:44:02]Write 4 bytes [20:44:02]NVStorageSaveData done [20:44:02]ExternCall_PrintAddStr [20:44:02]wPrintStart [20:44:02]Write to MH i2c: 01 00 00 D2 04 D6 [20:44:02]Write i2c OK [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: 01 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: 01 07 00 [20:44:02]MH_I2C_Read... [20:44:02]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 FF 0F EB [20:44:02]RasterBufferAndPrint [20:44:02]line Счет N : (1)952512 [20:44:02]line ИНН: 02508201610067 [20:44:02]line Контрольно-Кассовый Чек [20:44:02]line ПРОДАЖА [20:44:02]line ТРК (МРК, ГНК) : 61 [20:44:02]line Товар: 50.50.0 [20:44:02]line Super 92 [20:44:02]line 14.620 * 68.40 [20:44:02]line = 1000.01 [20:44:02]line НДС 12% НСП 1% [20:44:02]line > о реализуемом товаре [20:44:02]line ОКРУГЛЕНИЕ: -0.01 [20:44:02]line ИТОГО: 1000.00 [20:44:02]line Внесено: 1000.00 [20:44:02]line СДАЧА: 0.00 [20:44:02]line НСП 1% : 8.85 [20:44:02]line НДС 12% : 106.20 [20:44:02]line Наличными: 1000.00 [20:44:02]line Безнал.: 0.00 [20:44:02]line Место: АЗС № 113 "Партнер Нефть" [20:44:02]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:44:02]line СНО: Общий режим [20:44:02]line Чек 151 30.10.2024 20:44 [20:44:02]line Смена: 556 ФФД: 1.0 [20:44:02]line ЗНМ: 0300000087 [20:44:02]line РНМ: 0000000000091644 [20:44:02]line Версия ККМ: 001 [20:44:02]line ФМ: 0000000000874662 [20:44:02]line ФД: 72914 [20:44:02]line ФПД: 183674570017111 [20:44:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T204402&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72914&fm=183674570017111&tin=02508201610067®Number=0000000000091644&sum=100000 [20:44:03]OFD Sender: Processing packet 72914 [packets to send 279, broken 278] [20:44:03]ProducePacketName [20:44:03]name=ofd_packets/00072914 [20:44:03]OFD Sender: To server: pG, [20:44:03]CommunicateWithHost lk.salyk.kg:30040 [20:44:03]ConnectInit lk.salyk.kg [20:44:03]written 0, free lines is 4095 [20:44:03]Write to MH i2c: 01 00 00 FD 04 01 [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: 01 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: 01 07 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 CD 0C E1 [20:44:03]RasterBufferAndPrint [20:44:03]line [20:44:03]line [20:44:03]line [20:44:03]line [20:44:03]line [20:44:03]written 0, free lines is 3280 [20:44:03]MH_Cut [20:44:03]Write to MH i2c: D1 01 00 04 05 01 DB [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: D1 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: D1 01 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: D1 01 00 04 05 00 DA [20:44:03]Write to MH i2c: 01 00 00 05 05 0A [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:04]*** Cut start [20:44:04]*** Partial cut [20:44:04]*** CUTSNS_PIN = 1 [20:44:04]*** CUTSNS_PIN = 0 [20:44:04]*** Brake cut motor [20:44:05]Read from MH i2c: 01 [20:44:05]MH_I2C_Read... [20:44:05]*** Stop cut motor [20:44:05]*** Cut end [20:44:05]Read from MH i2c: 01 07 00 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 FF 0F 1F [20:44:05]process_action close_receipt done [20:44:05]requested_data is exist [20:44:05]produce_requested_data [20:44:05]requested_item fm.sn is exist - process it [20:44:05]wFMCommunicate request_size=4 [20:44:05]MH_SAM_APDU [20:44:05]CAPDU: 80 11 00 00 [20:44:05]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [20:44:05]Write i2c OK [20:44:05]MH_I2C_Read... [20:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:05]Read from MH i2c: E2 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 17 00 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D9 [20:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:44:05]wFMCommunicate OK [20:44:05]requested_item fd.num is exist - process it [20:44:05]SAM_PROTO_GetFieldsCounters [20:44:05]wFMCommunicate request_size=4 [20:44:05]MH_SAM_APDU [20:44:05]CAPDU: 80 13 00 00 [20:44:05]Write to MH i2c: E2 08 00 07 05 80 13 00 00 00 00 00 00 88 [20:44:05]Write i2c OK [20:44:05]MH_I2C_Read... [20:44:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:05]Read from MH i2c: E2 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 62 00 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 62 00 07 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D2 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [20:44:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D2 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:05]wFMCommunicate OK [20:44:05]SAM_PROTO_GetFieldsCounters done [20:44:05]requested_item shift.num is exist - process it [20:44:05]requested_item shift.opened is exist - process it [20:44:05]req_shift_opened [20:44:05]FM_GetShiftState [20:44:05]SAM_PROTO_GetShiftState [20:44:05]wFMCommunicate request_size=4 [20:44:05]MH_SAM_APDU [20:44:05]CAPDU: 80 13 01 00 [20:44:05]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [20:44:05]Write i2c OK [20:44:05]MH_I2C_Read... [20:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:05]Read from MH i2c: E2 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 0E 00 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 5C [20:44:05]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:44:05]wFMCommunicate OK [20:44:05]SAM_PROTO_GetShiftState done [20:44:05]FM_GetShiftState done [20:44:05]req_shift_opened done [20:44:05]requested_item shift.open_date is exist - process it [20:44:05]req_shift_open_date [20:44:05]req_shift_open_date done [20:44:05]produce_requested_data done [20:44:05]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72914,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [20:44:05]process_action_free close_receipt [20:44:05]json_value_free [20:44:05]json_value_free done [20:44:05]process_json_proto returns [20:44:05]Send response to host [20:44:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72914,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [20:44:05]free response buf [20:44:05]execute_script done [20:44:05]execute_script returns [20:44:05]free content buf [20:44:05]Sock 10.Close socket [20:44:05]Sock 10.Thread stoped [20:44:07]recv_with_timeout no data received [20:44:08]ConnectInit Can't take IP for lk.salyk.kg [20:44:08]CommunicateWithHost connect error [20:44:08]CommunicateWithHost err = -1 [20:44:08]OFD Sender: Server communicate error [20:44:13]OFD Sender: Processing packet 72914 [packets to send 279, broken 278] [20:44:13]ProducePacketName [20:44:13]name=ofd_packets/00072914 [20:44:13]OFD Sender: To server: pG, [20:44:13]CommunicateWithHost lk.salyk.kg:30040 [20:44:13]ConnectInit lk.salyk.kg [20:44:17]Connected sock=10 [20:44:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 D7 6E 00 01 FA 51 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 97 00 00 00 F4 03 04 00 92 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D2 1C 01 00 35 04 06 00 A7 0D 11 80 09 57 F0 17 91 15 40 A3 BB F8 [20:44:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4E 7B 47 00 FB 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 38 37 34 36 36 32 10 04 04 00 D2 1C 01 00 F4 03 04 00 57 45 22 67 B6 04 01 00 00 C7 52 A3 3A C0 D3 85 32 [20:44:17]CommunicateWithHost err = 0 [20:44:17]CheckOFDResponse [20:44:17]1017 (14) - 77093643461234 [20:44:17]1041 (16) - 0000000000874662 [20:44:17]1040 (4) - 72914 [20:44:17]1012 (4) - 30.10.2024 14:40 [20:44:17]1206 (1) - 0 [20:44:17]OFD Sender: Remove packet 72914 [20:44:17]ProducePacketName [20:44:17]name=ofd_packets/00072914 [20:44:17]NVStorageDeleteData [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:44]recv_with_timeout no data received [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:25]recv_with_timeout no data received [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:35]recv_with_timeout no data received [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:05]recv_with_timeout no data received [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:16]recv_with_timeout no data received [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:38]recv_with_timeout no data received [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:36]recv_with_timeout no data received [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:57]accept exits with 7 [20:51:57]New connection [20:51:57]New thread 3067194724 created [20:51:57]Thread 3067338084 joined [20:51:57]Waiting for new connection... [20:51:57] Sock 7.Parse request [20:51:57]Sock 7.Check first char [20:51:57]Sock 7.First char is OK [20:51:57]request: POST /json_proto HTTP/1.0 [20:51:57]Method: POST [20:51:57]URL: /json_proto [20:51:57]Method is POST - this is cgi request [20:51:57]url: /json_proto [20:51:57]query_string will be loaded in cgi processing [20:51:57]execute_cgi json_proto POST (null) [20:51:57]execute_cgi path=json_proto method=POST [20:51:57]POST find Content-Length [20:51:57]Host: 172.17.43.195:8080 [20:51:57]Content-Length: 677 [20:51:57]Content-Type: application/json [20:51:57] [20:51:57]POST finish read [20:51:57]Found Content-Length = 677 [20:51:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:57]execute_script... [20:51:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:57]POST & json_proto [20:51:57]process_json_proto [20:51:57]json parsed OK: [20:51:57]protocol is kg_v1.0 [20:51:57]action value=close_receipt [20:51:57]process_action close_receipt [20:51:57]cmd_close_receipt [20:51:57]MH_GetDate [20:51:57]Write to MH i2c: F0 00 00 09 05 FD [20:51:57]Write i2c OK [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: F0 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: F0 09 00 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: F0 09 00 09 05 00 6E 9C 22 67 74 2C AD 66 4C [20:51:57]GetLastDocTimeStamp 1730321042 [20:51:57]current date 1730321518 [20:51:57]FM_GetShiftState [20:51:57]SAM_PROTO_GetShiftState [20:51:57]wFMCommunicate request_size=4 [20:51:57]MH_SAM_APDU [20:51:57]CAPDU: 80 13 01 00 [20:51:57]Write to MH i2c: E2 08 00 0A 05 80 13 01 00 00 00 00 00 8C [20:51:57]Write i2c OK [20:51:57]MH_I2C_Read... [20:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:57]Read from MH i2c: E2 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: E2 0E 00 [20:51:57]MH_I2C_Read... [20:51:57]Read from MH i2c: E2 0E 00 0A 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 5E [20:51:57]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:51:57]wFMCommunicate OK [20:51:57]SAM_PROTO_GetShiftState done [20:51:57]FM_GetShiftState done [20:51:57]opened in 1730247109 [20:51:57]opened+sec_in_day 1730333509 [20:51:57]quantity*price = 50010 [20:51:57]sum+1 = 50012 [20:51:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 152 30.10.2024 20:51 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72915 ФПД: 111179357095658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T205158&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72915&fm=111179357095658&tin=02508201610067®Number=0000000000091644&sum=50000 [20:51:58]StoreToDocumentArchive [20:51:58]shift 556 fd 72915 [20:51:58]save to /storage/0556/doc_00072915 [20:51:58]save last doc name /storage/0556/doc_00072915 to /storage/kkm_last_doc_name [20:51:58]save OK [20:51:58]Clear old archive folders... [20:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:51:58]tlvbuf is 00690180 [20:51:58]SAM_PROTO_ClearQueue [20:51:58]wFMCommunicate request_size=4 [20:51:58]MH_SAM_APDU [20:51:58]CAPDU: 80 09 00 00 [20:51:58]Write to MH i2c: E2 08 00 17 05 80 09 00 00 00 00 00 00 8E [20:51:58]Write i2c OK [20:51:58]MH_I2C_Read... [20:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:58]Read from MH i2c: E2 [20:51:58]MH_I2C_Read... [20:51:58]Read from MH i2c: E2 03 00 [20:51:58]MH_I2C_Read... [20:51:58]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [20:51:58]RAPDU: 90 00 [20:51:58]wFMCommunicate OK [20:51:58]SAM_PROTO_ClearQueue done [20:51:58]KKMCreateOFDPacket [20:51:58]OFDProtocolAddRootSTLVToBuf [20:51:58]FM_MakeSignedData [20:51:58]FM_MakeSignedData [20:51:58]SAM_PROTO_SignData [20:51:58]wFMCommunicate request_size=4 [20:51:58]MH_SAM_APDU [20:51:58]CAPDU: 80 0D 01 02 [20:51:58]Write to MH i2c: E2 08 00 18 05 80 0D 01 02 00 00 00 00 96 [20:51:58]Write i2c OK [20:51:58]MH_I2C_Read... [20:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:58]Read from MH i2c: E2 [20:51:58]MH_I2C_Read... [20:51:58]Read from MH i2c: E2 03 00 [20:51:58]MH_I2C_Read... [20:51:58]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [20:51:58]RAPDU: 90 00 [20:51:58]wFMCommunicate OK [20:51:58]wFMCommunicate request_size=255 [20:51:58]MH_SAM_APDU [20:51:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 6E 9C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D3 1C 01 00 35 04 06 00 65 [20:51:58]Write to MH i2c: E2 02 01 19 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 98 00 00 00 F4 03 04 00 6E 9C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D3 1C 01 00 35 04 06 00 65 00 00 A9 [20:51:58]Write i2c OK [20:51:58]MH_I2C_Read... [20:51:58]OFD Sender: No OFD packet to send [20:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:59]Read from MH i2c: E2 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: E2 03 00 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [20:51:59]RAPDU: 90 00 [20:51:59]wFMCommunicate OK [20:51:59]wFMCommunicate request_size=10 [20:51:59]MH_SAM_APDU [20:51:59]CAPDU: 80 0D 02 02 05 1D F6 16 06 EA [20:51:59]Write to MH i2c: E2 0D 00 1A 05 80 0D 02 02 05 00 1D F6 16 06 EA 00 00 BC [20:51:59]Write i2c OK [20:51:59]MH_I2C_Read... [20:51:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:59]Read from MH i2c: E2 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: E2 03 00 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [20:51:59]RAPDU: 90 00 [20:51:59]wFMCommunicate OK [20:51:59]wFMCommunicate request_size=4 [20:51:59]MH_SAM_APDU [20:51:59]CAPDU: 80 0D 03 02 [20:51:59]Write to MH i2c: E2 08 00 1B 05 80 0D 03 02 00 00 00 00 9B [20:51:59]Write i2c OK [20:51:59]MH_I2C_Read... [20:51:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:59]Read from MH i2c: E2 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: E2 0B 00 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: E2 0B 00 1B 05 00 66 6F 38 93 76 FF B2 89 90 00 EC [20:51:59]RAPDU: 66 6F 38 93 76 FF B2 89 90 00 [20:51:59]wFMCommunicate OK [20:51:59]SAM_PROTO_SignData done [20:51:59]FM_MakeSignedData done [20:51:59]CreateOFDProtocolMessage [20:51:59]wFMCommunicate request_size=4 [20:51:59]MH_SAM_APDU [20:51:59]CAPDU: 80 11 00 00 [20:51:59]Write to MH i2c: E2 08 00 1C 05 80 11 00 00 00 00 00 00 9B [20:51:59]Write i2c OK [20:51:59]MH_I2C_Read... [20:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:59]Read from MH i2c: E2 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: E2 17 00 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: E2 17 00 1C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EF [20:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:51:59]wFMCommunicate OK [20:51:59]CreateOFDProtocolMessage done [20:51:59]OFDSenderStorePacket 72915 [20:51:59]StoreOFDPacket docnum=72915 [20:51:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 56 C0 07 01 9C 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 6E 9C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D3 1C 01 00 35 04 06 00 65 1D F6 16 06 EA 66 6F 38 93 76 FF B2 89 [20:51:59]CheckFolder [20:51:59]dirname=/storage/ofd_packets [20:51:59]CheckFolder done [20:51:59]ProducePacketName [20:51:59]name=ofd_packets/00072915 [20:51:59]NVStorageSaveData ofd_packets/00072915 [20:51:59]File name is /storage/ofd_packets/00072915 [20:51:59]Write 301 bytes [20:51:59]NVStorageSaveData done [20:51:59]OFDSenderStorePacket done [20:51:59]KKMCreateOFDPacket done [20:51:59]NVStorageSaveData kkm_last_timestamp [20:51:59]File name is /storage/kkm_last_timestamp [20:51:59]Write 4 bytes [20:51:59]NVStorageSaveData done [20:51:59]ExternCall_PrintAddStr [20:51:59]wPrintStart [20:51:59]Write to MH i2c: 01 00 00 1D 05 22 [20:51:59]Write i2c OK [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: 01 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: 01 07 00 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: 01 07 00 1D 05 00 00 00 00 00 FF 0F 37 [20:51:59]RasterBufferAndPrint [20:51:59]line Счет N : (1)952514 [20:51:59]line ИНН: 02508201610067 [20:51:59]line Контрольно-Кассовый Чек [20:51:59]line ПРОДАЖА [20:51:59]line ТРК (МРК, ГНК) : 52 [20:51:59]line Товар: 2710124500 [20:51:59]line Аи-95-К-3 [20:51:59]line 6.740 * 74.20 [20:51:59]line = 500.11 [20:51:59]line НДС 12% НСП 1% [20:51:59]line > о реализуемом товаре [20:51:59]line ОКРУГЛЕНИЕ: -0.11 [20:51:59]line ИТОГО: 500.00 [20:51:59]line Внесено: 500.00 [20:51:59]line СДАЧА: 0.00 [20:51:59]line НСП 1% : 4.43 [20:51:59]line НДС 12% : 53.11 [20:51:59]line Наличными: 500.00 [20:51:59]line Безнал.: 0.00 [20:51:59]line Место: АЗС № 113 "Партнер Нефть" [20:51:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:51:59]line СНО: Общий режим [20:51:59]line Чек 152 30.10.2024 20:51 [20:51:59]line Смена: 556 ФФД: 1.0 [20:51:59]line ЗНМ: 0300000087 [20:51:59]line РНМ: 0000000000091644 [20:51:59]line Версия ККМ: 001 [20:51:59]line ФМ: 0000000000874662 [20:51:59]line ФД: 72915 [20:51:59]line ФПД: 111179357095658 [20:51:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T205158&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72915&fm=111179357095658&tin=02508201610067®Number=0000000000091644&sum=50000 [20:51:59]OFD Sender: Processing packet 72915 [packets to send 279, broken 278] [20:51:59]ProducePacketName [20:51:59]name=ofd_packets/00072915 [20:51:59]OFD Sender: To server: pG, [20:51:59]CommunicateWithHost lk.salyk.kg:30040 [20:51:59]ConnectInit lk.salyk.kg [20:51:59]written 0, free lines is 4095 [20:51:59]Write to MH i2c: 01 00 00 48 05 4D [20:51:59]Write i2c OK [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: 01 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: 01 07 00 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: 01 07 00 48 05 00 00 00 00 00 C2 0C 22 [20:51:59]RasterBufferAndPrint [20:51:59]line [20:51:59]line [20:51:59]line [20:51:59]line [20:51:59]line [20:51:59]written 0, free lines is 3272 [20:51:59]MH_Cut [20:51:59]Write to MH i2c: D1 01 00 4F 05 01 26 [20:51:59]Write i2c OK [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: D1 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: D1 01 00 [20:51:59]MH_I2C_Read... [20:51:59]Read from MH i2c: D1 01 00 4F 05 00 25 [20:51:59]Write to MH i2c: 01 00 00 50 05 55 [20:51:59]Write i2c OK [20:51:59]MH_I2C_Read... [20:52:00]*** Cut start [20:52:00]*** Partial cut [20:52:00]*** CUTSNS_PIN = 1 [20:52:00]*** CUTSNS_PIN = 0 [20:52:01]*** Brake cut motor [20:52:01]Read from MH i2c: 01 [20:52:01]MH_I2C_Read... [20:52:01]*** Stop cut motor [20:52:01]*** Cut end [20:52:01]Read from MH i2c: 01 07 00 [20:52:01]MH_I2C_Read... [20:52:01]Read from MH i2c: 01 07 00 50 05 00 00 00 00 00 FF 0F 6A [20:52:01]process_action close_receipt done [20:52:01]requested_data is exist [20:52:01]produce_requested_data [20:52:01]requested_item fm.sn is exist - process it [20:52:01]wFMCommunicate request_size=4 [20:52:01]MH_SAM_APDU [20:52:01]CAPDU: 80 11 00 00 [20:52:01]Write to MH i2c: E2 08 00 51 05 80 11 00 00 00 00 00 00 D0 [20:52:01]Write i2c OK [20:52:01]MH_I2C_Read... [20:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:01]Read from MH i2c: E2 [20:52:01]MH_I2C_Read... [20:52:01]Read from MH i2c: E2 17 00 [20:52:01]MH_I2C_Read... [20:52:01]Read from MH i2c: E2 17 00 51 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 24 [20:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:52:01]wFMCommunicate OK [20:52:01]requested_item fd.num is exist - process it [20:52:01]SAM_PROTO_GetFieldsCounters [20:52:01]wFMCommunicate request_size=4 [20:52:01]MH_SAM_APDU [20:52:01]CAPDU: 80 13 00 00 [20:52:01]Write to MH i2c: E2 08 00 52 05 80 13 00 00 00 00 00 00 D3 [20:52:01]Write i2c OK [20:52:01]MH_I2C_Read... [20:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:01]Read from MH i2c: E2 [20:52:01]MH_I2C_Read... [20:52:01]Read from MH i2c: E2 62 00 [20:52:01]MH_I2C_Read... [20:52:01]Read from MH i2c: E2 62 00 52 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D3 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [20:52:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D3 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:01]wFMCommunicate OK [20:52:01]SAM_PROTO_GetFieldsCounters done [20:52:01]requested_item shift.num is exist - process it [20:52:01]requested_item shift.opened is exist - process it [20:52:01]req_shift_opened [20:52:01]FM_GetShiftState [20:52:01]SAM_PROTO_GetShiftState [20:52:01]wFMCommunicate request_size=4 [20:52:01]MH_SAM_APDU [20:52:01]CAPDU: 80 13 01 00 [20:52:01]Write to MH i2c: E2 08 00 53 05 80 13 01 00 00 00 00 00 D5 [20:52:01]Write i2c OK [20:52:01]MH_I2C_Read... [20:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:01]Read from MH i2c: E2 [20:52:01]MH_I2C_Read... [20:52:01]Read from MH i2c: E2 0E 00 [20:52:01]MH_I2C_Read... [20:52:01]Read from MH i2c: E2 0E 00 53 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A7 [20:52:01]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [20:52:01]wFMCommunicate OK [20:52:01]SAM_PROTO_GetShiftState done [20:52:01]FM_GetShiftState done [20:52:01]req_shift_opened done [20:52:01]requested_item shift.open_date is exist - process it [20:52:01]req_shift_open_date [20:52:01]req_shift_open_date done [20:52:01]produce_requested_data done [20:52:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72915,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [20:52:01]process_action_free close_receipt [20:52:01]json_value_free [20:52:01]json_value_free done [20:52:01]process_json_proto returns [20:52:01]Send response to host [20:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72915,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [20:52:01]free response buf [20:52:01]execute_script done [20:52:01]execute_script returns [20:52:01]free content buf [20:52:01]Sock 7.Close socket [20:52:01]Sock 7.Thread stoped [20:52:01]Connected sock=11 [20:52:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 56 C0 07 01 9C 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 6E 9C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D3 1C 01 00 35 04 06 00 65 1D F6 16 06 EA 66 6F 38 93 76 FF B2 89 [20:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 12 42 47 00 87 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D3 1C 01 00 F4 03 04 00 28 47 22 67 B6 04 01 00 00 85 0A 70 39 B3 45 B0 FC [20:52:03]CommunicateWithHost err = 0 [20:52:03]CheckOFDResponse [20:52:03]1017 (14) - 77093643461234 [20:52:03]1041 (16) - 0000000000874662 [20:52:03]1040 (4) - 72915 [20:52:03]1012 (4) - 30.10.2024 14:48 [20:52:03]1206 (1) - 0 [20:52:03]OFD Sender: Remove packet 72915 [20:52:03]ProducePacketName [20:52:03]name=ofd_packets/00072915 [20:52:03]NVStorageDeleteData [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:21]recv_with_timeout no data received [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]recv_with_timeout no data received [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:34]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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:49]OFD Sender: No OFD packet to send [20:56:50]recv_with_timeout no data received [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:06]recv_with_timeout no data received [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:17]recv_with_timeout no data received [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:09]recv_with_timeout no data received [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:42]recv_with_timeout no data received [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:29]recv_with_timeout no data received [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:41]recv_with_timeout no data received [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:10]recv_with_timeout no data received [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:33]recv_with_timeout no data received [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]recv_with_timeout no data received [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:16]recv_with_timeout no data received [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:37]recv_with_timeout no data received [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:54]recv_with_timeout no data received [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:39]recv_with_timeout no data received [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]recv_with_timeout no data received [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:12:59]recv_with_timeout no data received [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]recv_with_timeout no data received [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:51]recv_with_timeout no data received [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:08]recv_with_timeout no data received [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:19]recv_with_timeout no data received [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:29]recv_with_timeout no data received [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:12]recv_with_timeout no data received [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]recv_with_timeout no data received [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:23]recv_with_timeout no data received [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:48]recv_with_timeout no data received [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:20]recv_with_timeout no data received [21:19:21]OFD Sender: No OFD packet to send [21:19:25]accept exits with 9 [21:19:25]New connection [21:19:25]New thread 3067338084 created [21:19:25]Thread 3067194724 joined [21:19:25]Waiting for new connection... [21:19:25] Sock 9.Parse request [21:19:25]Sock 9.Check first char [21:19:25]Sock 9.First char is OK [21:19:25]request: POST /json_proto HTTP/1.0 [21:19:25]Method: POST [21:19:25]URL: /json_proto [21:19:25]Method is POST - this is cgi request [21:19:25]url: /json_proto [21:19:25]query_string will be loaded in cgi processing [21:19:25]execute_cgi json_proto POST (null) [21:19:25]execute_cgi path=json_proto method=POST [21:19:25]POST find Content-Length [21:19:25]Host: 172.17.43.195:8080 [21:19:25]Content-Length: 792 [21:19:25]Content-Type: application/json [21:19:25] [21:19:25]POST finish read [21:19:25]Found Content-Length = 792 [21:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952516", "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" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:25]execute_script... [21:19:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952516", "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" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:25]POST & json_proto [21:19:25]process_json_proto [21:19:25]json parsed OK: [21:19:25]protocol is kg_v1.0 [21:19:25]action value=close_receipt [21:19:25]process_action close_receipt [21:19:25]cmd_close_receipt [21:19:25]MH_GetDate [21:19:25]Write to MH i2c: F0 00 00 54 05 48 [21:19:25]Write i2c OK [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: F0 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: F0 09 00 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: F0 09 00 54 05 00 DE A2 22 67 74 2C AD 66 0D [21:19:25]GetLastDocTimeStamp 1730321518 [21:19:25]current date 1730323166 [21:19:25]FM_GetShiftState [21:19:25]SAM_PROTO_GetShiftState [21:19:25]wFMCommunicate request_size=4 [21:19:25]MH_SAM_APDU [21:19:25]CAPDU: 80 13 01 00 [21:19:25]Write to MH i2c: E2 08 00 55 05 80 13 01 00 00 00 00 00 D7 [21:19:25]Write i2c OK [21:19:25]MH_I2C_Read... [21:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:25]Read from MH i2c: E2 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 0E 00 [21:19:25]MH_I2C_Read... [21:19:25]Read from MH i2c: E2 0E 00 55 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 A9 [21:19:25]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [21:19:25]wFMCommunicate OK [21:19:25]SAM_PROTO_GetShiftState done [21:19:25]FM_GetShiftState done [21:19:25]opened in 1730247109 [21:19:25]opened+sec_in_day 1730333509 [21:19:25]quantity*price = 0 [21:19:25]sum+1 = 1 [21:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 153 30.10.2024 21:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72916 ФПД: 40778324717273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T211926&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72916&fm=40778324717273&tin=02508201610067®Number=0000000000091644&sum=0 [21:19:26]StoreToDocumentArchive [21:19:26]shift 556 fd 72916 [21:19:26]save to /storage/0556/doc_00072916 [21:19:26]save last doc name /storage/0556/doc_00072916 to /storage/kkm_last_doc_name [21:19:26]save OK [21:19:26]Clear old archive folders... [21:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:26]tlvbuf is 00691600 [21:19:26]SAM_PROTO_ClearQueue [21:19:26]wFMCommunicate request_size=4 [21:19:26]MH_SAM_APDU [21:19:26]CAPDU: 80 09 00 00 [21:19:26]Write to MH i2c: E2 08 00 62 05 80 09 00 00 00 00 00 00 D9 [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:26]Read from MH i2c: E2 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 03 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [21:19:26]RAPDU: 90 00 [21:19:26]wFMCommunicate OK [21:19:26]SAM_PROTO_ClearQueue done [21:19:26]KKMCreateOFDPacket [21:19:26]OFDProtocolAddRootSTLVToBuf [21:19:26]FM_MakeSignedData [21:19:26]FM_MakeSignedData [21:19:26]SAM_PROTO_SignData [21:19:26]wFMCommunicate request_size=4 [21:19:26]MH_SAM_APDU [21:19:26]CAPDU: 80 0D 01 02 [21:19:26]Write to MH i2c: E2 08 00 63 05 80 0D 01 02 00 00 00 00 E1 [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:26]Read from MH i2c: E2 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 03 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [21:19:26]RAPDU: 90 00 [21:19:26]wFMCommunicate OK [21:19:26]wFMCommunicate request_size=255 [21:19:26]MH_SAM_APDU [21:19:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 DE A2 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D4 1C 01 00 35 04 06 00 25 [21:19:26]Write to MH i2c: E2 02 01 64 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 DE A2 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D4 1C 01 00 35 04 06 00 25 00 00 E4 [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:26]Read from MH i2c: E2 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 03 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [21:19:26]RAPDU: 90 00 [21:19:26]wFMCommunicate OK [21:19:26]wFMCommunicate request_size=10 [21:19:26]MH_SAM_APDU [21:19:26]CAPDU: 80 0D 02 02 05 16 71 8F 2E D9 [21:19:26]Write to MH i2c: E2 0D 00 65 05 80 0D 02 02 05 00 16 71 8F 2E D9 00 00 0B [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:27]Read from MH i2c: E2 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 03 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [21:19:27]RAPDU: 90 00 [21:19:27]wFMCommunicate OK [21:19:27]wFMCommunicate request_size=4 [21:19:27]MH_SAM_APDU [21:19:27]CAPDU: 80 0D 03 02 [21:19:27]Write to MH i2c: E2 08 00 66 05 80 0D 03 02 00 00 00 00 E6 [21:19:27]Write i2c OK [21:19:27]MH_I2C_Read... [21:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:27]Read from MH i2c: E2 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 0B 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 0B 00 66 05 00 23 CE 46 A9 05 C6 5D 5D 90 00 4C [21:19:27]RAPDU: 23 CE 46 A9 05 C6 5D 5D 90 00 [21:19:27]wFMCommunicate OK [21:19:27]SAM_PROTO_SignData done [21:19:27]FM_MakeSignedData done [21:19:27]CreateOFDProtocolMessage [21:19:27]wFMCommunicate request_size=4 [21:19:27]MH_SAM_APDU [21:19:27]CAPDU: 80 11 00 00 [21:19:27]Write to MH i2c: E2 08 00 67 05 80 11 00 00 00 00 00 00 E6 [21:19:27]Write i2c OK [21:19:27]MH_I2C_Read... [21:19:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:27]Read from MH i2c: E2 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 17 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: E2 17 00 67 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3A [21:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:19:27]wFMCommunicate OK [21:19:27]CreateOFDProtocolMessage done [21:19:27]OFDSenderStorePacket 72916 [21:19:27]StoreOFDPacket docnum=72916 [21:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1B E1 07 01 2E 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 DE A2 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D4 1C 01 00 35 04 06 00 25 16 71 8F 2E D9 23 CE 46 A9 05 C6 5D 5D [21:19:27]CheckFolder [21:19:27]dirname=/storage/ofd_packets [21:19:27]CheckFolder done [21:19:27]ProducePacketName [21:19:27]name=ofd_packets/00072916 [21:19:27]NVStorageSaveData ofd_packets/00072916 [21:19:27]File name is /storage/ofd_packets/00072916 [21:19:27]Write 301 bytes [21:19:27]NVStorageSaveData done [21:19:27]OFDSenderStorePacket done [21:19:27]KKMCreateOFDPacket done [21:19:27]NVStorageSaveData kkm_last_timestamp [21:19:27]File name is /storage/kkm_last_timestamp [21:19:27]Write 4 bytes [21:19:27]NVStorageSaveData done [21:19:27]OFD Sender: Processing packet 72916 [packets to send 279, broken 278] [21:19:27]ProducePacketName [21:19:27]name=ofd_packets/00072916 [21:19:27]OFD Sender: To server: pG, [21:19:27]CommunicateWithHost lk.salyk.kg:30040 [21:19:27]ConnectInit lk.salyk.kg [21:19:27]ExternCall_PrintAddStr [21:19:27]wPrintStart [21:19:27]Write to MH i2c: 01 00 00 68 05 6D [21:19:27]Write i2c OK [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: 01 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: 01 07 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: 01 07 00 68 05 00 00 00 00 00 FF 0F 82 [21:19:27]RasterBufferAndPrint [21:19:27]line Счет N : (1)952516 [21:19:27]line ИНН: 02508201610067 [21:19:27]line Контрольно-Кассовый Чек [21:19:27]line ПРОДАЖА [21:19:27]line ТРК (МРК, ГНК) : 42 [21:19:27]line Товар: 2710124130 [21:19:27]line Аи-92-К-5 [21:19:27]line 50.000 * 0.00 [21:19:27]line = 0.00 [21:19:27]line НДС 12% НСП 1% [21:19:27]line > о реализуемом товаре [21:19:27]line ИТОГО: 0.00 [21:19:27]line НСП 1% : 0.00 [21:19:27]line НДС 12% : 0.00 [21:19:27]line Наличными: 0.00 [21:19:27]line Безнал.: 0.00 [21:19:27]line Место: АЗС № 113 "Партнер Нефть" [21:19:27]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:19:27]line СНО: Общий режим [21:19:27]line Чек 153 30.10.2024 21:19 [21:19:27]line Смена: 556 ФФД: 1.0 [21:19:27]line ЗНМ: 0300000087 [21:19:27]line РНМ: 0000000000091644 [21:19:27]line Версия ККМ: 001 [21:19:27]line Талоны: Топливная Карта [21:19:27]line 03047 [21:19:27]line ФМ: 0000000000874662 [21:19:27]line ФД: 72916 [21:19:27]line ФПД: 40778324717273 [21:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T211926&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72916&fm=40778324717273&tin=02508201610067®Number=0000000000091644&sum=0 [21:19:27]written 0, free lines is 4095 [21:19:27]Write to MH i2c: 01 00 00 92 05 97 [21:19:27]Write i2c OK [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: 01 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: 01 07 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: 01 07 00 92 05 00 00 00 00 00 DE 0C 88 [21:19:27]RasterBufferAndPrint [21:19:27]line [21:19:27]line [21:19:27]line [21:19:27]line [21:19:27]line [21:19:27]written 0, free lines is 3300 [21:19:27]MH_Cut [21:19:27]Write to MH i2c: D1 01 00 99 05 01 70 [21:19:27]Write i2c OK [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: D1 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: D1 01 00 [21:19:27]MH_I2C_Read... [21:19:27]Read from MH i2c: D1 01 00 99 05 00 6F [21:19:27]Write to MH i2c: 01 00 00 9A 05 9F [21:19:27]Write i2c OK [21:19:27]MH_I2C_Read... [21:19:28]*** Cut start [21:19:28]*** Partial cut [21:19:28]*** CUTSNS_PIN = 1 [21:19:28]*** CUTSNS_PIN = 0 [21:19:28]*** Brake cut motor [21:19:29]Read from MH i2c: 01 [21:19:29]MH_I2C_Read... [21:19:29]*** Stop cut motor [21:19:29]*** Cut end [21:19:29]Read from MH i2c: 01 07 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FF 0F B4 [21:19:29]process_action close_receipt done [21:19:29]requested_data is exist [21:19:29]produce_requested_data [21:19:29]requested_item fm.sn is exist - process it [21:19:29]wFMCommunicate request_size=4 [21:19:29]MH_SAM_APDU [21:19:29]CAPDU: 80 11 00 00 [21:19:29]Write to MH i2c: E2 08 00 9B 05 80 11 00 00 00 00 00 00 1A [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:29]Read from MH i2c: E2 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 17 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 17 00 9B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 6E [21:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:19:29]wFMCommunicate OK [21:19:29]requested_item fd.num is exist - process it [21:19:29]SAM_PROTO_GetFieldsCounters [21:19:29]wFMCommunicate request_size=4 [21:19:29]MH_SAM_APDU [21:19:29]CAPDU: 80 13 00 00 [21:19:29]Write to MH i2c: E2 08 00 9C 05 80 13 00 00 00 00 00 00 1D [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:29]Read from MH i2c: E2 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 62 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 62 00 9C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D4 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [21:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D4 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:29]wFMCommunicate OK [21:19:29]SAM_PROTO_GetFieldsCounters done [21:19:29]requested_item shift.num is exist - process it [21:19:29]requested_item shift.opened is exist - process it [21:19:29]req_shift_opened [21:19:29]FM_GetShiftState [21:19:29]SAM_PROTO_GetShiftState [21:19:29]wFMCommunicate request_size=4 [21:19:29]MH_SAM_APDU [21:19:29]CAPDU: 80 13 01 00 [21:19:29]Write to MH i2c: E2 08 00 9D 05 80 13 01 00 00 00 00 00 1F [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:29]Read from MH i2c: E2 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 0E 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 0E 00 9D 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 F1 [21:19:29]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [21:19:29]wFMCommunicate OK [21:19:29]SAM_PROTO_GetShiftState done [21:19:29]FM_GetShiftState done [21:19:29]req_shift_opened done [21:19:29]requested_item shift.open_date is exist - process it [21:19:29]req_shift_open_date [21:19:29]req_shift_open_date done [21:19:29]produce_requested_data done [21:19:29]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72916,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [21:19:29]process_action_free close_receipt [21:19:29]json_value_free [21:19:29]json_value_free done [21:19:29]process_json_proto returns [21:19:29]Send response to host [21:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72916,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [21:19:29]free response buf [21:19:29]execute_script done [21:19:29]execute_script returns [21:19:29]free content buf [21:19:29]Sock 9.Close socket [21:19:29]Sock 9.Thread stoped [21:19:31]recv_with_timeout no data received [21:19:32]ConnectInit Can't take IP for lk.salyk.kg [21:19:32]CommunicateWithHost connect error [21:19:32]CommunicateWithHost err = -1 [21:19:32]OFD Sender: Server communicate error [21:19:37]OFD Sender: Processing packet 72916 [packets to send 279, broken 278] [21:19:37]ProducePacketName [21:19:37]name=ofd_packets/00072916 [21:19:37]OFD Sender: To server: pG, [21:19:37]CommunicateWithHost lk.salyk.kg:30040 [21:19:37]ConnectInit lk.salyk.kg [21:19:38]Connected sock=10 [21:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1B E1 07 01 2E 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 DE A2 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D4 1C 01 00 35 04 06 00 25 16 71 8F 2E D9 23 CE 46 A9 05 C6 5D 5D [21:19:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FA 77 47 00 5E BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D4 1C 01 00 F4 03 04 00 A0 4D 22 67 B6 04 01 00 00 A3 DE 17 4F 0B 11 4B 41 [21:19:38]CommunicateWithHost err = 0 [21:19:38]CheckOFDResponse [21:19:38]1017 (14) - 77093643461234 [21:19:38]1041 (16) - 0000000000874662 [21:19:38]1040 (4) - 72916 [21:19:38]1012 (4) - 30.10.2024 15:15 [21:19:38]1206 (1) - 0 [21:19:38]OFD Sender: Remove packet 72916 [21:19:38]ProducePacketName [21:19:38]name=ofd_packets/00072916 [21:19:38]NVStorageDeleteData [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:48]recv_with_timeout no data received [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]recv_with_timeout no data received [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21: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:20]recv_with_timeout no data received [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:14]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:20]recv_with_timeout no data received [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:30]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:42]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:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:31]recv_with_timeout no data received [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:42]recv_with_timeout no data received [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:30]recv_with_timeout no data received [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:40]recv_with_timeout no data received [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:29:58]recv_with_timeout no data received [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:49]recv_with_timeout no data received [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:06]recv_with_timeout no data received [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:11]recv_with_timeout no data received [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:41]recv_with_timeout no data received [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:22]recv_with_timeout no data received [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:53]recv_with_timeout no data received [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:27]recv_with_timeout no data received [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:23]recv_with_timeout no data received [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:41]recv_with_timeout no data received [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:13]recv_with_timeout no data received [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:13]recv_with_timeout no data received [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:23]recv_with_timeout no data received [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:46]recv_with_timeout no data received [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:12]recv_with_timeout no data received [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:19]recv_with_timeout no data received [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]accept exits with 7 [21:45:36]New connection [21:45:36]New thread 3067194724 created [21:45:36]Thread 3067338084 joined [21:45:36]Waiting for new connection... [21:45:36] Sock 7.Parse request [21:45:36]Sock 7.Check first char [21:45:36]Sock 7.First char is OK [21:45:36]request: POST /json_proto HTTP/1.0 [21:45:36]Method: POST [21:45:36]URL: /json_proto [21:45:36]Method is POST - this is cgi request [21:45:36]url: /json_proto [21:45:36]query_string will be loaded in cgi processing [21:45:36]execute_cgi json_proto POST (null) [21:45:36]execute_cgi path=json_proto method=POST [21:45:36]POST find Content-Length [21:45:36]Host: 172.17.43.195:8080 [21:45:36]Content-Length: 682 [21:45:36]Content-Type: application/json [21:45:36] [21:45:36]POST finish read [21:45:36]Found Content-Length = 682 [21:45:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 19.890, "sum" : 773.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 773.00, "payments": [ { "type": 0, "sum" : 773.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:36]execute_script... [21:45:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 19.890, "sum" : 773.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 773.00, "payments": [ { "type": 0, "sum" : 773.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:36]POST & json_proto [21:45:36]process_json_proto [21:45:36]json parsed OK: [21:45:36]protocol is kg_v1.0 [21:45:36]action value=close_receipt [21:45:36]process_action close_receipt [21:45:36]cmd_close_receipt [21:45:36]MH_GetDate [21:45:36]Write to MH i2c: F0 00 00 9E 05 92 [21:45:36]Write i2c OK [21:45:36]MH_I2C_Read... [21:45:36]Read from MH i2c: F0 [21:45:36]MH_I2C_Read... [21:45:36]Read from MH i2c: F0 09 00 [21:45:36]MH_I2C_Read... [21:45:36]Read from MH i2c: F0 09 00 9E 05 00 01 A9 22 67 74 2C AD 66 81 [21:45:36]GetLastDocTimeStamp 1730323166 [21:45:36]current date 1730324737 [21:45:36]FM_GetShiftState [21:45:36]SAM_PROTO_GetShiftState [21:45:36]wFMCommunicate request_size=4 [21:45:36]MH_SAM_APDU [21:45:36]CAPDU: 80 13 01 00 [21:45:36]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [21:45:36]Write i2c OK [21:45:36]MH_I2C_Read... [21:45:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:36]Read from MH i2c: E2 [21:45:36]MH_I2C_Read... [21:45:36]Read from MH i2c: E2 0E 00 [21:45:36]MH_I2C_Read... [21:45:36]Read from MH i2c: E2 0E 00 9F 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 F3 [21:45:36]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [21:45:36]wFMCommunicate OK [21:45:36]SAM_PROTO_GetShiftState done [21:45:36]FM_GetShiftState done [21:45:36]opened in 1730247109 [21:45:36]opened+sec_in_day 1730333509 [21:45:36]quantity*price = 77372 [21:45:36]sum+1 = 77373 [21:45:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 773.00 Внесено: 1000.00 СДАЧА: 227.00 НСП 1% : 6.85 НДС 12% : 82.16 Наличными: 773.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 154 30.10.2024 21:45 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72917 ФПД: 51648581701077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T214537&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72917&fm=51648581701077&tin=02508201610067®Number=0000000000091644&sum=77300 [21:45:37]StoreToDocumentArchive [21:45:37]shift 556 fd 72917 [21:45:37]save to /storage/0556/doc_00072917 [21:45:37]save last doc name /storage/0556/doc_00072917 to /storage/kkm_last_doc_name [21:45:37]save OK [21:45:37]Clear old archive folders... [21:45:37]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:45:37]tlvbuf is 0070AA30 [21:45:37]SAM_PROTO_ClearQueue [21:45:37]wFMCommunicate request_size=4 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 09 00 00 [21:45:37]Write to MH i2c: E2 08 00 AC 05 80 09 00 00 00 00 00 00 23 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [21:45:37]RAPDU: 90 00 [21:45:37]wFMCommunicate OK [21:45:37]SAM_PROTO_ClearQueue done [21:45:37]KKMCreateOFDPacket [21:45:37]OFDProtocolAddRootSTLVToBuf [21:45:37]FM_MakeSignedData [21:45:37]FM_MakeSignedData [21:45:37]SAM_PROTO_SignData [21:45:37]wFMCommunicate request_size=4 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 0D 01 02 [21:45:37]Write to MH i2c: E2 08 00 AD 05 80 0D 01 02 00 00 00 00 2B [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [21:45:37]RAPDU: 90 00 [21:45:37]wFMCommunicate OK [21:45:37]wFMCommunicate request_size=255 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B2 4D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 3C 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 20 00 00 00 00 07 04 06 00 F4 2D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 01 A9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D5 1C 01 00 35 04 06 00 2E F9 [21:45:37]Write to MH i2c: E2 02 01 AE 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B2 4D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 3C 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 20 00 00 00 00 07 04 06 00 F4 2D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 01 A9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D5 1C 01 00 35 04 06 00 2E F9 00 00 C4 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [21:45:37]RAPDU: 90 00 [21:45:37]wFMCommunicate OK [21:45:37]wFMCommunicate request_size=9 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 0D 02 02 04 5F 5D 8D D5 [21:45:37]Write to MH i2c: E2 0C 00 AF 05 80 0D 02 02 04 00 5F 5D 8D D5 00 00 54 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [21:45:37]RAPDU: 90 00 [21:45:37]wFMCommunicate OK [21:45:37]wFMCommunicate request_size=4 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 0D 03 02 [21:45:37]Write to MH i2c: E2 08 00 B0 05 80 0D 03 02 00 00 00 00 30 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 0B 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 0B 00 B0 05 00 6F AC 84 F7 38 43 0D CF 90 00 1E [21:45:37]RAPDU: 6F AC 84 F7 38 43 0D CF 90 00 [21:45:37]wFMCommunicate OK [21:45:37]SAM_PROTO_SignData done [21:45:37]FM_MakeSignedData done [21:45:37]CreateOFDProtocolMessage [21:45:37]wFMCommunicate request_size=4 [21:45:37]MH_SAM_APDU [21:45:37]CAPDU: 80 11 00 00 [21:45:37]Write to MH i2c: E2 08 00 B1 05 80 11 00 00 00 00 00 00 30 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:37]Read from MH i2c: E2 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 17 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: E2 17 00 B1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 84 [21:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:45:37]wFMCommunicate OK [21:45:37]CreateOFDProtocolMessage done [21:45:37]OFDSenderStorePacket 72917 [21:45:37]StoreOFDPacket docnum=72917 [21:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 FE 90 06 01 3B 70 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B2 4D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 3C 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 20 00 00 00 00 07 04 06 00 F4 2D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 01 A9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D5 1C 01 00 35 04 06 00 2E F9 5F 5D 8D D5 6F AC 84 F7 38 43 0D CF [21:45:37]CheckFolder [21:45:37]dirname=/storage/ofd_packets [21:45:37]CheckFolder done [21:45:37]ProducePacketName [21:45:37]name=ofd_packets/00072917 [21:45:37]NVStorageSaveData ofd_packets/00072917 [21:45:37]File name is /storage/ofd_packets/00072917 [21:45:37]Write 300 bytes [21:45:37]NVStorageSaveData done [21:45:37]OFDSenderStorePacket done [21:45:37]KKMCreateOFDPacket done [21:45:37]NVStorageSaveData kkm_last_timestamp [21:45:37]File name is /storage/kkm_last_timestamp [21:45:37]Write 4 bytes [21:45:37]NVStorageSaveData done [21:45:37]ExternCall_PrintAddStr [21:45:37]wPrintStart [21:45:37]Write to MH i2c: 01 00 00 B2 05 B7 [21:45:37]Write i2c OK [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: 01 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: 01 07 00 [21:45:37]MH_I2C_Read... [21:45:37]Read from MH i2c: 01 07 00 B2 05 00 00 00 00 00 FF 0F CC [21:45:37]RasterBufferAndPrint [21:45:37]line Счет N : (1)952518 [21:45:37]line ИНН: 02508201610067 [21:45:37]line Контрольно-Кассовый Чек [21:45:37]line ПРОДАЖА [21:45:37]line ТРК (МРК, ГНК) : 71 [21:45:37]line Товар: 2711190000 [21:45:37]line ГАЗ-К-3 [21:45:37]line 19.890 * 38.90 [21:45:37]line = 773.72 [21:45:37]line НДС 12% НСП 1% [21:45:37]line > о реализуемом товаре [21:45:37]line ОКРУГЛЕНИЕ: -0.72 [21:45:37]line ИТОГО: 773.00 [21:45:37]line Внесено: 1000.00 [21:45:37]line СДАЧА: 227.00 [21:45:37]line НСП 1% : 6.85 [21:45:37]line НДС 12% : 82.16 [21:45:37]line Наличными: 773.00 [21:45:38]line Безнал.: 0.00 [21:45:38]line Место: АЗС № 113 "Партнер Нефть" [21:45:38]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:45:38]line СНО: Общий режим [21:45:38]line Чек 154 30.10.2024 21:45 [21:45:38]line Смена: 556 ФФД: 1.0 [21:45:38]line ЗНМ: 0300000087 [21:45:38]line РНМ: 0000000000091644 [21:45:38]line Версия ККМ: 001 [21:45:38]line ФМ: 0000000000874662 [21:45:38]line ФД: 72917 [21:45:38]line ФПД: 51648581701077 [21:45:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T214537&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72917&fm=51648581701077&tin=02508201610067®Number=0000000000091644&sum=77300 [21:45:38]OFD Sender: Processing packet 72917 [packets to send 279, broken 278] [21:45:38]ProducePacketName [21:45:38]name=ofd_packets/00072917 [21:45:38]OFD Sender: To server: pG, [21:45:38]CommunicateWithHost lk.salyk.kg:30040 [21:45:38]ConnectInit lk.salyk.kg [21:45:38]written 0, free lines is 4095 [21:45:38]Write to MH i2c: 01 00 00 DD 05 E2 [21:45:38]Write i2c OK [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: 01 [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: 01 07 00 [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: 01 07 00 DD 05 00 00 00 00 00 D1 0C C6 [21:45:38]RasterBufferAndPrint [21:45:38]line [21:45:38]line [21:45:38]line [21:45:38]line [21:45:38]line [21:45:38]written 0, free lines is 3288 [21:45:38]MH_Cut [21:45:38]Write to MH i2c: D1 01 00 E4 05 01 BB [21:45:38]Write i2c OK [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: D1 [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: D1 01 00 [21:45:38]MH_I2C_Read... [21:45:38]Read from MH i2c: D1 01 00 E4 05 00 BA [21:45:38]Write to MH i2c: 01 00 00 E5 05 EA [21:45:38]Write i2c OK [21:45:38]MH_I2C_Read... [21:45:39]recv_with_timeout no data received [21:45:39]*** Cut start [21:45:39]*** Partial cut [21:45:39]*** CUTSNS_PIN = 1 [21:45:39]*** CUTSNS_PIN = 0 [21:45:39]*** Brake cut motor [21:45:40]Read from MH i2c: 01 [21:45:40]MH_I2C_Read... [21:45:40]*** Stop cut motor [21:45:40]*** Cut end [21:45:40]Read from MH i2c: 01 07 00 [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 FF 0F FF [21:45:40]process_action close_receipt done [21:45:40]requested_data is exist [21:45:40]produce_requested_data [21:45:40]requested_item fm.sn is exist - process it [21:45:40]wFMCommunicate request_size=4 [21:45:40]MH_SAM_APDU [21:45:40]CAPDU: 80 11 00 00 [21:45:40]Write to MH i2c: E2 08 00 E6 05 80 11 00 00 00 00 00 00 65 [21:45:40]Write i2c OK [21:45:40]MH_I2C_Read... [21:45:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:40]Read from MH i2c: E2 [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: E2 17 00 [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: E2 17 00 E6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B9 [21:45:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:45:40]wFMCommunicate OK [21:45:40]requested_item fd.num is exist - process it [21:45:40]SAM_PROTO_GetFieldsCounters [21:45:40]wFMCommunicate request_size=4 [21:45:40]MH_SAM_APDU [21:45:40]CAPDU: 80 13 00 00 [21:45:40]Write to MH i2c: E2 08 00 E7 05 80 13 00 00 00 00 00 00 68 [21:45:40]Write i2c OK [21:45:40]MH_I2C_Read... [21:45:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:40]Read from MH i2c: E2 [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: E2 62 00 [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: E2 62 00 E7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D5 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [21:45:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D5 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:40]wFMCommunicate OK [21:45:40]SAM_PROTO_GetFieldsCounters done [21:45:40]requested_item shift.num is exist - process it [21:45:40]requested_item shift.opened is exist - process it [21:45:40]req_shift_opened [21:45:40]FM_GetShiftState [21:45:40]SAM_PROTO_GetShiftState [21:45:40]wFMCommunicate request_size=4 [21:45:40]MH_SAM_APDU [21:45:40]CAPDU: 80 13 01 00 [21:45:40]Write to MH i2c: E2 08 00 E8 05 80 13 01 00 00 00 00 00 6A [21:45:40]Write i2c OK [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: E2 [21:45:40]MH_I2C_Read... [21:45:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:40]Read from MH i2c: E2 0E 00 [21:45:40]MH_I2C_Read... [21:45:40]Read from MH i2c: E2 0E 00 E8 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 3C [21:45:40]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [21:45:40]wFMCommunicate OK [21:45:40]SAM_PROTO_GetShiftState done [21:45:40]FM_GetShiftState done [21:45:40]req_shift_opened done [21:45:40]requested_item shift.open_date is exist - process it [21:45:40]req_shift_open_date [21:45:40]req_shift_open_date done [21:45:40]produce_requested_data done [21:45:40]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72917,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [21:45:40]process_action_free close_receipt [21:45:40]json_value_free [21:45:40]json_value_free done [21:45:40]process_json_proto returns [21:45:40]Send response to host [21:45:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72917,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [21:45:40]free response buf [21:45:40]execute_script done [21:45:40]execute_script returns [21:45:40]free content buf [21:45:40]Sock 7.Close socket [21:45:40]Sock 7.Thread stoped [21:45:41]Connected sock=11 [21:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 FE 90 06 01 3B 70 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 B2 4D 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 3C 2E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 2D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 20 00 00 00 00 07 04 06 00 F4 2D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 01 A9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D5 1C 01 00 35 04 06 00 2E F9 5F 5D 8D D5 6F AC 84 F7 38 43 0D CF [21:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FC F0 47 00 8D 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D5 1C 01 00 F4 03 04 00 BC 53 22 67 B6 04 01 00 00 A9 7B CC 6E D1 E9 57 E3 [21:45:42]CommunicateWithHost err = 0 [21:45:42]CheckOFDResponse [21:45:42]1017 (14) - 77093643461234 [21:45:42]1041 (16) - 0000000000874662 [21:45:42]1040 (4) - 72917 [21:45:42]1012 (4) - 30.10.2024 15:41 [21:45:42]1206 (1) - 0 [21:45:42]OFD Sender: Remove packet 72917 [21:45:42]ProducePacketName [21:45:42]name=ofd_packets/00072917 [21:45:42]NVStorageDeleteData [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:51]recv_with_timeout no data received [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:03]recv_with_timeout no data received [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:16]recv_with_timeout no data received [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:13]recv_with_timeout no data received [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:37]recv_with_timeout no data received [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:45]recv_with_timeout no data received [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:20]recv_with_timeout no data received [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:52]recv_with_timeout no data received [21:49:53]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:15]recv_with_timeout no data received [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:40]recv_with_timeout no data received [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:06]recv_with_timeout no data received [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:31]recv_with_timeout no data received [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:45]recv_with_timeout no data received [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:35]recv_with_timeout no data received [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:46]recv_with_timeout no data received [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:39]recv_with_timeout no data received [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:02]accept exits with 10 [21:58:02]New connection [21:58:02]New thread 3067338084 created [21:58:02]Thread 3067194724 joined [21:58:02]Waiting for new connection... [21:58:02] Sock 10.Parse request [21:58:02]Sock 10.Check first char [21:58:02]Sock 10.First char is OK [21:58:02]request: POST /json_proto HTTP/1.0 [21:58:02]Method: POST [21:58:02]URL: /json_proto [21:58:02]Method is POST - this is cgi request [21:58:02]url: /json_proto [21:58:02]query_string will be loaded in cgi processing [21:58:02]execute_cgi json_proto POST (null) [21:58:02]execute_cgi path=json_proto method=POST [21:58:02]POST find Content-Length [21:58:02]Host: 172.17.43.195:8080 [21:58:02]Content-Length: 685 [21:58:02]Content-Type: application/json [21:58:02] [21:58:02]POST finish read [21:58:02]Found Content-Length = 685 [21:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:02]execute_script... [21:58:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 30.850, "sum" : 1200.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:02]POST & json_proto [21:58:02]process_json_proto [21:58:02]json parsed OK: [21:58:02]protocol is kg_v1.0 [21:58:02]action value=close_receipt [21:58:02]process_action close_receipt [21:58:02]cmd_close_receipt [21:58:02]MH_GetDate [21:58:02]Write to MH i2c: F0 00 00 E9 05 DD [21:58:02]Write i2c OK [21:58:02]MH_I2C_Read... [21:58:02]Read from MH i2c: F0 [21:58:02]MH_I2C_Read... [21:58:02]Read from MH i2c: F0 09 00 [21:58:02]MH_I2C_Read... [21:58:02]Read from MH i2c: F0 09 00 E9 05 00 EC AB 22 67 74 2C AD 66 B9 [21:58:02]GetLastDocTimeStamp 1730324737 [21:58:02]current date 1730325484 [21:58:02]FM_GetShiftState [21:58:02]SAM_PROTO_GetShiftState [21:58:02]wFMCommunicate request_size=4 [21:58:02]MH_SAM_APDU [21:58:02]CAPDU: 80 13 01 00 [21:58:02]Write to MH i2c: E2 08 00 EA 05 80 13 01 00 00 00 00 00 6C [21:58:02]Write i2c OK [21:58:02]MH_I2C_Read... [21:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:03]Read from MH i2c: E2 [21:58:03]MH_I2C_Read... [21:58:03]Read from MH i2c: E2 0E 00 [21:58:03]MH_I2C_Read... [21:58:03]Read from MH i2c: E2 0E 00 EA 05 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 3E [21:58:03]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [21:58:03]wFMCommunicate OK [21:58:03]SAM_PROTO_GetShiftState done [21:58:03]FM_GetShiftState done [21:58:03]opened in 1730247109 [21:58:03]opened+sec_in_day 1730333509 [21:58:03]quantity*price = 120006 [21:58:03]sum+1 = 120008 [21:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 155 30.10.2024 21:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72918 ФПД: 60243738847758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T215804&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72918&fm=60243738847758&tin=02508201610067®Number=0000000000091644&sum=120000 [21:58:04]StoreToDocumentArchive [21:58:04]shift 556 fd 72918 [21:58:04]save to /storage/0556/doc_00072918 [21:58:04]save last doc name /storage/0556/doc_00072918 to /storage/kkm_last_doc_name [21:58:04]save OK [21:58:04]Clear old archive folders... [21:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [21:58:04]tlvbuf is 00691830 [21:58:04]SAM_PROTO_ClearQueue [21:58:04]wFMCommunicate request_size=4 [21:58:04]MH_SAM_APDU [21:58:04]CAPDU: 80 09 00 00 [21:58:04]Write to MH i2c: E2 08 00 F7 05 80 09 00 00 00 00 00 00 6E [21:58:04]Write i2c OK [21:58:04]MH_I2C_Read... [21:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:04]Read from MH i2c: E2 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 03 00 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [21:58:04]RAPDU: 90 00 [21:58:04]wFMCommunicate OK [21:58:04]SAM_PROTO_ClearQueue done [21:58:04]KKMCreateOFDPacket [21:58:04]OFDProtocolAddRootSTLVToBuf [21:58:04]FM_MakeSignedData [21:58:04]FM_MakeSignedData [21:58:04]SAM_PROTO_SignData [21:58:04]wFMCommunicate request_size=4 [21:58:04]MH_SAM_APDU [21:58:04]CAPDU: 80 0D 01 02 [21:58:04]Write to MH i2c: E2 08 00 F8 05 80 0D 01 02 00 00 00 00 76 [21:58:04]Write i2c OK [21:58:04]MH_I2C_Read... [21:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:04]Read from MH i2c: E2 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 03 00 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [21:58:04]RAPDU: 90 00 [21:58:04]wFMCommunicate OK [21:58:04]wFMCommunicate request_size=255 [21:58:04]MH_SAM_APDU [21:58:04]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 EC AB 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D6 1C 01 00 35 04 06 00 36 CA [21:58:04]Write to MH i2c: E2 02 01 F9 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 EC AB 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D6 1C 01 00 35 04 06 00 36 CA 00 00 25 [21:58:04]Write i2c OK [21:58:04]MH_I2C_Read... [21:58:04]OFD Sender: No OFD packet to send [21:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:04]Read from MH i2c: E2 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 03 00 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [21:58:04]RAPDU: 90 00 [21:58:04]wFMCommunicate OK [21:58:04]wFMCommunicate request_size=9 [21:58:04]MH_SAM_APDU [21:58:04]CAPDU: 80 0D 02 02 04 96 A7 6A 0E [21:58:04]Write to MH i2c: E2 0C 00 FA 05 80 0D 02 02 04 00 96 A7 6A 0E 00 00 36 [21:58:04]Write i2c OK [21:58:04]MH_I2C_Read... [21:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:04]Read from MH i2c: E2 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 03 00 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [21:58:04]RAPDU: 90 00 [21:58:04]wFMCommunicate OK [21:58:04]wFMCommunicate request_size=4 [21:58:04]MH_SAM_APDU [21:58:04]CAPDU: 80 0D 03 02 [21:58:04]Write to MH i2c: E2 08 00 FB 05 80 0D 03 02 00 00 00 00 7B [21:58:04]Write i2c OK [21:58:04]MH_I2C_Read... [21:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:04]Read from MH i2c: E2 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 0B 00 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 0B 00 FB 05 00 03 DE 52 C6 DD E9 A8 DA 90 00 BD [21:58:04]RAPDU: 03 DE 52 C6 DD E9 A8 DA 90 00 [21:58:04]wFMCommunicate OK [21:58:04]SAM_PROTO_SignData done [21:58:04]FM_MakeSignedData done [21:58:04]CreateOFDProtocolMessage [21:58:04]wFMCommunicate request_size=4 [21:58:04]MH_SAM_APDU [21:58:04]CAPDU: 80 11 00 00 [21:58:04]Write to MH i2c: E2 08 00 FC 05 80 11 00 00 00 00 00 00 7B [21:58:04]Write i2c OK [21:58:04]MH_I2C_Read... [21:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:04]Read from MH i2c: E2 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 17 00 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: E2 17 00 FC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CF [21:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:58:04]wFMCommunicate OK [21:58:04]CreateOFDProtocolMessage done [21:58:04]OFDSenderStorePacket 72918 [21:58:04]StoreOFDPacket docnum=72918 [21:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 6B 69 06 01 87 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 EC AB 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D6 1C 01 00 35 04 06 00 36 CA 96 A7 6A 0E 03 DE 52 C6 DD E9 A8 DA [21:58:04]CheckFolder [21:58:04]dirname=/storage/ofd_packets [21:58:04]CheckFolder done [21:58:04]ProducePacketName [21:58:04]name=ofd_packets/00072918 [21:58:04]NVStorageSaveData ofd_packets/00072918 [21:58:04]File name is /storage/ofd_packets/00072918 [21:58:04]Write 300 bytes [21:58:04]NVStorageSaveData done [21:58:04]OFDSenderStorePacket done [21:58:04]KKMCreateOFDPacket done [21:58:04]NVStorageSaveData kkm_last_timestamp [21:58:04]File name is /storage/kkm_last_timestamp [21:58:04]Write 4 bytes [21:58:04]NVStorageSaveData done [21:58:04]ExternCall_PrintAddStr [21:58:04]wPrintStart [21:58:04]Write to MH i2c: 01 00 00 FD 05 02 [21:58:04]Write i2c OK [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: 01 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: 01 07 00 [21:58:04]MH_I2C_Read... [21:58:04]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 FF 0F 17 [21:58:04]RasterBufferAndPrint [21:58:04]line Счет N : (1)952519 [21:58:04]line ИНН: 02508201610067 [21:58:04]line Контрольно-Кассовый Чек [21:58:04]line ПРОДАЖА [21:58:04]line ТРК (МРК, ГНК) : 71 [21:58:04]line Товар: 2711190000 [21:58:04]line ГАЗ-К-3 [21:58:04]line 30.850 * 38.90 [21:58:04]line = 1200.07 [21:58:04]line НДС 12% НСП 1% [21:58:04]line > о реализуемом товаре [21:58:04]line ОКРУГЛЕНИЕ: -0.07 [21:58:04]line ИТОГО: 1200.00 [21:58:04]line Внесено: 1200.00 [21:58:04]line СДАЧА: 0.00 [21:58:04]line НСП 1% : 10.62 [21:58:04]line НДС 12% : 127.44 [21:58:04]line Наличными: 1200.00 [21:58:04]line Безнал.: 0.00 [21:58:04]line Место: АЗС № 113 "Партнер Нефть" [21:58:04]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:58:04]line СНО: Общий режим [21:58:04]line Чек 155 30.10.2024 21:58 [21:58:04]line Смена: 556 ФФД: 1.0 [21:58:04]line ЗНМ: 0300000087 [21:58:04]line РНМ: 0000000000091644 [21:58:04]line Версия ККМ: 001 [21:58:04]line ФМ: 0000000000874662 [21:58:04]line ФД: 72918 [21:58:04]line ФПД: 60243738847758 [21:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T215804&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72918&fm=60243738847758&tin=02508201610067®Number=0000000000091644&sum=120000 [21:58:04]OFD Sender: Processing packet 72918 [packets to send 279, broken 278] [21:58:04]ProducePacketName [21:58:04]name=ofd_packets/00072918 [21:58:04]OFD Sender: To server: pG, [21:58:04]CommunicateWithHost lk.salyk.kg:30040 [21:58:04]ConnectInit lk.salyk.kg [21:58:04]written 0, free lines is 4095 [21:58:05]Write to MH i2c: 01 00 00 28 06 2E [21:58:05]Write i2c OK [21:58:05]MH_I2C_Read... [21:58:05]Read from MH i2c: 01 [21:58:05]MH_I2C_Read... [21:58:05]Read from MH i2c: 01 07 00 [21:58:05]MH_I2C_Read... [21:58:05]Read from MH i2c: 01 07 00 28 06 00 00 00 00 00 CE 0C 0F [21:58:05]RasterBufferAndPrint [21:58:05]line [21:58:05]line [21:58:05]line [21:58:05]line [21:58:05]line [21:58:05]written 0, free lines is 3284 [21:58:05]MH_Cut [21:58:05]Write to MH i2c: D1 01 00 2F 06 01 07 [21:58:05]Write i2c OK [21:58:05]MH_I2C_Read... [21:58:05]Read from MH i2c: D1 [21:58:05]MH_I2C_Read... [21:58:05]Read from MH i2c: D1 01 00 [21:58:05]MH_I2C_Read... [21:58:05]Read from MH i2c: D1 01 00 2F 06 00 06 [21:58:05]Write to MH i2c: 01 00 00 30 06 36 [21:58:05]Write i2c OK [21:58:05]MH_I2C_Read... [21:58:06]*** Cut start [21:58:06]*** Partial cut [21:58:06]*** CUTSNS_PIN = 1 [21:58:06]*** CUTSNS_PIN = 0 [21:58:06]*** Brake cut motor [21:58:06]Read from MH i2c: 01 [21:58:06]MH_I2C_Read... [21:58:06]*** Stop cut motor [21:58:06]*** Cut end [21:58:06]Read from MH i2c: 01 07 00 [21:58:06]MH_I2C_Read... [21:58:06]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 FF 0F 4B [21:58:06]process_action close_receipt done [21:58:06]requested_data is exist [21:58:06]produce_requested_data [21:58:06]requested_item fm.sn is exist - process it [21:58:06]wFMCommunicate request_size=4 [21:58:06]MH_SAM_APDU [21:58:06]CAPDU: 80 11 00 00 [21:58:06]Write to MH i2c: E2 08 00 31 06 80 11 00 00 00 00 00 00 B1 [21:58:06]Write i2c OK [21:58:06]MH_I2C_Read... [21:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:06]Read from MH i2c: E2 [21:58:06]MH_I2C_Read... [21:58:06]Read from MH i2c: E2 17 00 [21:58:06]MH_I2C_Read... [21:58:06]Read from MH i2c: E2 17 00 31 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 05 [21:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:58:06]wFMCommunicate OK [21:58:06]requested_item fd.num is exist - process it [21:58:06]SAM_PROTO_GetFieldsCounters [21:58:06]wFMCommunicate request_size=4 [21:58:06]MH_SAM_APDU [21:58:06]CAPDU: 80 13 00 00 [21:58:06]Write to MH i2c: E2 08 00 32 06 80 13 00 00 00 00 00 00 B4 [21:58:06]Write i2c OK [21:58:06]MH_I2C_Read... [21:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:07]Read from MH i2c: E2 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 62 00 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 62 00 32 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D6 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [21:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D6 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:07]wFMCommunicate OK [21:58:07]SAM_PROTO_GetFieldsCounters done [21:58:07]requested_item shift.num is exist - process it [21:58:07]requested_item shift.opened is exist - process it [21:58:07]req_shift_opened [21:58:07]FM_GetShiftState [21:58:07]SAM_PROTO_GetShiftState [21:58:07]wFMCommunicate request_size=4 [21:58:07]MH_SAM_APDU [21:58:07]CAPDU: 80 13 01 00 [21:58:07]Write to MH i2c: E2 08 00 33 06 80 13 01 00 00 00 00 00 B6 [21:58:07]Write i2c OK [21:58:07]MH_I2C_Read... [21:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:07]Read from MH i2c: E2 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 0E 00 [21:58:07]MH_I2C_Read... [21:58:07]Read from MH i2c: E2 0E 00 33 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 88 [21:58:07]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [21:58:07]wFMCommunicate OK [21:58:07]SAM_PROTO_GetShiftState done [21:58:07]FM_GetShiftState done [21:58:07]req_shift_opened done [21:58:07]requested_item shift.open_date is exist - process it [21:58:07]req_shift_open_date [21:58:07]req_shift_open_date done [21:58:07]produce_requested_data done [21:58:07]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72918,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [21:58:07]process_action_free close_receipt [21:58:07]json_value_free [21:58:07]json_value_free done [21:58:07]process_json_proto returns [21:58:07]Send response to host [21:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72918,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [21:58:07]free response buf [21:58:07]execute_script done [21:58:07]execute_script returns [21:58:07]free content buf [21:58:07]Sock 10.Close socket [21:58:07]Sock 10.Thread stoped [21:58:09]recv_with_timeout no data received [21:58:09]ConnectInit Can't take IP for lk.salyk.kg [21:58:09]CommunicateWithHost connect error [21:58:09]CommunicateWithHost err = -1 [21:58:09]OFD Sender: Server communicate error [21:58:14]OFD Sender: Processing packet 72918 [packets to send 279, broken 278] [21:58:14]ProducePacketName [21:58:14]name=ofd_packets/00072918 [21:58:14]OFD Sender: To server: pG, [21:58:14]CommunicateWithHost lk.salyk.kg:30040 [21:58:14]ConnectInit lk.salyk.kg [21:58:19]ConnectInit Can't take IP for lk.salyk.kg [21:58:19]CommunicateWithHost connect error [21:58:19]CommunicateWithHost err = -1 [21:58:19]OFD Sender: Server communicate error [21:58:25]OFD Sender: Processing packet 72918 [packets to send 279, broken 278] [21:58:25]ProducePacketName [21:58:25]name=ofd_packets/00072918 [21:58:25]OFD Sender: To server: pG, [21:58:25]CommunicateWithHost lk.salyk.kg:30040 [21:58:25]ConnectInit lk.salyk.kg [21:58:25]recv_with_timeout no data received [21:58:30]ConnectInit Can't take IP for lk.salyk.kg [21:58:30]CommunicateWithHost connect error [21:58:30]CommunicateWithHost err = -1 [21:58:30]OFD Sender: Server communicate error [21:58:35]OFD Sender: Processing packet 72918 [packets to send 279, broken 278] [21:58:35]ProducePacketName [21:58:35]name=ofd_packets/00072918 [21:58:35]OFD Sender: To server: pG, [21:58:35]CommunicateWithHost lk.salyk.kg:30040 [21:58:35]ConnectInit lk.salyk.kg [21:58:41]recv_with_timeout no data received [21:58:47]Connected sock=10 [21:58:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 6B 69 06 01 87 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 82 78 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 C7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 EC AB 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D6 1C 01 00 35 04 06 00 36 CA 96 A7 6A 0E 03 DE 52 C6 DD E9 A8 DA [21:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 3C 4E 47 00 40 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D6 1C 01 00 F4 03 04 00 CE 56 22 67 B6 04 01 00 00 0B 8B 8D C0 52 00 0C A9 [21:58:48]CommunicateWithHost err = 0 [21:58:48]CheckOFDResponse [21:58:48]1017 (14) - 77093643461234 [21:58:48]1041 (16) - 0000000000874662 [21:58:48]1040 (4) - 72918 [21:58:48]1012 (4) - 30.10.2024 15:54 [21:58:48]1206 (1) - 0 [21:58:48]OFD Sender: Remove packet 72918 [21:58:48]ProducePacketName [21:58:48]name=ofd_packets/00072918 [21:58:48]NVStorageDeleteData [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:42]recv_with_timeout no data received [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]recv_with_timeout no data received [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]recv_with_timeout no data received [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:21]recv_with_timeout no data received [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:11]recv_with_timeout no data received [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:23]recv_with_timeout no data received [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:55]recv_with_timeout no data received [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:11]recv_with_timeout no data received [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:22]recv_with_timeout no data received [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:47]recv_with_timeout no data received [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:55]recv_with_timeout no data received [22:04:59]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:50]ConnectInit Can't connect to host [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:05]recv_with_timeout no data received [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:25]recv_with_timeout no data received [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:14]recv_with_timeout no data received [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:13]recv_with_timeout no data received [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:05]recv_with_timeout no data received [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:21]recv_with_timeout no data received [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:32]recv_with_timeout no data received [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:51]recv_with_timeout no data received [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:44]recv_with_timeout no data received [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]recv_with_timeout no data received [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:16:59]recv_with_timeout no data received [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:00]recv_with_timeout no data received [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:11]recv_with_timeout no data received [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:43]recv_with_timeout no data received [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:51]recv_with_timeout no data received [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:14]recv_with_timeout no data received [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:37]recv_with_timeout no data received [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:20]recv_with_timeout no data received [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:48]recv_with_timeout no data received [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:23]recv_with_timeout no data received [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:14]recv_with_timeout no data received [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:47]recv_with_timeout no data received [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:24]recv_with_timeout no data received [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:54]recv_with_timeout no data received [22:29:56]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:41]recv_with_timeout no data received [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]recv_with_timeout no data received [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:13]recv_with_timeout no data received [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:54]recv_with_timeout no data received [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:49]recv_with_timeout no data received [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:11]recv_with_timeout no data received [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:26]recv_with_timeout no data received [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:43]recv_with_timeout no data received [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:00]recv_with_timeout no data received [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:05]recv_with_timeout no data received [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:14]recv_with_timeout no data received [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:24]recv_with_timeout no data received [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:12]recv_with_timeout no data received [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:24]recv_with_timeout no data received [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:39]recv_with_timeout no data received [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:51]recv_with_timeout no data received [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:14]recv_with_timeout no data received [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:44]recv_with_timeout no data received [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:12]recv_with_timeout no data received [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:23]recv_with_timeout no data received [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: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:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:22]ConnectInit Can't connect to host [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:33]recv_with_timeout no data received [22:52:34]OFD Sender: No OFD packet to send [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]recv_with_timeout no data received [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:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:05]recv_with_timeout no data received [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:05]recv_with_timeout no data received [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:16]recv_with_timeout no data received [22:57:19]OFD Sender: No OFD packet to send [22:57:24]accept exits with 7 [22:57:24]New connection [22:57:24]New thread 3067194724 created [22:57:24]Thread 3067338084 joined [22:57:24]Waiting for new connection... [22:57:24] Sock 7.Parse request [22:57:24]Sock 7.Check first char [22:57:24]Sock 7.First char is OK [22:57:24]request: POST /json_proto HTTP/1.0 [22:57:24]Method: POST [22:57:24]URL: /json_proto [22:57:24]Method is POST - this is cgi request [22:57:24]url: /json_proto [22:57:24]query_string will be loaded in cgi processing [22:57:24]execute_cgi json_proto POST (null) [22:57:24]execute_cgi path=json_proto method=POST [22:57:24]POST find Content-Length [22:57:24]Host: 172.17.43.195:8080 [22:57:24]Content-Length: 681 [22:57:24]Content-Type: application/json [22:57:24] [22:57:24]POST finish read [22:57:24]Found Content-Length = 681 [22:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 13.370, "sum" : 520.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:24]execute_script... [22:57:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 13.370, "sum" : 520.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:24]POST & json_proto [22:57:24]process_json_proto [22:57:24]json parsed OK: [22:57:24]protocol is kg_v1.0 [22:57:24]action value=close_receipt [22:57:24]process_action close_receipt [22:57:24]cmd_close_receipt [22:57:24]MH_GetDate [22:57:24]Write to MH i2c: F0 00 00 34 06 29 [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: F0 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: F0 09 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: F0 09 00 34 06 00 D5 B9 22 67 74 2C AD 66 FC [22:57:24]GetLastDocTimeStamp 1730325484 [22:57:24]current date 1730329045 [22:57:24]FM_GetShiftState [22:57:24]SAM_PROTO_GetShiftState [22:57:24]wFMCommunicate request_size=4 [22:57:24]MH_SAM_APDU [22:57:24]CAPDU: 80 13 01 00 [22:57:24]Write to MH i2c: E2 08 00 35 06 80 13 01 00 00 00 00 00 B8 [22:57:24]Write i2c OK [22:57:24]MH_I2C_Read... [22:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:24]Read from MH i2c: E2 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 0E 00 [22:57:24]MH_I2C_Read... [22:57:24]Read from MH i2c: E2 0E 00 35 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 8A [22:57:24]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [22:57:24]wFMCommunicate OK [22:57:24]SAM_PROTO_GetShiftState done [22:57:24]FM_GetShiftState done [22:57:24]opened in 1730247109 [22:57:24]opened+sec_in_day 1730333509 [22:57:24]quantity*price = 52009 [22:57:24]sum+1 = 52010 [22:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.23 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 156 30.10.2024 22:57 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72919 ФПД: 261355960582168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225725&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72919&fm=261355960582168&tin=02508201610067®Number=0000000000091644&sum=52000 [22:57:25]StoreToDocumentArchive [22:57:25]shift 556 fd 72919 [22:57:25]save to /storage/0556/doc_00072919 [22:57:25]save last doc name /storage/0556/doc_00072919 to /storage/kkm_last_doc_name [22:57:25]save OK [22:57:25]Clear old archive folders... [22:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:57:25]tlvbuf is 00698490 [22:57:25]SAM_PROTO_ClearQueue [22:57:25]wFMCommunicate request_size=4 [22:57:25]MH_SAM_APDU [22:57:25]CAPDU: 80 09 00 00 [22:57:25]Write to MH i2c: E2 08 00 42 06 80 09 00 00 00 00 00 00 BA [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:25]Read from MH i2c: E2 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [22:57:25]RAPDU: 90 00 [22:57:25]wFMCommunicate OK [22:57:25]SAM_PROTO_ClearQueue done [22:57:25]KKMCreateOFDPacket [22:57:25]OFDProtocolAddRootSTLVToBuf [22:57:25]FM_MakeSignedData [22:57:25]FM_MakeSignedData [22:57:25]SAM_PROTO_SignData [22:57:25]wFMCommunicate request_size=4 [22:57:25]MH_SAM_APDU [22:57:25]CAPDU: 80 0D 01 02 [22:57:25]Write to MH i2c: E2 08 00 43 06 80 0D 01 02 00 00 00 00 C2 [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:25]Read from MH i2c: E2 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [22:57:25]RAPDU: 90 00 [22:57:25]wFMCommunicate OK [22:57:25]wFMCommunicate request_size=255 [22:57:25]MH_SAM_APDU [22:57:25]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 29 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D5 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D7 1C 01 00 35 04 06 00 ED B3 [22:57:25]Write to MH i2c: E2 02 01 44 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 29 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D5 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D7 1C 01 00 35 04 06 00 ED B3 00 00 D4 [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:25]Read from MH i2c: E2 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [22:57:25]RAPDU: 90 00 [22:57:25]wFMCommunicate OK [22:57:25]wFMCommunicate request_size=9 [22:57:25]MH_SAM_APDU [22:57:25]CAPDU: 80 0D 02 02 04 AD 30 C0 18 [22:57:25]Write to MH i2c: E2 0C 00 45 06 80 0D 02 02 04 00 AD 30 C0 18 00 00 82 [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:25]Read from MH i2c: E2 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 03 00 45 06 00 90 00 BF [22:57:25]RAPDU: 90 00 [22:57:25]wFMCommunicate OK [22:57:25]wFMCommunicate request_size=4 [22:57:25]MH_SAM_APDU [22:57:25]CAPDU: 80 0D 03 02 [22:57:25]Write to MH i2c: E2 08 00 46 06 80 0D 03 02 00 00 00 00 C7 [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:25]Read from MH i2c: E2 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 0B 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 0B 00 46 06 00 E4 EC D7 AE 99 1F 92 32 90 00 99 [22:57:25]RAPDU: E4 EC D7 AE 99 1F 92 32 90 00 [22:57:25]wFMCommunicate OK [22:57:25]SAM_PROTO_SignData done [22:57:25]FM_MakeSignedData done [22:57:25]CreateOFDProtocolMessage [22:57:25]wFMCommunicate request_size=4 [22:57:25]MH_SAM_APDU [22:57:25]CAPDU: 80 11 00 00 [22:57:25]Write to MH i2c: E2 08 00 47 06 80 11 00 00 00 00 00 00 C7 [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:25]Read from MH i2c: E2 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 17 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: E2 17 00 47 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1B [22:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:57:25]wFMCommunicate OK [22:57:25]CreateOFDProtocolMessage done [22:57:25]OFDSenderStorePacket 72919 [22:57:25]StoreOFDPacket docnum=72919 [22:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 71 AD 06 01 54 89 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 29 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D5 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D7 1C 01 00 35 04 06 00 ED B3 AD 30 C0 18 E4 EC D7 AE 99 1F 92 32 [22:57:25]CheckFolder [22:57:25]dirname=/storage/ofd_packets [22:57:25]CheckFolder done [22:57:25]ProducePacketName [22:57:25]name=ofd_packets/00072919 [22:57:25]NVStorageSaveData ofd_packets/00072919 [22:57:25]File name is /storage/ofd_packets/00072919 [22:57:25]Write 300 bytes [22:57:25]NVStorageSaveData done [22:57:25]OFDSenderStorePacket done [22:57:25]KKMCreateOFDPacket done [22:57:25]NVStorageSaveData kkm_last_timestamp [22:57:25]File name is /storage/kkm_last_timestamp [22:57:25]Write 4 bytes [22:57:25]NVStorageSaveData done [22:57:25]ExternCall_PrintAddStr [22:57:25]wPrintStart [22:57:25]Write to MH i2c: 01 00 00 48 06 4E [22:57:25]Write i2c OK [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: 01 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: 01 07 00 [22:57:25]MH_I2C_Read... [22:57:25]Read from MH i2c: 01 07 00 48 06 00 00 00 00 00 FF 0F 63 [22:57:25]RasterBufferAndPrint [22:57:25]line Счет N : (1)952521 [22:57:25]line ИНН: 02508201610067 [22:57:25]line Контрольно-Кассовый Чек [22:57:25]line ПРОДАЖА [22:57:25]line ТРК (МРК, ГНК) : 71 [22:57:25]line Товар: 2711190000 [22:57:25]line ГАЗ-К-3 [22:57:25]line 13.370 * 38.90 [22:57:25]line = 520.09 [22:57:25]line НДС 12% НСП 1% [22:57:25]line > о реализуемом товаре [22:57:25]line ОКРУГЛЕНИЕ: -0.09 [22:57:25]line ИТОГО: 520.00 [22:57:25]line Внесено: 520.00 [22:57:25]line СДАЧА: 0.00 [22:57:25]line НСП 1% : 4.60 [22:57:25]line НДС 12% : 55.23 [22:57:25]line Наличными: 520.00 [22:57:25]line Безнал.: 0.00 [22:57:25]line Место: АЗС № 113 "Партнер Нефть" [22:57:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:57:25]line СНО: Общий режим [22:57:25]line Чек 156 30.10.2024 22:57 [22:57:25]line Смена: 556 ФФД: 1.0 [22:57:25]line ЗНМ: 0300000087 [22:57:25]line РНМ: 0000000000091644 [22:57:25]line Версия ККМ: 001 [22:57:25]line ФМ: 0000000000874662 [22:57:25]line ФД: 72919 [22:57:25]line ФПД: 261355960582168 [22:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225725&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72919&fm=261355960582168&tin=02508201610067®Number=0000000000091644&sum=52000 [22:57:25]written 0, free lines is 4095 [22:57:25]OFD Sender: Processing packet 72919 [packets to send 279, broken 278] [22:57:25]ProducePacketName [22:57:25]name=ofd_packets/00072919 [22:57:25]OFD Sender: To server: pG, [22:57:25]CommunicateWithHost lk.salyk.kg:30040 [22:57:25]ConnectInit lk.salyk.kg [22:57:26]Write to MH i2c: 01 00 00 73 06 79 [22:57:26]Write i2c OK [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: 01 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: 01 07 00 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: 01 07 00 73 06 00 00 00 00 00 CF 0C 5B [22:57:26]RasterBufferAndPrint [22:57:26]line [22:57:26]line [22:57:26]line [22:57:26]line [22:57:26]line [22:57:26]written 0, free lines is 3287 [22:57:26]MH_Cut [22:57:26]Write to MH i2c: D1 01 00 7A 06 01 52 [22:57:26]Write i2c OK [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: D1 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: D1 01 00 [22:57:26]MH_I2C_Read... [22:57:26]Read from MH i2c: D1 01 00 7A 06 00 51 [22:57:26]Write to MH i2c: 01 00 00 7B 06 81 [22:57:26]Write i2c OK [22:57:26]MH_I2C_Read... [22:57:26]*** Cut start [22:57:26]*** Partial cut [22:57:26]*** CUTSNS_PIN = 1 [22:57:27]*** CUTSNS_PIN = 0 [22:57:27]*** Brake cut motor [22:57:27]Read from MH i2c: 01 [22:57:27]MH_I2C_Read... [22:57:27]*** Stop cut motor [22:57:27]*** Cut end [22:57:27]Read from MH i2c: 01 07 00 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 FF 0F 96 [22:57:27]process_action close_receipt done [22:57:27]requested_data is exist [22:57:27]produce_requested_data [22:57:27]requested_item fm.sn is exist - process it [22:57:27]wFMCommunicate request_size=4 [22:57:27]MH_SAM_APDU [22:57:27]CAPDU: 80 11 00 00 [22:57:27]Write to MH i2c: E2 08 00 7C 06 80 11 00 00 00 00 00 00 FC [22:57:27]Write i2c OK [22:57:27]MH_I2C_Read... [22:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:27]Read from MH i2c: E2 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 17 00 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 17 00 7C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 50 [22:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:57:27]wFMCommunicate OK [22:57:27]requested_item fd.num is exist - process it [22:57:27]SAM_PROTO_GetFieldsCounters [22:57:27]wFMCommunicate request_size=4 [22:57:27]MH_SAM_APDU [22:57:27]CAPDU: 80 13 00 00 [22:57:27]Write to MH i2c: E2 08 00 7D 06 80 13 00 00 00 00 00 00 FF [22:57:27]Write i2c OK [22:57:27]MH_I2C_Read... [22:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:27]Read from MH i2c: E2 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 62 00 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 62 00 7D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D7 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [22:57:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D7 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:27]wFMCommunicate OK [22:57:27]SAM_PROTO_GetFieldsCounters done [22:57:27]requested_item shift.num is exist - process it [22:57:27]requested_item shift.opened is exist - process it [22:57:27]req_shift_opened [22:57:27]FM_GetShiftState [22:57:27]SAM_PROTO_GetShiftState [22:57:27]wFMCommunicate request_size=4 [22:57:27]MH_SAM_APDU [22:57:27]CAPDU: 80 13 01 00 [22:57:27]Write to MH i2c: E2 08 00 7E 06 80 13 01 00 00 00 00 00 01 [22:57:27]Write i2c OK [22:57:27]MH_I2C_Read... [22:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:27]Read from MH i2c: E2 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 0E 00 [22:57:27]MH_I2C_Read... [22:57:27]Read from MH i2c: E2 0E 00 7E 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 D3 [22:57:27]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [22:57:27]wFMCommunicate OK [22:57:27]SAM_PROTO_GetShiftState done [22:57:27]FM_GetShiftState done [22:57:27]req_shift_opened done [22:57:27]requested_item shift.open_date is exist - process it [22:57:27]req_shift_open_date [22:57:27]req_shift_open_date done [22:57:27]produce_requested_data done [22:57:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72919,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [22:57:27]process_action_free close_receipt [22:57:27]json_value_free [22:57:27]json_value_free done [22:57:27]process_json_proto returns [22:57:27]Send response to host [22:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72919,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [22:57:27]free response buf [22:57:27]execute_script done [22:57:27]execute_script returns [22:57:27]free content buf [22:57:27]Sock 7.Close socket [22:57:27]Sock 7.Thread stoped [22:57:28]Connected sock=10 [22:57:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 71 AD 06 01 54 89 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 29 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D5 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D7 1C 01 00 35 04 06 00 ED B3 AD 30 C0 18 E4 EC D7 AE 99 1F 92 32 [22:57:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BD FF 47 00 36 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 38 37 34 36 36 32 10 04 04 00 D7 1C 01 00 F4 03 04 00 90 64 22 67 B6 04 01 00 00 09 26 64 75 11 BE 5A 91 [22:57:30]CommunicateWithHost err = 0 [22:57:30]CheckOFDResponse [22:57:30]1017 (14) - 77093643461234 [22:57:30]1041 (16) - 0000000000874662 [22:57:30]1040 (4) - 72919 [22:57:30]1012 (4) - 30.10.2024 16:53 [22:57:30]1206 (1) - 0 [22:57:30]OFD Sender: Remove packet 72919 [22:57:30]ProducePacketName [22:57:30]name=ofd_packets/00072919 [22:57:30]NVStorageDeleteData [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:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:53]recv_with_timeout no data received [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: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:18]accept exits with 9 [22:59:18]New connection [22:59:18]New thread 3067338084 created [22:59:18]Thread 3067194724 joined [22:59:18]Waiting for new connection... [22:59:18] Sock 9.Parse request [22:59:18]Sock 9.Check first char [22:59:18]Sock 9.First char is OK [22:59:18]request: POST /json_proto HTTP/1.0 [22:59:18]Method: POST [22:59:18]URL: /json_proto [22:59:18]Method is POST - this is cgi request [22:59:18]url: /json_proto [22:59:18]query_string will be loaded in cgi processing [22:59:18]execute_cgi json_proto POST (null) [22:59:18]execute_cgi path=json_proto method=POST [22:59:18]POST find Content-Length [22:59:18]Host: 172.17.43.195:8080 [22:59:18]Content-Length: 681 [22:59:18]Content-Type: application/json [22:59:18] [22:59:18]POST finish read [22:59:18]Found Content-Length = 681 [22:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:18]execute_script... [22:59: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)952522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:18]POST & json_proto [22:59:18]process_json_proto [22:59:18]json parsed OK: [22:59:18]protocol is kg_v1.0 [22:59:18]action value=close_receipt [22:59:18]process_action close_receipt [22:59:18]cmd_close_receipt [22:59:18]MH_GetDate [22:59:18]Write to MH i2c: F0 00 00 7F 06 74 [22:59:18]Write i2c OK [22:59:18]MH_I2C_Read... [22:59:18]Read from MH i2c: F0 [22:59:18]MH_I2C_Read... [22:59:18]Read from MH i2c: F0 09 00 [22:59:18]MH_I2C_Read... [22:59:18]Read from MH i2c: F0 09 00 7F 06 00 48 BA 22 67 74 2C AD 66 BB [22:59:18]GetLastDocTimeStamp 1730329045 [22:59:18]current date 1730329160 [22:59:18]FM_GetShiftState [22:59:18]SAM_PROTO_GetShiftState [22:59:18]wFMCommunicate request_size=4 [22:59:18]MH_SAM_APDU [22:59:18]CAPDU: 80 13 01 00 [22:59:18]Write to MH i2c: E2 08 00 80 06 80 13 01 00 00 00 00 00 03 [22:59:18]Write i2c OK [22:59:18]MH_I2C_Read... [22:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:18]Read from MH i2c: E2 [22:59:18]MH_I2C_Read... [22:59:18]Read from MH i2c: E2 0E 00 [22:59:18]MH_I2C_Read... [22:59:18]Read from MH i2c: E2 0E 00 80 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 D5 [22:59:18]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [22:59:18]wFMCommunicate OK [22:59:18]SAM_PROTO_GetShiftState done [22:59:18]FM_GetShiftState done [22:59:18]opened in 1730247109 [22:59:18]opened+sec_in_day 1730333509 [22:59:18]quantity*price = 50025 [22:59:18]sum+1 = 50026 [22:59:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 157 30.10.2024 22:59 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72920 ФПД: 203326205112046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225920&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72920&fm=203326205112046&tin=02508201610067®Number=0000000000091644&sum=50000 [22:59:20]StoreToDocumentArchive [22:59:20]shift 556 fd 72920 [22:59:20]save to /storage/0556/doc_00072920 [22:59:20]save last doc name /storage/0556/doc_00072920 to /storage/kkm_last_doc_name [22:59:20]save OK [22:59:20]Clear old archive folders... [22:59:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:59:20]tlvbuf is 006BB010 [22:59:20]SAM_PROTO_ClearQueue [22:59:20]wFMCommunicate request_size=4 [22:59:20]MH_SAM_APDU [22:59:20]CAPDU: 80 09 00 00 [22:59:20]Write to MH i2c: E2 08 00 8D 06 80 09 00 00 00 00 00 00 05 [22:59:20]recv_with_timeout no data received [22:59:20]Write i2c OK [22:59:20]MH_I2C_Read... [22:59:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:20]Read from MH i2c: E2 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 03 00 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [22:59:20]RAPDU: 90 00 [22:59:20]wFMCommunicate OK [22:59:20]SAM_PROTO_ClearQueue done [22:59:20]KKMCreateOFDPacket [22:59:20]OFDProtocolAddRootSTLVToBuf [22:59:20]FM_MakeSignedData [22:59:20]FM_MakeSignedData [22:59:20]SAM_PROTO_SignData [22:59:20]wFMCommunicate request_size=4 [22:59:20]MH_SAM_APDU [22:59:20]CAPDU: 80 0D 01 02 [22:59:20]Write to MH i2c: E2 08 00 8E 06 80 0D 01 02 00 00 00 00 0D [22:59:20]Write i2c OK [22:59:20]MH_I2C_Read... [22:59:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:20]Read from MH i2c: E2 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 03 00 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [22:59:20]RAPDU: 90 00 [22:59:20]wFMCommunicate OK [22:59:20]wFMCommunicate request_size=255 [22:59:20]MH_SAM_APDU [22:59:20]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 48 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D8 1C 01 00 35 04 06 00 B8 EC [22:59:20]Write to MH i2c: E2 02 01 8F 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 48 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D8 1C 01 00 35 04 06 00 B8 EC 00 00 3C [22:59:20]Write i2c OK [22:59:20]MH_I2C_Read... [22:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:20]Read from MH i2c: E2 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 03 00 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [22:59:20]RAPDU: 90 00 [22:59:20]wFMCommunicate OK [22:59:20]wFMCommunicate request_size=9 [22:59:20]MH_SAM_APDU [22:59:20]CAPDU: 80 0D 02 02 04 92 3A AE EE [22:59:20]Write to MH i2c: E2 0C 00 90 06 80 0D 02 02 04 00 92 3A AE EE 00 00 80 [22:59:20]Write i2c OK [22:59:20]MH_I2C_Read... [22:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:20]Read from MH i2c: E2 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 03 00 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [22:59:20]RAPDU: 90 00 [22:59:20]wFMCommunicate OK [22:59:20]wFMCommunicate request_size=4 [22:59:20]MH_SAM_APDU [22:59:20]CAPDU: 80 0D 03 02 [22:59:20]Write to MH i2c: E2 08 00 91 06 80 0D 03 02 00 00 00 00 12 [22:59:20]Write i2c OK [22:59:20]MH_I2C_Read... [22:59:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:20]Read from MH i2c: E2 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 0B 00 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 0B 00 91 06 00 74 57 EF FF C1 B3 56 A1 90 00 37 [22:59:20]RAPDU: 74 57 EF FF C1 B3 56 A1 90 00 [22:59:20]wFMCommunicate OK [22:59:20]SAM_PROTO_SignData done [22:59:20]FM_MakeSignedData done [22:59:20]CreateOFDProtocolMessage [22:59:20]wFMCommunicate request_size=4 [22:59:20]MH_SAM_APDU [22:59:20]CAPDU: 80 11 00 00 [22:59:20]Write to MH i2c: E2 08 00 92 06 80 11 00 00 00 00 00 00 12 [22:59:20]Write i2c OK [22:59:20]MH_I2C_Read... [22:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:20]Read from MH i2c: E2 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 17 00 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: E2 17 00 92 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [22:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:59:20]wFMCommunicate OK [22:59:20]CreateOFDProtocolMessage done [22:59:20]OFDSenderStorePacket 72920 [22:59:20]StoreOFDPacket docnum=72920 [22:59:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 CE 47 06 01 2D D8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 48 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D8 1C 01 00 35 04 06 00 B8 EC 92 3A AE EE 74 57 EF FF C1 B3 56 A1 [22:59:20]CheckFolder [22:59:20]dirname=/storage/ofd_packets [22:59:20]CheckFolder done [22:59:20]ProducePacketName [22:59:20]name=ofd_packets/00072920 [22:59:20]NVStorageSaveData ofd_packets/00072920 [22:59:20]File name is /storage/ofd_packets/00072920 [22:59:20]Write 300 bytes [22:59:20]NVStorageSaveData done [22:59:20]OFDSenderStorePacket done [22:59:20]KKMCreateOFDPacket done [22:59:20]NVStorageSaveData kkm_last_timestamp [22:59:20]File name is /storage/kkm_last_timestamp [22:59:20]Write 4 bytes [22:59:20]NVStorageSaveData done [22:59:20]ExternCall_PrintAddStr [22:59:20]wPrintStart [22:59:20]Write to MH i2c: 01 00 00 93 06 99 [22:59:20]Write i2c OK [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: 01 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: 01 07 00 [22:59:20]MH_I2C_Read... [22:59:20]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 FF 0F AE [22:59:20]RasterBufferAndPrint [22:59:20]line Счет N : (1)952522 [22:59:20]line ИНН: 02508201610067 [22:59:20]line Контрольно-Кассовый Чек [22:59:20]line ПРОДАЖА [22:59:20]line ТРК (МРК, ГНК) : 71 [22:59:20]line Товар: 2711190000 [22:59:20]line ГАЗ-К-3 [22:59:20]line 12.860 * 38.90 [22:59:20]line = 500.25 [22:59:20]line НДС 12% НСП 1% [22:59:20]line > о реализуемом товаре [22:59:20]line ОКРУГЛЕНИЕ: -0.25 [22:59:20]line ИТОГО: 500.00 [22:59:20]line Внесено: 500.00 [22:59:20]line СДАЧА: 0.00 [22:59:20]line НСП 1% : 4.43 [22:59:20]line НДС 12% : 53.12 [22:59:20]line Наличными: 500.00 [22:59:20]line Безнал.: 0.00 [22:59:20]line Место: АЗС № 113 "Партнер Нефть" [22:59:20]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:59:20]line СНО: Общий режим [22:59:20]line Чек 157 30.10.2024 22:59 [22:59:20]line Смена: 556 ФФД: 1.0 [22:59:20]line ЗНМ: 0300000087 [22:59:20]line РНМ: 0000000000091644 [22:59:20]line Версия ККМ: 001 [22:59:20]line ФМ: 0000000000874662 [22:59:20]line ФД: 72920 [22:59:20]line ФПД: 203326205112046 [22:59:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225920&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72920&fm=203326205112046&tin=02508201610067®Number=0000000000091644&sum=50000 [22:59:20]written 0, free lines is 4095 [22:59:20]OFD Sender: Processing packet 72920 [packets to send 279, broken 278] [22:59:20]ProducePacketName [22:59:20]name=ofd_packets/00072920 [22:59:20]OFD Sender: To server: pG, [22:59:20]CommunicateWithHost lk.salyk.kg:30040 [22:59:20]ConnectInit lk.salyk.kg [22:59:21]Write to MH i2c: 01 00 00 BE 06 C4 [22:59:21]Write i2c OK [22:59:21]MH_I2C_Read... [22:59:21]Read from MH i2c: 01 [22:59:21]MH_I2C_Read... [22:59:21]Read from MH i2c: 01 07 00 [22:59:21]MH_I2C_Read... [22:59:21]Read from MH i2c: 01 07 00 BE 06 00 00 00 00 00 D0 0C A7 [22:59:21]RasterBufferAndPrint [22:59:21]line [22:59:21]line [22:59:21]line [22:59:21]line [22:59:21]line [22:59:21]written 0, free lines is 3288 [22:59:21]MH_Cut [22:59:21]Write to MH i2c: D1 01 00 C5 06 01 9D [22:59:21]Write i2c OK [22:59:21]MH_I2C_Read... [22:59:21]Read from MH i2c: D1 [22:59:21]MH_I2C_Read... [22:59:21]Read from MH i2c: D1 01 00 [22:59:21]MH_I2C_Read... [22:59:21]Read from MH i2c: D1 01 00 C5 06 00 9C [22:59:21]Write to MH i2c: 01 00 00 C6 06 CC [22:59:21]Write i2c OK [22:59:21]MH_I2C_Read... [22:59:21]*** Cut start [22:59:21]*** Partial cut [22:59:21]*** CUTSNS_PIN = 1 [22:59:21]*** CUTSNS_PIN = 0 [22:59:22]*** Brake cut motor [22:59:22]Read from MH i2c: 01 [22:59:22]MH_I2C_Read... [22:59:22]Connected sock=7 [22:59:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 CE 47 06 01 2D D8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC *** Stop cut motor [22:59:22]03 *** Cut end [22:59:22]06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 48 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D8 1C 01 00 35 04 06 00 B8 EC 92 3A AE EE 74 57 EF FF C1 B3 56 A1 [22:59:22]Read from MH i2c: 01 07 00 [22:59:22]MH_I2C_Read... [22:59:22]Read from MH i2c: 01 07 00 C6 06 00 00 00 00 00 FF 0F E1 [22:59:22]process_action close_receipt done [22:59:22]requested_data is exist [22:59:22]produce_requested_data [22:59:22]requested_item fm.sn is exist - process it [22:59:22]wFMCommunicate request_size=4 [22:59:22]MH_SAM_APDU [22:59:22]CAPDU: 80 11 00 00 [22:59:22]Write to MH i2c: E2 08 00 C7 06 80 11 00 00 00 00 00 00 47 [22:59:22]Write i2c OK [22:59:22]MH_I2C_Read... [22:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:22]Read from MH i2c: E2 [22:59:22]MH_I2C_Read... [22:59:22]Read from MH i2c: E2 17 00 [22:59:22]MH_I2C_Read... [22:59:22]Read from MH i2c: E2 17 00 C7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9B [22:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:59:22]wFMCommunicate OK [22:59:22]requested_item fd.num is exist - process it [22:59:22]SAM_PROTO_GetFieldsCounters [22:59:22]wFMCommunicate request_size=4 [22:59:22]MH_SAM_APDU [22:59:22]CAPDU: 80 13 00 00 [22:59:22]Write to MH i2c: E2 08 00 C8 06 80 13 00 00 00 00 00 00 4A [22:59:22]Write i2c OK [22:59:22]MH_I2C_Read... [22:59:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:22]Read from MH i2c: E2 [22:59:22]MH_I2C_Read... [22:59:22]Read from MH i2c: E2 62 00 [22:59:22]MH_I2C_Read... [22:59:22]Read from MH i2c: E2 62 00 C8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D8 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [22:59:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D8 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:22]wFMCommunicate OK [22:59:22]SAM_PROTO_GetFieldsCounters done [22:59:22]requested_item shift.num is exist - process it [22:59:22]requested_item shift.opened is exist - process it [22:59:22]req_shift_opened [22:59:22]FM_GetShiftState [22:59:22]SAM_PROTO_GetShiftState [22:59:22]wFMCommunicate request_size=4 [22:59:22]MH_SAM_APDU [22:59:22]CAPDU: 80 13 01 00 [22:59:22]Write to MH i2c: E2 08 00 C9 06 80 13 01 00 00 00 00 00 4C [22:59:22]Write i2c OK [22:59:22]MH_I2C_Read... [22:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:22]Read from MH i2c: E2 [22:59:22]MH_I2C_Read... [22:59:22]Read from MH i2c: E2 0E 00 [22:59:22]MH_I2C_Read... [22:59:22]Read from MH i2c: E2 0E 00 C9 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 1E [22:59:22]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [22:59:22]wFMCommunicate OK [22:59:22]SAM_PROTO_GetShiftState done [22:59:22]FM_GetShiftState done [22:59:22]req_shift_opened done [22:59:22]requested_item shift.open_date is exist - process it [22:59:22]req_shift_open_date [22:59:22]req_shift_open_date done [22:59:22]produce_requested_data done [22:59:22]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72920,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [22:59:22]process_action_free close_receipt [22:59:22]json_value_free [22:59:22]json_value_free done [22:59:22]process_json_proto returns [22:59:22]Send response to host [22:59:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72920,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [22:59:22]free response buf [22:59:22]execute_script done [22:59:22]execute_script returns [22:59:22]free content buf [22:59:22]Sock 9.Close socket [22:59:22]Sock 9.Thread stoped [22:59:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DE 78 47 00 B4 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 38 37 34 36 36 32 10 04 04 00 D8 1C 01 00 F4 03 04 00 01 65 22 67 B6 04 01 00 00 7E F9 44 42 A4 A0 75 36 [22:59:23]CommunicateWithHost err = 0 [22:59:23]CheckOFDResponse [22:59:23]1017 (14) - 77093643461234 [22:59:23]1041 (16) - 0000000000874662 [22:59:23]1040 (4) - 72920 [22:59:23]1012 (4) - 30.10.2024 16:55 [22:59:23]1206 (1) - 0 [22:59:23]OFD Sender: Remove packet 72920 [22:59:23]ProducePacketName [22:59:23]name=ofd_packets/00072920 [22:59:23]NVStorageDeleteData [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:41]recv_with_timeout no data received [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:51]recv_with_timeout no data received [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:04]recv_with_timeout no data received [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:36]recv_with_timeout no data received [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:44]accept exits with 10 [23:01:44]New connection [23:01:44]New thread 3067194724 created [23:01:44]Thread 3067338084 joined [23:01:44]Waiting for new connection... [23:01:44] Sock 10.Parse request [23:01:44]Sock 10.Check first char [23:01:44]Sock 10.First char is OK [23:01:44]request: POST /json_proto HTTP/1.0 [23:01:44]Method: POST [23:01:44]URL: /json_proto [23:01:44]Method is POST - this is cgi request [23:01:44]url: /json_proto [23:01:44]query_string will be loaded in cgi processing [23:01:44]execute_cgi json_proto POST (null) [23:01:44]execute_cgi path=json_proto method=POST [23:01:44]POST find Content-Length [23:01:44]Host: 172.17.43.195:8080 [23:01:44]Content-Length: 843 [23:01:44]Content-Type: application/json [23:01:44] [23:01:44]POST finish read [23:01:44]Found Content-Length = 843 [23:01:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 22.620, "sum" : 1678.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1678.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:44]execute_script... [23:01:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 22.620, "sum" : 1678.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1678.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:44]POST & json_proto [23:01:44]process_json_proto [23:01:44]json parsed OK: [23:01:44]protocol is kg_v1.0 [23:01:44]action value=close_receipt [23:01:44]process_action close_receipt [23:01:44]cmd_close_receipt [23:01:44]MH_GetDate [23:01:44]Write to MH i2c: F0 00 00 CA 06 BF [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: F0 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: F0 09 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: F0 09 00 CA 06 00 D9 BA 22 67 74 2C AD 66 97 [23:01:44]GetLastDocTimeStamp 1730329160 [23:01:44]current date 1730329305 [23:01:44]FM_GetShiftState [23:01:44]SAM_PROTO_GetShiftState [23:01:44]wFMCommunicate request_size=4 [23:01:44]MH_SAM_APDU [23:01:44]CAPDU: 80 13 01 00 [23:01:44]Write to MH i2c: E2 08 00 CB 06 80 13 01 00 00 00 00 00 4E [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:44]Read from MH i2c: E2 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 0E 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 0E 00 CB 06 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 20 [23:01:44]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:01:44]wFMCommunicate OK [23:01:44]SAM_PROTO_GetShiftState done [23:01:44]FM_GetShiftState done [23:01:44]opened in 1730247109 [23:01:44]opened+sec_in_day 1730333509 [23:01:44]quantity*price = 167840 [23:01:44]sum+1 = 167841 [23:01:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1678.40 НСП 1% : 14.85 НДС 12% : 178.24 Наличными: 0.00 Безнал.: 1678.40 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 158 30.10.2024 23:01 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72921 ФПД: 221466485170325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T230145&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72921&fm=221466485170325&tin=02508201610067®Number=0000000000091644&sum=167840 [23:01:45]StoreToDocumentArchive [23:01:45]shift 556 fd 72921 [23:01:45]save to /storage/0556/doc_00072921 [23:01:45]save last doc name /storage/0556/doc_00072921 to /storage/kkm_last_doc_name [23:01:45]save OK [23:01:45]Clear old archive folders... [23:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:45]tlvbuf is 00688140 [23:01:45]SAM_PROTO_ClearQueue [23:01:45]wFMCommunicate request_size=4 [23:01:45]MH_SAM_APDU [23:01:45]CAPDU: 80 09 00 00 [23:01:45]Write to MH i2c: E2 08 00 D8 06 80 09 00 00 00 00 00 00 50 [23:01:45]Write i2c OK [23:01:45]MH_I2C_Read... [23:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:45]Read from MH i2c: E2 [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: E2 03 00 [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: E2 03 00 D8 06 00 90 00 52 [23:01:45]RAPDU: 90 00 [23:01:45]wFMCommunicate OK [23:01:45]SAM_PROTO_ClearQueue done [23:01:45]KKMCreateOFDPacket [23:01:45]OFDProtocolAddRootSTLVToBuf [23:01:45]FM_MakeSignedData [23:01:45]FM_MakeSignedData [23:01:45]SAM_PROTO_SignData [23:01:45]wFMCommunicate request_size=4 [23:01:45]MH_SAM_APDU [23:01:45]CAPDU: 80 0D 01 02 [23:01:45]Write to MH i2c: E2 08 00 D9 06 80 0D 01 02 00 00 00 00 58 [23:01:45]Write i2c OK [23:01:45]MH_I2C_Read... [23:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:45]Read from MH i2c: E2 [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: E2 03 00 [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: E2 03 00 D9 06 00 90 00 53 [23:01:45]RAPDU: 90 00 [23:01:45]wFMCommunicate OK [23:01:45]wFMCommunicate request_size=255 [23:01:45]MH_SAM_APDU [23:01:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5C 58 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A0 8F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 45 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D9 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D9 1C 01 00 35 04 06 00 C9 [23:01:45]Write to MH i2c: E2 02 01 DA 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5C 58 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A0 8F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 45 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D9 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D9 1C 01 00 35 04 06 00 C9 00 00 21 [23:01:45]Write i2c OK [23:01:45]MH_I2C_Read... [23:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:45]Read from MH i2c: E2 [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: E2 03 00 [23:01:45]MH_I2C_Read... [23:01:45]Read from MH i2c: E2 03 00 DA 06 00 90 00 54 [23:01:45]RAPDU: 90 00 [23:01:45]wFMCommunicate OK [23:01:45]wFMCommunicate request_size=10 [23:01:45]MH_SAM_APDU [23:01:45]CAPDU: 80 0D 02 02 05 6C 2F 2D A0 95 [23:01:45]Write to MH i2c: E2 0D 00 DB 06 80 0D 02 02 05 00 6C 2F 2D A0 95 00 00 62 [23:01:45]Write i2c OK [23:01:45]MH_I2C_Read... [23:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 03 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 03 00 DB 06 00 90 00 55 [23:01:46]RAPDU: 90 00 [23:01:46]wFMCommunicate OK [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 0D 03 02 [23:01:46]Write to MH i2c: E2 08 00 DC 06 80 0D 03 02 00 00 00 00 5D [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 0B 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 0B 00 DC 06 00 8A 84 09 B5 36 12 35 16 90 00 BD [23:01:46]RAPDU: 8A 84 09 B5 36 12 35 16 90 00 [23:01:46]wFMCommunicate OK [23:01:46]SAM_PROTO_SignData done [23:01:46]FM_MakeSignedData done [23:01:46]CreateOFDProtocolMessage [23:01:46]wFMCommunicate request_size=4 [23:01:46]MH_SAM_APDU [23:01:46]CAPDU: 80 11 00 00 [23:01:46]Write to MH i2c: E2 08 00 DD 06 80 11 00 00 00 00 00 00 5D [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:46]Read from MH i2c: E2 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 17 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: E2 17 00 DD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B1 [23:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:01:46]wFMCommunicate OK [23:01:46]CreateOFDProtocolMessage done [23:01:46]OFDSenderStorePacket 72921 [23:01:46]StoreOFDPacket docnum=72921 [23:01:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E7 7E 07 01 81 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5C 58 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A0 8F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 45 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D9 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D9 1C 01 00 35 04 06 00 C9 6C 2F 2D A0 95 8A 84 09 B5 36 12 35 16 [23:01:46]CheckFolder [23:01:46]dirname=/storage/ofd_packets [23:01:46]CheckFolder done [23:01:46]ProducePacketName [23:01:46]name=ofd_packets/00072921 [23:01:46]NVStorageSaveData ofd_packets/00072921 [23:01:46]File name is /storage/ofd_packets/00072921 [23:01:46]Write 301 bytes [23:01:46]NVStorageSaveData done [23:01:46]OFDSenderStorePacket done [23:01:46]KKMCreateOFDPacket done [23:01:46]NVStorageSaveData kkm_last_timestamp [23:01:46]File name is /storage/kkm_last_timestamp [23:01:46]Write 4 bytes [23:01:46]NVStorageSaveData done [23:01:46]ExternCall_PrintAddStr [23:01:46]wPrintStart [23:01:46]Write to MH i2c: 01 00 00 DE 06 E4 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 07 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 07 00 DE 06 00 00 00 00 00 FF 0F F9 [23:01:46]RasterBufferAndPrint [23:01:46]line Счет N : (1)952523 [23:01:46]line ИНН: 02508201610067 [23:01:46]line Контрольно-Кассовый Чек [23:01:46]line ПРОДАЖА [23:01:46]line ТРК (МРК, ГНК) : 62 [23:01:46]line Товар: 2710124500 [23:01:46]line Аи-95-К-3 [23:01:46]line 22.620 * 74.20 [23:01:46]line = 1678.40 [23:01:46]line НДС 12% НСП 1% [23:01:46]line > о реализуемом товаре [23:01:46]line ИТОГО: 1678.40 [23:01:46]line НСП 1% : 14.85 [23:01:46]line НДС 12% : 178.24 [23:01:46]line Наличными: 0.00 [23:01:46]line Безнал.: 1678.40 [23:01:46]line Место: АЗС № 113 "Партнер Нефть" [23:01:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:01:46]line СНО: Общий режим [23:01:46]line Чек 158 30.10.2024 23:01 [23:01:46]line Смена: 556 ФФД: 1.0 [23:01:46]line ЗНМ: 0300000087 [23:01:46]line РНМ: 0000000000091644 [23:01:46]line Версия ККМ: 001 [23:01:46]line Платежная система: АКБ Кыргызстан [23:01:46]line ФМ: 0000000000874662 [23:01:46]line ФД: 72921 [23:01:46]line ФПД: 221466485170325 [23:01:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T230145&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72921&fm=221466485170325&tin=02508201610067®Number=0000000000091644&sum=167840 [23:01:46]written 0, free lines is 4095 [23:01:46]OFD Sender: Processing packet 72921 [packets to send 279, broken 278] [23:01:46]ProducePacketName [23:01:46]name=ofd_packets/00072921 [23:01:46]OFD Sender: To server: pG, [23:01:46]CommunicateWithHost lk.salyk.kg:30040 [23:01:46]ConnectInit lk.salyk.kg [23:01:46]Write to MH i2c: 01 00 00 08 07 0F [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 07 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 F3 0C 15 [23:01:46]RasterBufferAndPrint [23:01:46]line [23:01:46]line [23:01:46]line [23:01:46]line [23:01:46]line [23:01:46]written 0, free lines is 3321 [23:01:46]MH_Cut [23:01:46]Write to MH i2c: D1 01 00 0F 07 01 E8 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: D1 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: D1 01 00 [23:01:46]MH_I2C_Read... [23:01:46]Read from MH i2c: D1 01 00 0F 07 00 E7 [23:01:46]Write to MH i2c: 01 00 00 10 07 17 [23:01:46]Write i2c OK [23:01:46]MH_I2C_Read... [23:01:47]*** Cut start [23:01:47]*** Partial cut [23:01:47]*** CUTSNS_PIN = 1 [23:01:47]*** CUTSNS_PIN = 0 [23:01:47]*** Brake cut motor [23:01:47]Read from MH i2c: 01 [23:01:47]MH_I2C_Read... [23:01:47]*** Stop cut motor [23:01:47]*** Cut end [23:01:47]Read from MH i2c: 01 07 00 [23:01:47]MH_I2C_Read... [23:01:47]Read from MH i2c: 01 07 00 10 07 00 00 00 00 00 FF 0F 2C [23:01:47]process_action close_receipt done [23:01:47]requested_data is exist [23:01:47]produce_requested_data [23:01:47]requested_item fm.sn is exist - process it [23:01:47]wFMCommunicate request_size=4 [23:01:47]MH_SAM_APDU [23:01:47]CAPDU: 80 11 00 00 [23:01:47]Write to MH i2c: E2 08 00 11 07 80 11 00 00 00 00 00 00 92 [23:01:47]Write i2c OK [23:01:47]MH_I2C_Read... [23:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:48]Read from MH i2c: E2 [23:01:48]MH_I2C_Read... [23:01:48]Read from MH i2c: E2 17 00 [23:01:48]MH_I2C_Read... [23:01:48]Read from MH i2c: E2 17 00 11 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E6 [23:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:01:48]wFMCommunicate OK [23:01:48]requested_item fd.num is exist - process it [23:01:48]SAM_PROTO_GetFieldsCounters [23:01:48]wFMCommunicate request_size=4 [23:01:48]MH_SAM_APDU [23:01:48]CAPDU: 80 13 00 00 [23:01:48]Write to MH i2c: E2 08 00 12 07 80 13 00 00 00 00 00 00 95 [23:01:48]Write i2c OK [23:01:48]MH_I2C_Read... [23:01:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:48]Read from MH i2c: E2 [23:01:48]MH_I2C_Read... [23:01:48]Read from MH i2c: E2 62 00 [23:01:48]MH_I2C_Read... [23:01:48]Read from MH i2c: E2 62 00 12 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D9 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [23:01:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 D9 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:01:48]wFMCommunicate OK [23:01:48]SAM_PROTO_GetFieldsCounters done [23:01:48]requested_item shift.num is exist - process it [23:01:48]requested_item shift.opened is exist - process it [23:01:48]req_shift_opened [23:01:48]FM_GetShiftState [23:01:48]SAM_PROTO_GetShiftState [23:01:48]wFMCommunicate request_size=4 [23:01:48]MH_SAM_APDU [23:01:48]CAPDU: 80 13 01 00 [23:01:48]Write to MH i2c: E2 08 00 13 07 80 13 01 00 00 00 00 00 97 [23:01:48]Write i2c OK [23:01:48]MH_I2C_Read... [23:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:48]Read from MH i2c: E2 [23:01:48]MH_I2C_Read... [23:01:48]Read from MH i2c: E2 0E 00 [23:01:48]MH_I2C_Read... [23:01:48]Read from MH i2c: E2 0E 00 13 07 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 69 [23:01:48]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:01:48]wFMCommunicate OK [23:01:48]SAM_PROTO_GetShiftState done [23:01:48]FM_GetShiftState done [23:01:48]req_shift_opened done [23:01:48]requested_item shift.open_date is exist - process it [23:01:48]req_shift_open_date [23:01:48]req_shift_open_date done [23:01:48]produce_requested_data done [23:01:48]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72921,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [23:01:48]process_action_free close_receipt [23:01:48]json_value_free [23:01:48]json_value_free done [23:01:48]process_json_proto returns [23:01:48]Send response to host [23:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72921,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [23:01:48]free response buf [23:01:48]execute_script done [23:01:48]execute_script returns [23:01:48]free content buf [23:01:48]Sock 10.Close socket [23:01:48]Sock 10.Thread stoped [23:01:48]Connected sock=9 [23:01:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E7 7E 07 01 81 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5C 58 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A0 8F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 45 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 8F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D9 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D9 1C 01 00 35 04 06 00 C9 6C 2F 2D A0 95 8A 84 09 B5 36 12 35 16 [23:01:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 81 1D 47 00 85 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 D9 1C 01 00 F4 03 04 00 93 65 22 67 B6 04 01 00 00 25 E5 53 A7 DD BD F8 E2 [23:01:49]CommunicateWithHost err = 0 [23:01:49]CheckOFDResponse [23:01:49]1017 (14) - 77093643461234 [23:01:49]1041 (16) - 0000000000874662 [23:01:49]1040 (4) - 72921 [23:01:49]1012 (4) - 30.10.2024 16:57 [23:01:49]1206 (1) - 0 [23:01:49]OFD Sender: Remove packet 72921 [23:01:49]ProducePacketName [23:01:49]name=ofd_packets/00072921 [23:01:49]NVStorageDeleteData [23:01:49]OFD Sender: No OFD packet to send [23:01:54]recv_with_timeout no data received [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:07]recv_with_timeout no data received [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:21]recv_with_timeout no data received [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]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:03]recv_with_timeout no data received [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:13]recv_with_timeout no data received [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:39]recv_with_timeout no data received [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]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: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:47]recv_with_timeout no data received [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:43]recv_with_timeout no data received [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:01]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]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:26]recv_with_timeout no data received [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:50]recv_with_timeout no data received [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:00]recv_with_timeout no data received [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:59]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:06]recv_with_timeout no data received [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:29]recv_with_timeout no data received [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:40]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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]accept exits with 7 [23:19:21]New connection [23:19:21]New thread 3067338084 created [23:19:21]Thread 3067194724 joined [23:19:21]Waiting for new connection... [23:19:21] Sock 7.Parse request [23:19:21]Sock 7.Check first char [23:19:21]Sock 7.First char is OK [23:19:21]request: POST /json_proto HTTP/1.0 [23:19:21]Method: POST [23:19:21]URL: /json_proto [23:19:21]Method is POST - this is cgi request [23:19:21]url: /json_proto [23:19:21]query_string will be loaded in cgi processing [23:19:21]execute_cgi json_proto POST (null) [23:19:21]execute_cgi path=json_proto method=POST [23:19:21]POST find Content-Length [23:19:21]Host: 172.17.43.195:8080 [23:19:21]Content-Length: 647 [23:19:21]Content-Type: application/json [23:19:21] [23:19:21]POST finish read [23:19:21]Found Content-Length = 647 [23:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952524", "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" : 20.000, "sum" : 1524.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:21]execute_script... [23: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 : (1)952524", "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" : 20.000, "sum" : 1524.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1524.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:21]POST & json_proto [23:19:21]process_json_proto [23:19:21]json parsed OK: [23:19:21]protocol is kg_v1.0 [23:19:21]action value=close_receipt [23:19:21]process_action close_receipt [23:19:21]cmd_close_receipt [23:19:21]MH_GetDate [23:19:21]Write to MH i2c: F0 00 00 14 07 0A [23:19:21]Write i2c OK [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: F0 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: F0 09 00 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: F0 09 00 14 07 00 FB BE 22 67 74 2C AD 66 08 [23:19:21]GetLastDocTimeStamp 1730329305 [23:19:21]current date 1730330363 [23:19:21]FM_GetShiftState [23:19:21]SAM_PROTO_GetShiftState [23:19:21]wFMCommunicate request_size=4 [23:19:21]MH_SAM_APDU [23:19:21]CAPDU: 80 13 01 00 [23:19:21]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [23:19:21]Write i2c OK [23:19:21]MH_I2C_Read... [23:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:21]Read from MH i2c: E2 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: E2 0E 00 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 6B [23:19:21]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:19:21]wFMCommunicate OK [23:19:21]SAM_PROTO_GetShiftState done [23:19:21]FM_GetShiftState done [23:19:21]opened in 1730247109 [23:19:21]opened+sec_in_day 1730333509 [23:19:21]quantity*price = 152400 [23:19:21]sum+1 = 152401 [23:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1524.00 НСП 1% : 13.49 НДС 12% : 161.84 Наличными: 1524.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 159 30.10.2024 23:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72922 ФПД: 271791751744259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T231923&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72922&fm=271791751744259&tin=02508201610067®Number=0000000000091644&sum=152400 [23:19:22]StoreToDocumentArchive [23:19:22]shift 556 fd 72922 [23:19:22]save to /storage/0556/doc_00072922 [23:19:22]save last doc name /storage/0556/doc_00072922 to /storage/kkm_last_doc_name [23:19:22]save OK [23:19:22]Clear old archive folders... [23:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:19:22]tlvbuf is 006B5870 [23:19:22]SAM_PROTO_ClearQueue [23:19:22]wFMCommunicate request_size=4 [23:19:22]MH_SAM_APDU [23:19:22]CAPDU: 80 09 00 00 [23:19:22]Write to MH i2c: E2 08 00 22 07 80 09 00 00 00 00 00 00 9B [23:19:22]Write i2c OK [23:19:22]MH_I2C_Read... [23:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:22]Read from MH i2c: E2 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 03 00 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [23:19:22]RAPDU: 90 00 [23:19:22]wFMCommunicate OK [23:19:22]SAM_PROTO_ClearQueue done [23:19:22]KKMCreateOFDPacket [23:19:22]OFDProtocolAddRootSTLVToBuf [23:19:22]FM_MakeSignedData [23:19:22]FM_MakeSignedData [23:19:22]SAM_PROTO_SignData [23:19:22]wFMCommunicate request_size=4 [23:19:22]MH_SAM_APDU [23:19:22]CAPDU: 80 0D 01 02 [23:19:22]Write to MH i2c: E2 08 00 23 07 80 0D 01 02 00 00 00 00 A3 [23:19:22]Write i2c OK [23:19:22]MH_I2C_Read... [23:19:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:22]Read from MH i2c: E2 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 03 00 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [23:19:22]RAPDU: 90 00 [23:19:22]wFMCommunicate OK [23:19:22]wFMCommunicate request_size=255 [23:19:22]MH_SAM_APDU [23:19: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 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FB BE 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DA 1C 01 00 35 04 06 00 [23:19:22]Write to MH i2c: E2 02 01 24 07 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 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FB BE 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DA 1C 01 00 35 04 06 00 00 00 ED [23:19:22]Write i2c OK [23:19:22]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [23:19:23]RAPDU: 90 00 [23:19:23]wFMCommunicate OK [23:19:23]wFMCommunicate request_size=11 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 0D 02 02 06 F7 31 72 D0 CB 03 [23:19:23]Write to MH i2c: E2 0E 00 25 07 80 0D 02 02 06 00 F7 31 72 D0 CB 03 00 00 EA [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [23:19:23]RAPDU: 90 00 [23:19:23]wFMCommunicate OK [23:19:23]wFMCommunicate request_size=4 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 0D 03 02 [23:19:23]Write to MH i2c: E2 08 00 26 07 80 0D 03 02 00 00 00 00 A8 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 0B 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 0B 00 26 07 00 38 01 31 65 74 BF D4 0C 90 00 8B [23:19:23]RAPDU: 38 01 31 65 74 BF D4 0C 90 00 [23:19:23]wFMCommunicate OK [23:19:23]SAM_PROTO_SignData done [23:19:23]FM_MakeSignedData done [23:19:23]CreateOFDProtocolMessage [23:19:23]wFMCommunicate request_size=4 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 11 00 00 [23:19:23]Write to MH i2c: E2 08 00 27 07 80 11 00 00 00 00 00 00 A8 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 17 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 17 00 27 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FC [23:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:19:23]wFMCommunicate OK [23:19:23]CreateOFDProtocolMessage done [23:19:23]OFDSenderStorePacket 72922 [23:19:23]StoreOFDPacket docnum=72922 [23:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 63 A7 08 01 C9 D4 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 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FB BE 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DA 1C 01 00 35 04 06 00 F7 31 72 D0 CB 03 38 01 31 65 74 BF D4 0C [23:19:23]CheckFolder [23:19:23]dirname=/storage/ofd_packets [23:19:23]CheckFolder done [23:19:23]ProducePacketName [23:19:23]name=ofd_packets/00072922 [23:19:23]NVStorageSaveData ofd_packets/00072922 [23:19:23]File name is /storage/ofd_packets/00072922 [23:19:23]Write 302 bytes [23:19:23]NVStorageSaveData done [23:19:23]OFDSenderStorePacket done [23:19:23]KKMCreateOFDPacket done [23:19:23]NVStorageSaveData kkm_last_timestamp [23:19:23]File name is /storage/kkm_last_timestamp [23:19:23]Write 4 bytes [23:19:23]NVStorageSaveData done [23:19:23]ExternCall_PrintAddStr [23:19:23]wPrintStart [23:19:23]Write to MH i2c: 01 00 00 28 07 2F [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: 01 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: 01 07 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [23:19:23]RasterBufferAndPrint [23:19:23]line Счет N : (1)952524 [23:19:23]line ИНН: 02508201610067 [23:19:23]line Контрольно-Кассовый Чек [23:19:23]line ПРОДАЖА [23:19:23]line ТРК (МРК, ГНК) : 43 [23:19:23]line Товар: 2710194210 [23:19:23]line ДТ(л)-К-5 [23:19:23]line 20.000 * 76.20 [23:19:23]line = 1524.00 [23:19:23]line НДС 12% НСП 1% [23:19:23]line > о реализуемом товаре [23:19:23]line ИТОГО: 1524.00 [23:19:23]line НСП 1% : 13.49 [23:19:23]line НДС 12% : 161.84 [23:19:23]line Наличными: 1524.00 [23:19:23]line Безнал.: 0.00 [23:19:23]line Место: АЗС № 113 "Партнер Нефть" [23:19:23]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:19:23]line СНО: Общий режим [23:19:23]line Чек 159 30.10.2024 23:19 [23:19:23]line Смена: 556 ФФД: 1.0 [23:19:23]line ЗНМ: 0300000087 [23:19:23]line РНМ: 0000000000091644 [23:19:23]line Версия ККМ: 001 [23:19:23]line ФМ: 0000000000874662 [23:19:23]line ФД: 72922 [23:19:23]line ФПД: 271791751744259 [23:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T231923&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72922&fm=271791751744259&tin=02508201610067®Number=0000000000091644&sum=152400 [23:19:23]OFD Sender: Processing packet 72922 [packets to send 279, broken 278] [23:19:23]ProducePacketName [23:19:23]name=ofd_packets/00072922 [23:19:23]OFD Sender: To server: pG, [23:19:23]CommunicateWithHost lk.salyk.kg:30040 [23:19:23]ConnectInit lk.salyk.kg [23:19:23]written 0, free lines is 4095 [23:19:24]Write to MH i2c: 01 00 00 50 07 57 [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: 01 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: 01 07 00 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: 01 07 00 50 07 00 00 00 00 00 02 0D 6D [23:19:24]RasterBufferAndPrint [23:19:24]line [23:19:24]line [23:19:24]line [23:19:24]line [23:19:24]line [23:19:24]written 0, free lines is 3336 [23:19:24]MH_Cut [23:19:24]Write to MH i2c: D1 01 00 57 07 01 30 [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: D1 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: D1 01 00 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: D1 01 00 57 07 00 2F [23:19:24]Write to MH i2c: 01 00 00 58 07 5F [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]Connected sock=9 [23:19:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 63 A7 08 01 C9 D4 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 20 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 53 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 53 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3F 00 00 00 00 07 04 06 00 50 53 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 FB BE 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DA 1C 01 00 35 04 06 00 F7 31 72 D0 CB 03 38 01 31 65 74 BF D4 0C [23:19:24]*** Cut start [23:19:24]*** Partial cut [23:19:24]*** CUTSNS_PIN = 1 [23:19:24]*** CUTSNS_PIN = 0 [23:19:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CA 12 47 00 E7 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DA 1C 01 00 F4 03 04 00 B3 69 22 67 B6 04 01 00 00 03 0E 76 0E 9F E3 D6 4F [23:19:25]CommunicateWithHost err = 0 [23:19:25]CheckOFDResponse [23:19:25]1017 (14) - 77093643461234 [23:19:25]1041 (16) - 0000000000874662 [23:19:25]1040 (4) - 72922 [23:19:25]1012 (4) - 30.10.2024 17:15 [23:19:25]1206 (1) - 0 [23:19:25]OFD Sender: Remove packet 72922 [23:19:25]ProducePacketName [23:19:25]name=ofd_packets/00072922 [23:19:25]NVStorageDeleteData [23:19:25]*** Brake cut motor [23:19:25]Read from MH i2c: 01 [23:19:25]MH_I2C_Read... [23:19:25]*** Stop cut motor [23:19:25]*** Cut end [23:19:25]Read from MH i2c: 01 07 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: 01 07 00 58 07 00 00 00 00 00 FF 0F 74 [23:19:25]process_action close_receipt done [23:19:25]requested_data is exist [23:19:25]produce_requested_data [23:19:25]requested_item fm.sn is exist - process it [23:19:25]wFMCommunicate request_size=4 [23:19:25]MH_SAM_APDU [23:19:25]CAPDU: 80 11 00 00 [23:19:25]Write to MH i2c: E2 08 00 59 07 80 11 00 00 00 00 00 00 DA [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:25]Read from MH i2c: E2 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 17 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 17 00 59 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2E [23:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:19:25]wFMCommunicate OK [23:19:25]requested_item fd.num is exist - process it [23:19:25]SAM_PROTO_GetFieldsCounters [23:19:25]wFMCommunicate request_size=4 [23:19:25]MH_SAM_APDU [23:19:25]CAPDU: 80 13 00 00 [23:19:25]Write to MH i2c: E2 08 00 5A 07 80 13 00 00 00 00 00 00 DD [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:25]OFD Sender: No OFD packet to send [23:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:25]Read from MH i2c: E2 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 62 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 62 00 5A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DA 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [23:19:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DA 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:25]wFMCommunicate OK [23:19:25]SAM_PROTO_GetFieldsCounters done [23:19:25]requested_item shift.num is exist - process it [23:19:25]requested_item shift.opened is exist - process it [23:19:25]req_shift_opened [23:19:25]FM_GetShiftState [23:19:25]SAM_PROTO_GetShiftState [23:19:25]wFMCommunicate request_size=4 [23:19:25]MH_SAM_APDU [23:19:25]CAPDU: 80 13 01 00 [23:19:25]Write to MH i2c: E2 08 00 5B 07 80 13 01 00 00 00 00 00 DF [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:25]Read from MH i2c: E2 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 0E 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 0E 00 5B 07 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B1 [23:19:25]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:19:25]wFMCommunicate OK [23:19:25]SAM_PROTO_GetShiftState done [23:19:25]FM_GetShiftState done [23:19:25]req_shift_opened done [23:19:25]requested_item shift.open_date is exist - process it [23:19:25]req_shift_open_date [23:19:25]req_shift_open_date done [23:19:25]produce_requested_data done [23:19:25]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72922,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [23:19:25]process_action_free close_receipt [23:19:25]json_value_free [23:19:25]json_value_free done [23:19:25]process_json_proto returns [23:19:25]Send response to host [23:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72922,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [23:19:25]free response buf [23:19:25]execute_script done [23:19:25]execute_script returns [23:19:25]free content buf [23:19:25]Sock 7.Close socket [23:19:25]Sock 7.Thread stoped [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:16]recv_with_timeout no data received [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]recv_with_timeout no data received [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]recv_with_timeout no data received [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:34]recv_with_timeout no data received [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]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:36]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:28]recv_with_timeout no data received [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:20]recv_with_timeout no data received [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:47]recv_with_timeout no data received [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:17]recv_with_timeout no data received [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:09]recv_with_timeout no data received [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:52]recv_with_timeout no data received [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:16]recv_with_timeout no data received [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:28]recv_with_timeout no data received [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:51]recv_with_timeout no data received [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:09]recv_with_timeout no data received [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:13]recv_with_timeout no data received [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:30]recv_with_timeout no data received [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:37:59]recv_with_timeout no data received [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:10]recv_with_timeout no data received [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:01]recv_with_timeout no data received [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]recv_with_timeout no data received [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:22]recv_with_timeout no data received [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:39]recv_with_timeout no data received [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:44]recv_with_timeout no data received [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:05]recv_with_timeout no data received [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]recv_with_timeout no data received [23:46:23]OFD Sender: No OFD packet to send [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:54]recv_with_timeout no data received [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:06]accept exits with 10 [23:47:06]New connection [23:47:06]New thread 3067194724 created [23:47:06]Thread 3067338084 joined [23:47:06]Waiting for new connection... [23:47:06] Sock 10.Parse request [23:47:06]Sock 10.Check first char [23:47:06]Sock 10.First char is OK [23:47:06]request: POST /json_proto HTTP/1.0 [23:47:06]Method: POST [23:47:06]URL: /json_proto [23:47:06]Method is POST - this is cgi request [23:47:06]url: /json_proto [23:47:06]query_string will be loaded in cgi processing [23:47:06]execute_cgi json_proto POST (null) [23:47:06]execute_cgi path=json_proto method=POST [23:47:06]POST find Content-Length [23:47:06]Host: 172.17.43.195:8080 [23:47:06]Content-Length: 681 [23:47:06]Content-Type: application/json [23:47:06] [23:47:06]POST finish read [23:47:06]Found Content-Length = 681 [23:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 24.430, "sum" : 950.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:06]execute_script... [23:47:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 24.430, "sum" : 950.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:06]POST & json_proto [23:47:06]process_json_proto [23:47:06]json parsed OK: [23:47:06]protocol is kg_v1.0 [23:47:06]action value=close_receipt [23:47:06]process_action close_receipt [23:47:06]cmd_close_receipt [23:47:06]MH_GetDate [23:47:06]Write to MH i2c: F0 00 00 5C 07 52 [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: F0 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: F0 09 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: F0 09 00 5C 07 00 7B C5 22 67 74 2C AD 66 D7 [23:47:06]GetLastDocTimeStamp 1730330363 [23:47:06]current date 1730332027 [23:47:06]FM_GetShiftState [23:47:06]SAM_PROTO_GetShiftState [23:47:06]wFMCommunicate request_size=4 [23:47:06]MH_SAM_APDU [23:47:06]CAPDU: 80 13 01 00 [23:47:06]Write to MH i2c: E2 08 00 5D 07 80 13 01 00 00 00 00 00 E1 [23:47:06]Write i2c OK [23:47:06]MH_I2C_Read... [23:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:06]Read from MH i2c: E2 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 0E 00 [23:47:06]MH_I2C_Read... [23:47:06]Read from MH i2c: E2 0E 00 5D 07 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 B3 [23:47:06]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:47:06]wFMCommunicate OK [23:47:06]SAM_PROTO_GetShiftState done [23:47:06]FM_GetShiftState done [23:47:06]opened in 1730247109 [23:47:06]opened+sec_in_day 1730333509 [23:47:06]quantity*price = 95032 [23:47:06]sum+1 = 95034 [23:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 950.00 Внесено: 950.00 СДАЧА: 0.00 НСП 1% : 8.41 НДС 12% : 100.92 Наличными: 950.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 160 30.10.2024 23:47 Смена: 556 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72923 ФПД: 67726641802337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T234707&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72923&fm=67726641802337&tin=02508201610067®Number=0000000000091644&sum=95000 [23:47:07]StoreToDocumentArchive [23:47:07]shift 556 fd 72923 [23:47:07]save to /storage/0556/doc_00072923 [23:47:07]save last doc name /storage/0556/doc_00072923 to /storage/kkm_last_doc_name [23:47:07]save OK [23:47:07]Clear old archive folders... [23:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:47:07]tlvbuf is 006BFB50 [23:47:07]SAM_PROTO_ClearQueue [23:47:07]wFMCommunicate request_size=4 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 09 00 00 [23:47:07]Write to MH i2c: E2 08 00 6A 07 80 09 00 00 00 00 00 00 E3 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [23:47:07]RAPDU: 90 00 [23:47:07]wFMCommunicate OK [23:47:07]SAM_PROTO_ClearQueue done [23:47:07]KKMCreateOFDPacket [23:47:07]OFDProtocolAddRootSTLVToBuf [23:47:07]FM_MakeSignedData [23:47:07]FM_MakeSignedData [23:47:07]SAM_PROTO_SignData [23:47:07]wFMCommunicate request_size=4 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 0D 01 02 [23:47:07]Write to MH i2c: E2 08 00 6B 07 80 0D 01 02 00 00 00 00 EB [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 6B 07 00 90 00 E6 [23:47:07]RAPDU: 90 00 [23:47:07]wFMCommunicate OK [23:47:07]wFMCommunicate request_size=255 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 5F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 7B C5 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DB 1C 01 00 35 04 06 00 3D 98 [23:47:07]Write to MH i2c: E2 02 01 6C 07 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 5F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 7B C5 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DB 1C 01 00 35 04 06 00 3D 98 00 00 B0 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [23:47:07]RAPDU: 90 00 [23:47:07]wFMCommunicate OK [23:47:07]wFMCommunicate request_size=9 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 0D 02 02 04 D6 6D 2C 61 [23:47:07]Write to MH i2c: E2 0C 00 6D 07 80 0D 02 02 04 00 D6 6D 2C 61 00 00 C6 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [23:47:07]RAPDU: 90 00 [23:47:07]wFMCommunicate OK [23:47:07]wFMCommunicate request_size=4 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 0D 03 02 [23:47:07]Write to MH i2c: E2 08 00 6E 07 80 0D 03 02 00 00 00 00 F0 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 0B 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 0B 00 6E 07 00 0E 8C 25 BA 9B DC BC 5E 90 00 FB [23:47:07]RAPDU: 0E 8C 25 BA 9B DC BC 5E 90 00 [23:47:07]wFMCommunicate OK [23:47:07]SAM_PROTO_SignData done [23:47:07]FM_MakeSignedData done [23:47:07]CreateOFDProtocolMessage [23:47:07]wFMCommunicate request_size=4 [23:47:07]MH_SAM_APDU [23:47:07]CAPDU: 80 11 00 00 [23:47:07]Write to MH i2c: E2 08 00 6F 07 80 11 00 00 00 00 00 00 F0 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:07]Read from MH i2c: E2 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 17 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: E2 17 00 6F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 44 [23:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:47:07]wFMCommunicate OK [23:47:07]CreateOFDProtocolMessage done [23:47:07]OFDSenderStorePacket 72923 [23:47:07]StoreOFDPacket docnum=72923 [23:47:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 30 6E 06 01 21 74 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 5F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 7B C5 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DB 1C 01 00 35 04 06 00 3D 98 D6 6D 2C 61 0E 8C 25 BA 9B DC BC 5E [23:47:07]CheckFolder [23:47:07]dirname=/storage/ofd_packets [23:47:07]CheckFolder done [23:47:07]ProducePacketName [23:47:07]name=ofd_packets/00072923 [23:47:07]NVStorageSaveData ofd_packets/00072923 [23:47:07]File name is /storage/ofd_packets/00072923 [23:47:07]Write 300 bytes [23:47:07]NVStorageSaveData done [23:47:07]OFDSenderStorePacket done [23:47:07]KKMCreateOFDPacket done [23:47:07]NVStorageSaveData kkm_last_timestamp [23:47:07]File name is /storage/kkm_last_timestamp [23:47:07]Write 4 bytes [23:47:07]NVStorageSaveData done [23:47:07]ExternCall_PrintAddStr [23:47:07]wPrintStart [23:47:07]Write to MH i2c: 01 00 00 70 07 77 [23:47:07]Write i2c OK [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: 01 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: 01 07 00 [23:47:07]MH_I2C_Read... [23:47:07]Read from MH i2c: 01 07 00 70 07 00 00 00 00 00 FF 0F 8C [23:47:07]RasterBufferAndPrint [23:47:07]line Счет N : (1)952525 [23:47:07]line ИНН: 02508201610067 [23:47:07]line Контрольно-Кассовый Чек [23:47:07]line ПРОДАЖА [23:47:07]line ТРК (МРК, ГНК) : 71 [23:47:07]line Товар: 2711190000 [23:47:07]line ГАЗ-К-3 [23:47:07]line 24.430 * 38.90 [23:47:07]line = 950.33 [23:47:07]line НДС 12% НСП 1% [23:47:07]line > о реализуемом товаре [23:47:07]line ОКРУГЛЕНИЕ: -0.33 [23:47:07]line ИТОГО: 950.00 [23:47:07]line Внесено: 950.00 [23:47:07]line СДАЧА: 0.00 [23:47:07]line НСП 1% : 8.41 [23:47:07]line НДС 12% : 100.92 [23:47:07]line Наличными: 950.00 [23:47:07]line Безнал.: 0.00 [23:47:07]line Место: АЗС № 113 "Партнер Нефть" [23:47:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:47:07]line СНО: Общий режим [23:47:07]line Чек 160 30.10.2024 23:47 [23:47:07]line Смена: 556 ФФД: 1.0 [23:47:07]line ЗНМ: 0300000087 [23:47:07]line РНМ: 0000000000091644 [23:47:07]line Версия ККМ: 001 [23:47:07]line ФМ: 0000000000874662 [23:47:07]line ФД: 72923 [23:47:08]line ФПД: 67726641802337 [23:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T234707&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72923&fm=67726641802337&tin=02508201610067®Number=0000000000091644&sum=95000 [23:47:08]OFD Sender: Processing packet 72923 [packets to send 279, broken 278] [23:47:08]ProducePacketName [23:47:08]name=ofd_packets/00072923 [23:47:08]OFD Sender: To server: pG, [23:47:08]CommunicateWithHost lk.salyk.kg:30040 [23:47:08]ConnectInit lk.salyk.kg [23:47:08]written 0, free lines is 4095 [23:47:08]Write to MH i2c: 01 00 00 9B 07 A2 [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: 01 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: 01 07 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: 01 07 00 9B 07 00 00 00 00 00 CD 0C 82 [23:47:08]RasterBufferAndPrint [23:47:08]line [23:47:08]line [23:47:08]line [23:47:08]line [23:47:08]line [23:47:08]written 0, free lines is 3280 [23:47:08]MH_Cut [23:47:08]Write to MH i2c: D1 01 00 A2 07 01 7B [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: D1 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: D1 01 00 [23:47:08]MH_I2C_Read... [23:47:08]Read from MH i2c: D1 01 00 A2 07 00 7A [23:47:08]Write to MH i2c: 01 00 00 A3 07 AA [23:47:08]Write i2c OK [23:47:08]MH_I2C_Read... [23:47:09]*** Cut start [23:47:09]*** Partial cut [23:47:09]*** CUTSNS_PIN = 1 [23:47:09]*** CUTSNS_PIN = 0 [23:47:09]*** Brake cut motor [23:47:10]Read from MH i2c: 01 [23:47:10]MH_I2C_Read... [23:47:10]*** Stop cut motor [23:47:10]*** Cut end [23:47:10]Read from MH i2c: 01 07 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 FF 0F BF [23:47:10]process_action close_receipt done [23:47:10]requested_data is exist [23:47:10]produce_requested_data [23:47:10]requested_item fm.sn is exist - process it [23:47:10]wFMCommunicate request_size=4 [23:47:10]MH_SAM_APDU [23:47:10]CAPDU: 80 11 00 00 [23:47:10]Write to MH i2c: E2 08 00 A4 07 80 11 00 00 00 00 00 00 25 [23:47:10]Write i2c OK [23:47:10]MH_I2C_Read... [23:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:10]Read from MH i2c: E2 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 17 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 17 00 A4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 79 [23:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:47:10]wFMCommunicate OK [23:47:10]requested_item fd.num is exist - process it [23:47:10]SAM_PROTO_GetFieldsCounters [23:47:10]wFMCommunicate request_size=4 [23:47:10]MH_SAM_APDU [23:47:10]CAPDU: 80 13 00 00 [23:47:10]Write to MH i2c: E2 08 00 A5 07 80 13 00 00 00 00 00 00 28 [23:47:10]Write i2c OK [23:47:10]MH_I2C_Read... [23:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:10]Read from MH i2c: E2 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 62 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 62 00 A5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [23:47:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:10]wFMCommunicate OK [23:47:10]SAM_PROTO_GetFieldsCounters done [23:47:10]requested_item shift.num is exist - process it [23:47:10]requested_item shift.opened is exist - process it [23:47:10]req_shift_opened [23:47:10]FM_GetShiftState [23:47:10]SAM_PROTO_GetShiftState [23:47:10]wFMCommunicate request_size=4 [23:47:10]MH_SAM_APDU [23:47:10]CAPDU: 80 13 01 00 [23:47:10]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [23:47:10]Write i2c OK [23:47:10]MH_I2C_Read... [23:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:10]Read from MH i2c: E2 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 0E 00 [23:47:10]MH_I2C_Read... [23:47:10]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 FC [23:47:10]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:47:10]wFMCommunicate OK [23:47:10]SAM_PROTO_GetShiftState done [23:47:10]FM_GetShiftState done [23:47:10]req_shift_opened done [23:47:10]requested_item shift.open_date is exist - process it [23:47:10]req_shift_open_date [23:47:10]req_shift_open_date done [23:47:10]produce_requested_data done [23:47:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72923,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [23:47:10]process_action_free close_receipt [23:47:10]json_value_free [23:47:10]json_value_free done [23:47:10]process_json_proto returns [23:47:10]Send response to host [23:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72923,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [23:47:10]free response buf [23:47:10]execute_script done [23:47:10]execute_script returns [23:47:10]free content buf [23:47:10]Sock 10.Close socket [23:47:10]Sock 10.Thread stoped [23:47:13]ConnectInit Can't take IP for lk.salyk.kg [23:47:13]CommunicateWithHost connect error [23:47:13]CommunicateWithHost err = -1 [23:47:13]OFD Sender: Server communicate error [23:47:18]OFD Sender: Processing packet 72923 [packets to send 279, broken 278] [23:47:18]ProducePacketName [23:47:18]name=ofd_packets/00072923 [23:47:18]OFD Sender: To server: pG, [23:47:18]CommunicateWithHost lk.salyk.kg:30040 [23:47:18]ConnectInit lk.salyk.kg [23:47:19]recv_with_timeout no data received [23:47:23]ConnectInit Can't take IP for lk.salyk.kg [23:47:23]CommunicateWithHost connect error [23:47:23]CommunicateWithHost err = -1 [23:47:23]OFD Sender: Server communicate error [23:47:28]OFD Sender: Processing packet 72923 [packets to send 279, broken 278] [23:47:28]ProducePacketName [23:47:28]name=ofd_packets/00072923 [23:47:28]OFD Sender: To server: pG, [23:47:28]CommunicateWithHost lk.salyk.kg:30040 [23:47:28]ConnectInit lk.salyk.kg [23:47:31]recv_with_timeout no data received [23:47:33]Connected sock=10 [23:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 30 6E 06 01 21 74 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 5F 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 7B C5 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DB 1C 01 00 35 04 06 00 3D 98 D6 6D 2C 61 0E 8C 25 BA 9B DC BC 5E [23:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DB CF 47 00 AF 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DB 1C 01 00 F4 03 04 00 4B 70 22 67 B6 04 01 00 00 12 F2 4C F1 F1 B7 42 96 [23:47:33]CommunicateWithHost err = 0 [23:47:33]CheckOFDResponse [23:47:33]1017 (14) - 77093643461234 [23:47:33]1041 (16) - 0000000000874662 [23:47:33]1040 (4) - 72923 [23:47:33]1012 (4) - 30.10.2024 17:43 [23:47:33]1206 (1) - 0 [23:47:33]OFD Sender: Remove packet 72923 [23:47:33]ProducePacketName [23:47:33]name=ofd_packets/00072923 [23:47:33]NVStorageDeleteData [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [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 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [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]Read from MH i2c: *** [00:00:10]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 540000000057257A (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: 7707033+1722625140=1730332173 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [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 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [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 41 00 40 00 FF FF 5F [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 0D C6 22 67 74 2C AD 66 0E [23:49:33]Current date/time: 30.10.2024 23:49 [23:49:33]FM_Init [23:49:33]wFMConnect [23:49:33]MH_SAM_On [23:49:33]Write to MH i2c: E0 00 00 08 00 E7 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]*** iso7816_init finished! [23:49:33]*** atr: [23:49:33]*** 0F 3B D5 18 FF 81 91 FE [23:49:33]*** 1F C3 80 73 C8 21 10 0A [23:49:33]*** 00 00 00 00 00 00 00 00 [23:49:33]*** 00 00 00 00 00 00 00 00 [23:49:33]*** 00 00 00 00 00 00 00 00 [23:49:33]*** 00 00 00 00 00 00 00 00 [23:49:33]*** 00 00 00 00 00 00 00 00 [23:49:33]*** 00 00 00 00 00 00 00 00 [23:49:33]Read from MH i2c: E0 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E0 10 00 [23:49:33]MH_I2C_Read... [23:49:33]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:49:33]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:49:33]wFMCommunicate request_size=10 [23:49:33]MH_SAM_APDU [23:49:33]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:49:33]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:49:33]Read from MH i2c: E2 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 03 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:49:33]RAPDU: 90 00 [23:49:33]wFMCommunicate OK [23:49:33]wFMCommunicate request_size=4 [23:49:33]MH_SAM_APDU [23:49:33]CAPDU: 80 11 00 00 [23:49:33]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:33]Read from MH i2c: E2 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 17 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [23:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:49:33]wFMCommunicate OK [23:49:33]Detected FM SN is 0000000000874662 [23:49:33]Stored FM SN is 0000000000874662 [23:49:33]wFMCommunicate request_size=9 [23:49:33]MH_SAM_APDU [23:49:33]CAPDU: 80 16 00 00 04 08 EB 00 00 [23:49:33]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:49:33]Read from MH i2c: E2 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 03 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:49:33]RAPDU: 90 00 [23:49:33]wFMCommunicate OK [23:49:33]FM PIN OK [23:49:33]wFMCommunicate request_size=8 [23:49:33]MH_SAM_APDU [23:49:33]CAPDU: 80 14 04 00 03 02 00 01 [23:49:33]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:49:33]Read from MH i2c: E2 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 03 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:49:33]RAPDU: 90 00 [23:49:33]wFMCommunicate OK [23:49:33]wFMCommunicate request_size=13 [23:49:33]MH_SAM_APDU [23:49:33]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:49:33]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:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:49:33]Read from MH i2c: E2 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 03 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:49:33]RAPDU: 90 00 [23:49:33]wFMCommunicate OK [23:49:33]wFMCommunicate request_size=4 [23:49:33]MH_SAM_APDU [23:49:33]CAPDU: 80 11 00 00 [23:49:33]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:33]Read from MH i2c: E2 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 17 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [23:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:49:33]wFMCommunicate OK [23:49:33]DocumentArchiveInit [23:49:33]Start Httpd... [23:49:33]Httpd thread 3066903908 created [23:49:33]Write to MH i2c: 01 00 00 0F 00 0F [23:49:33]Write i2c OK [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: 01 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: 01 07 00 [23:49:33]MH_I2C_Read... [23:49:33]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:49:33]MH Int Process started [23:49:33]Allocated Socket 8 [23:49:33]Bind OK [23:49:33]Listen OK [23:49:33]httpd running on port 8080 [23:49:33]Waiting for new connection... [23:49:33]OFD Sender: No OFD packet to send [23:49:34]accept exits with 9 [23:49:34]New connection [23:49:34]New thread 3066617188 created [23:49:34]Waiting for new connection... [23:49:34] Sock 9.Parse request [23:49:34]Sock 9.Check first char [23:49:34]Sock 9.First char is OK [23:49:34]request: POST /json_proto HTTP/1.0 [23:49:34]Method: POST [23:49:34]URL: /json_proto [23:49:34]Method is POST - this is cgi request [23:49:34]url: /json_proto [23:49:34]query_string will be loaded in cgi processing [23:49:34]execute_cgi json_proto POST (null) [23:49:34]execute_cgi path=json_proto method=POST [23:49:34]POST find Content-Length [23:49:34]Host: 172.17.43.195:8080 [23:49:34]Content-Length: 215 [23:49:34]Content-Type: application/json [23:49:34] [23:49:34]POST finish read [23:49:34]Found Content-Length = 215 [23:49:34]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:49:34]execute_script... [23:49:34]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:49:34]POST & json_proto [23:49:34]process_json_proto [23:49:34]json parsed OK: [23:49:34]protocol is kg_v1.0 [23:49:34]action value=get_value [23:49:34]process_action get_value [23:49:34]cmd_get_value [23:49:34]process_action get_value done [23:49:34]requested_data is exist [23:49:34]produce_requested_data [23:49:34]requested_item kkm.sn is exist - process it [23:49:34]requested_item kkm.ver is exist - process it [23:49:34]requested_item fm.sn is exist - process it [23:49:34]wFMCommunicate request_size=4 [23:49:34]MH_SAM_APDU [23:49:34]CAPDU: 80 11 00 00 [23:49:34]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:34]Read from MH i2c: E2 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 17 00 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DE [23:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:49:34]wFMCommunicate OK [23:49:34]requested_item fd.num is exist - process it [23:49:34]SAM_PROTO_GetFieldsCounters [23:49:34]wFMCommunicate request_size=4 [23:49:34]MH_SAM_APDU [23:49:34]CAPDU: 80 13 00 00 [23:49:34]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:34]Read from MH i2c: E2 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 62 00 [23:49:34]MH_I2C_Read... [23:49:34]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [23:49:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:34]wFMCommunicate OK [23:49:34]SAM_PROTO_GetFieldsCounters done [23:49:34]requested_item shift.num is exist - process it [23:49:34]requested_item shift.opened is exist - process it [23:49:34]req_shift_opened [23:49:34]FM_GetShiftState [23:49:34]SAM_PROTO_GetShiftState [23:49:34]wFMCommunicate request_size=4 [23:49:34]MH_SAM_APDU [23:49:34]CAPDU: 80 13 01 00 [23:49:34]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:34]Read from MH i2c: E2 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 0E 00 [23:49:34]MH_I2C_Read... [23:49:34]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 61 [23:49:34]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:49:34]wFMCommunicate OK [23:49:34]SAM_PROTO_GetShiftState done [23:49:34]FM_GetShiftState done [23:49:34]req_shift_opened done [23:49:34]requested_item shift.open_date is exist - process it [23:49:34]req_shift_open_date [23:49:34]req_shift_open_date done [23:49:34]produce_requested_data done [23:49:34]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72923,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [23:49:34]process_action_free get_value [23:49:34]json_value_free [23:49:34]json_value_free done [23:49:34]process_json_proto returns [23:49:34]Send response to host [23:49:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72923,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [23:49:34]free response buf [23:49:34]execute_script done [23:49:34]execute_script returns [23:49:34]free content buf [23:49:34]Sock 9.Close socket [23:49:34]Sock 9.Thread stoped [23:49:34]accept exits with 6 [23:49:34]New connection [23:49:34]New thread 3066473828 created [23:49:34]Thread 3066617188 joined [23:49:34]Waiting for new connection... [23:49:34] Sock 6.Parse request [23:49:34]Sock 6.Check first char [23:49:34]Sock 6.First char is OK [23:49:34]request: POST /json_proto HTTP/1.0 [23:49:34]Method: POST [23:49:34]URL: /json_proto [23:49:34]Method is POST - this is cgi request [23:49:34]url: /json_proto [23:49:34]query_string will be loaded in cgi processing [23:49:34]execute_cgi json_proto POST (null) [23:49:34]execute_cgi path=json_proto method=POST [23:49:34]POST find Content-Length [23:49:34]Host: 172.17.43.195:8080 [23:49:34]Content-Length: 331 [23:49:34]Content-Type: application/json [23:49:34] [23:49:34]POST finish read [23:49:34]Found Content-Length = 331 [23:49:34]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:49:34]execute_script... [23:49:34]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:49:34]POST & json_proto [23:49:34]process_json_proto [23:49:34]json parsed OK: [23:49:34]protocol is kg_v1.0 [23:49:34]action value=get_value [23:49:34]process_action get_value [23:49:34]cmd_get_value [23:49:34]process_action get_value done [23:49:34]requested_data is exist [23:49:34]produce_requested_data [23:49:34]requested_item fm.sale.total is exist - process it [23:49:34]SAM_PROTO_GetFMData [23:49:34]wFMCommunicate request_size=4 [23:49:34]MH_SAM_APDU [23:49:34]CAPDU: 80 13 03 00 [23:49:34]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:49:34]Write i2c OK [23:49:34]MH_I2C_Read... [23:49:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:49:35]Read from MH i2c: E2 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 FD 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 5F [23:49:35]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [23:49:35]wFMCommunicate OK [23:49:35]wFMCommunicate request_size=4 [23:49:35]MH_SAM_APDU [23:49:35]CAPDU: 80 17 00 00 [23:49:35]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:49:35]Write i2c OK [23:49:35]MH_I2C_Read... [23:49:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:35]Read from MH i2c: E2 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 FD 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [23:49:35]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:35]wFMCommunicate OK [23:49:35]wFMCommunicate request_size=4 [23:49:35]MH_SAM_APDU [23:49:35]CAPDU: 80 17 00 00 [23:49:35]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:49:35]Write i2c OK [23:49:35]MH_I2C_Read... [23:49:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:35]Read from MH i2c: E2 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 FD 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [23:49:35]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:35]wFMCommunicate OK [23:49:35]wFMCommunicate request_size=4 [23:49:35]MH_SAM_APDU [23:49:35]CAPDU: 80 17 00 00 [23:49:35]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:49:35]Write i2c OK [23:49:35]MH_I2C_Read... [23:49:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:35]Read from MH i2c: E2 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 FD 00 [23:49:35]MH_I2C_Read... [23:49:35]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [23:49:35]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:49:35]wFMCommunicate OK [23:49:35]wFMCommunicate request_size=4 [23:49:35]MH_SAM_APDU [23:49:35]CAPDU: 80 17 00 00 [23:49:35]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:49:35]Write i2c OK [23:49:35]MH_I2C_Read... [23:49:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:49:36]Read from MH i2c: E2 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 E1 00 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:49:36]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:49:36]wFMCommunicate OK [23:49:36]SAM_PROTO_GetFMData done [23:49:36]requested_item fm.sale_refund.total is exist - process it [23:49:36]requested_item fm.buy.total is exist - process it [23:49:36]requested_item shift.sale.total is exist - process it [23:49:36]SAM_PROTO_GetShiftData [23:49:36]wFMCommunicate request_size=4 [23:49:36]MH_SAM_APDU [23:49:36]CAPDU: 80 13 02 00 [23:49:36]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:49:36]Write i2c OK [23:49:36]MH_I2C_Read... [23:49:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:49:36]Read from MH i2c: E2 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 FD 00 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 E9 [23:49:36]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:49:36]wFMCommunicate OK [23:49:36]wFMCommunicate request_size=4 [23:49:36]MH_SAM_APDU [23:49:36]CAPDU: 80 17 00 00 [23:49:36]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:49:36]Write i2c OK [23:49:36]MH_I2C_Read... [23:49:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:36]Read from MH i2c: E2 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 FD 00 [23:49:36]MH_I2C_Read... [23:49:36]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 A2 [23:49:37]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:49:37]wFMCommunicate OK [23:49:37]wFMCommunicate request_size=4 [23:49:37]MH_SAM_APDU [23:49:37]CAPDU: 80 17 00 00 [23:49:37]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:49:37]Write i2c OK [23:49:37]MH_I2C_Read... [23:49:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:37]Read from MH i2c: E2 [23:49:37]MH_I2C_Read... [23:49:37]Read from MH i2c: E2 FD 00 [23:49:37]MH_I2C_Read... [23:49:37]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 C2 [23:49:37]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:49:37]wFMCommunicate OK [23:49:37]wFMCommunicate request_size=4 [23:49:37]MH_SAM_APDU [23:49:37]CAPDU: 80 17 00 00 [23:49:37]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:49:37]Write i2c OK [23:49:37]MH_I2C_Read... [23:49:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:49:37]Read from MH i2c: E2 [23:49:37]MH_I2C_Read... [23:49:37]Read from MH i2c: E2 FD 00 [23:49:37]MH_I2C_Read... [23:49:37]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 13 [23:49:37]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:49:37]wFMCommunicate OK [23:49:37]wFMCommunicate request_size=4 [23:49:37]MH_SAM_APDU [23:49:37]CAPDU: 80 17 00 00 [23:49:37]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:49:37]Write i2c OK [23:49:37]MH_I2C_Read... [23:49:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:49:37]Read from MH i2c: E2 [23:49:37]MH_I2C_Read... [23:49:37]Read from MH i2c: E2 D6 00 [23:49:37]MH_I2C_Read... [23:49:37]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [23:49:37]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:49:37]wFMCommunicate OK [23:49:37]SAM_PROTO_GetShiftData done [23:49:37]requested_item shift.sale.total_cash is exist - process it [23:49:37]requested_item shift.sale_refund.total is exist - process it [23:49:37]requested_item shift.sale_refund.total_cash is exist - process it [23:49:37]requested_item shift.buy.total is exist - process it [23:49:37]requested_item shift.buy.total_cash is exist - process it [23:49:37]produce_requested_data done [23:49:37]produce_requested_data return {"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:49:37]process_action_free get_value [23:49:37]json_value_free [23:49:37]json_value_free done [23:49:37]process_json_proto returns [23:49:37]Send response to host [23:49:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:49:37]free response buf [23:49:37]execute_script done [23:49:37]execute_script returns [23:49:37]free content buf [23:49:37]Sock 6.Close socket [23:49:37]Sock 6.Thread stoped [23:49:38]OFD Sender: No OFD packet to send [23:49:42]recv_with_timeout no data received [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:04]recv_with_timeout no data received [23:50:07]accept exits with 9 [23:50:07]New connection [23:50:07]New thread 3066617188 created [23:50:07]Thread 3066473828 joined [23:50:07]Waiting for new connection... [23:50:07] Sock 9.Parse request [23:50:07]Sock 9.Check first char [23:50:07]Sock 9.First char is OK [23:50:07]request: POST /json_proto HTTP/1.0 [23:50:07]Method: POST [23:50:07]URL: /json_proto [23:50:07]Method is POST - this is cgi request [23:50:07]url: /json_proto [23:50:07]query_string will be loaded in cgi processing [23:50:07]execute_cgi json_proto POST (null) [23:50:07]execute_cgi path=json_proto method=POST [23:50:07]POST find Content-Length [23:50:07]Host: 172.17.43.195:8080 [23:50:07]Content-Length: 215 [23:50:07]Content-Type: application/json [23:50:07] [23:50:07]POST finish read [23:50:07]Found Content-Length = 215 [23:50:07]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:50:07]execute_script... [23:50:07]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:50:07]POST & json_proto [23:50:07]process_json_proto [23:50:07]json parsed OK: [23:50:07]protocol is kg_v1.0 [23:50:07]action value=get_value [23:50:07]process_action get_value [23:50:07]cmd_get_value [23:50:07]process_action get_value done [23:50:07]requested_data is exist [23:50:07]produce_requested_data [23:50:07]requested_item kkm.sn is exist - process it [23:50:07]requested_item kkm.ver is exist - process it [23:50:07]requested_item fm.sn is exist - process it [23:50:07]wFMCommunicate request_size=4 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 11 00 00 [23:50:07]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 17 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EB [23:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:50:07]wFMCommunicate OK [23:50:07]requested_item fd.num is exist - process it [23:50:07]SAM_PROTO_GetFieldsCounters [23:50:07]wFMCommunicate request_size=4 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 13 00 00 [23:50:07]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 62 00 [23:50:08]MH_I2C_Read... [23:50:08]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [23:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:08]wFMCommunicate OK [23:50:08]SAM_PROTO_GetFieldsCounters done [23:50:08]requested_item shift.num is exist - process it [23:50:08]requested_item shift.opened is exist - process it [23:50:08]req_shift_opened [23:50:08]FM_GetShiftState [23:50:08]SAM_PROTO_GetShiftState [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 13 01 00 [23:50:08]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 0E 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 6E [23:50:08]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:50:08]wFMCommunicate OK [23:50:08]SAM_PROTO_GetShiftState done [23:50:08]FM_GetShiftState done [23:50:08]req_shift_opened done [23:50:08]requested_item shift.open_date is exist - process it [23:50:08]req_shift_open_date [23:50:08]req_shift_open_date done [23:50:08]produce_requested_data done [23:50:08]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72923,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [23:50:08]process_action_free get_value [23:50:08]json_value_free [23:50:08]json_value_free done [23:50:08]process_json_proto returns [23:50:08]Send response to host [23:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72923,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [23:50:08]free response buf [23:50:08]execute_script done [23:50:08]execute_script returns [23:50:08]free content buf [23:50:08]Sock 9.Close socket [23:50:08]Sock 9.Thread stoped [23:50:08]accept exits with 7 [23:50:08]New connection [23:50:08]New thread 3066473828 created [23:50:08]Thread 3066617188 joined [23:50:08]Waiting for new connection... [23:50:08] Sock 7.Parse request [23:50:08]Sock 7.Check first char [23:50:08]Sock 7.First char is OK [23:50:08]request: POST /json_proto HTTP/1.0 [23:50:08]Method: POST [23:50:08]URL: /json_proto [23:50:08]Method is POST - this is cgi request [23:50:08]url: /json_proto [23:50:08]query_string will be loaded in cgi processing [23:50:08]execute_cgi json_proto POST (null) [23:50:08]execute_cgi path=json_proto method=POST [23:50:08]POST find Content-Length [23:50:08]Host: 172.17.43.195:8080 [23:50:08]Content-Length: 331 [23:50:08]Content-Type: application/json [23:50:08] [23:50:08]POST finish read [23:50:08]Found Content-Length = 331 [23:50:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:08]execute_script... [23:50:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:08]POST & json_proto [23:50:08]process_json_proto [23:50:08]json parsed OK: [23:50:08]protocol is kg_v1.0 [23:50:08]action value=get_value [23:50:08]process_action get_value [23:50:08]cmd_get_value [23:50:08]process_action get_value done [23:50:08]requested_data is exist [23:50:08]produce_requested_data [23:50:08]requested_item fm.sale.total is exist - process it [23:50:08]SAM_PROTO_GetFMData [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 13 03 00 [23:50:08]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 FD 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 FD 00 20 00 00 C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 6C [23:50:08]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [23:50:08]wFMCommunicate OK [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 17 00 00 [23:50:08]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]OFD Sender: No OFD packet to send [23:50:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:08]Read from MH i2c: E2 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 FD 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: E2 FD 00 21 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [23:50:08]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:08]wFMCommunicate OK [23:50:08]wFMCommunicate request_size=4 [23:50:08]MH_SAM_APDU [23:50:08]CAPDU: 80 17 00 00 [23:50:08]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:09]Read from MH i2c: E2 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 FD 00 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 FD 00 22 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B7 [23:50:09]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:09]wFMCommunicate OK [23:50:09]wFMCommunicate request_size=4 [23:50:09]MH_SAM_APDU [23:50:09]CAPDU: 80 17 00 00 [23:50:09]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [23:50:09]Write i2c OK [23:50:09]MH_I2C_Read... [23:50:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:09]Read from MH i2c: E2 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 FD 00 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 FD 00 23 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1B [23:50:09]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:09]wFMCommunicate OK [23:50:09]wFMCommunicate request_size=4 [23:50:09]MH_SAM_APDU [23:50:09]CAPDU: 80 17 00 00 [23:50:09]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [23:50:09]Write i2c OK [23:50:09]MH_I2C_Read... [23:50:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:50:09]Read from MH i2c: E2 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 E1 00 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 E1 00 24 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:50:09]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50:09]wFMCommunicate OK [23:50:09]SAM_PROTO_GetFMData done [23:50:09]requested_item fm.sale_refund.total is exist - process it [23:50:09]requested_item fm.buy.total is exist - process it [23:50:09]requested_item shift.sale.total is exist - process it [23:50:09]SAM_PROTO_GetShiftData [23:50:09]wFMCommunicate request_size=4 [23:50:09]MH_SAM_APDU [23:50:09]CAPDU: 80 13 02 00 [23:50:09]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [23:50:09]Write i2c OK [23:50:09]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 FD 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 FD 00 25 00 00 B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 F6 [23:50:10]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:50:10]wFMCommunicate OK [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 17 00 00 [23:50:10]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 FD 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 FD 00 26 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 AF [23:50:10]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:50:10]wFMCommunicate OK [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 17 00 00 [23:50:10]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 FD 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 FD 00 27 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 CF [23:50:10]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:50:11]wFMCommunicate OK [23:50:11]wFMCommunicate request_size=4 [23:50:11]MH_SAM_APDU [23:50:11]CAPDU: 80 17 00 00 [23:50:11]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [23:50:11]Write i2c OK [23:50:11]MH_I2C_Read... [23:50:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:11]Read from MH i2c: E2 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 FD 00 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 FD 00 28 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 20 [23:50:11]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:50:11]wFMCommunicate OK [23:50:11]wFMCommunicate request_size=4 [23:50:11]MH_SAM_APDU [23:50:11]CAPDU: 80 17 00 00 [23:50:11]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [23:50:11]Write i2c OK [23:50:11]MH_I2C_Read... [23:50:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:50:11]Read from MH i2c: E2 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 D6 00 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 D6 00 29 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [23:50:11]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:11]wFMCommunicate OK [23:50:11]SAM_PROTO_GetShiftData done [23:50:11]requested_item shift.sale.total_cash is exist - process it [23:50:11]requested_item shift.sale_refund.total is exist - process it [23:50:11]requested_item shift.sale_refund.total_cash is exist - process it [23:50:11]requested_item shift.buy.total is exist - process it [23:50:11]requested_item shift.buy.total_cash is exist - process it [23:50:11]produce_requested_data done [23:50:11]produce_requested_data return {"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:11]process_action_free get_value [23:50:11]json_value_free [23:50:11]json_value_free done [23:50:11]process_json_proto returns [23:50:11]Send response to host [23:50:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:11]free response buf [23:50:11]execute_script done [23:50:11]execute_script returns [23:50:11]free content buf [23:50:11]Sock 7.Close socket [23:50:11]Sock 7.Thread stoped [23:50:11]accept exits with 9 [23:50:11]New connection [23:50:11]New thread 3066617188 created [23:50:11]Thread 3066473828 joined [23:50:11]Waiting for new connection... [23:50:11] Sock 9.Parse request [23:50:11]Sock 9.Check first char [23:50:11]Sock 9.First char is OK [23:50:11]request: POST /json_proto HTTP/1.0 [23:50:11]Method: POST [23:50:11]URL: /json_proto [23:50:11]Method is POST - this is cgi request [23:50:11]url: /json_proto [23:50:11]query_string will be loaded in cgi processing [23:50:11]execute_cgi json_proto POST (null) [23:50:11]execute_cgi path=json_proto method=POST [23:50:11]POST find Content-Length [23:50:11]Host: 172.17.43.195:8080 [23:50:11]Content-Length: 331 [23:50:11]Content-Type: application/json [23:50:11] [23:50:11]POST finish read [23:50:11]Found Content-Length = 331 [23:50:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:11]execute_script... [23:50:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:11]POST & json_proto [23:50:11]process_json_proto [23:50:11]json parsed OK: [23:50:11]protocol is kg_v1.0 [23:50:11]action value=get_value [23:50:11]process_action get_value [23:50:11]cmd_get_value [23:50:11]process_action get_value done [23:50:11]requested_data is exist [23:50:11]produce_requested_data [23:50:11]requested_item fm.sale.total is exist - process it [23:50:11]SAM_PROTO_GetFMData [23:50:11]wFMCommunicate request_size=4 [23:50:11]MH_SAM_APDU [23:50:11]CAPDU: 80 13 03 00 [23:50:11]Write to MH i2c: E2 08 00 2A 00 80 13 03 00 00 00 00 00 A9 [23:50:11]Write i2c OK [23:50:11]MH_I2C_Read... [23:50:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:12]Read from MH i2c: E2 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: E2 FD 00 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: E2 FD 00 2A 00 00 C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 76 [23:50:12]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [23:50:12]wFMCommunicate OK [23:50:12]wFMCommunicate request_size=4 [23:50:12]MH_SAM_APDU [23:50:12]CAPDU: 80 17 00 00 [23:50:12]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [23:50:12]Write i2c OK [23:50:12]MH_I2C_Read... [23:50:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:12]Read from MH i2c: E2 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: E2 FD 00 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: E2 FD 00 2B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2B [23:50:12]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:12]wFMCommunicate OK [23:50:12]wFMCommunicate request_size=4 [23:50:12]MH_SAM_APDU [23:50:12]CAPDU: 80 17 00 00 [23:50:12]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [23:50:12]Write i2c OK [23:50:12]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 FD 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 FD 00 2C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [23:50:13]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:13]wFMCommunicate OK [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 17 00 00 [23:50:13]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 FD 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 FD 00 2D 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [23:50:13]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:13]wFMCommunicate OK [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 17 00 00 [23:50:13]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 E1 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 E1 00 2E 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [23:50:13]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50:13]wFMCommunicate OK [23:50:13]SAM_PROTO_GetFMData done [23:50:13]requested_item fm.sale_refund.total is exist - process it [23:50:13]requested_item fm.buy.total is exist - process it [23:50:13]requested_item shift.sale.total is exist - process it [23:50:13]SAM_PROTO_GetShiftData [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 13 02 00 [23:50:13]Write to MH i2c: E2 08 00 2F 00 80 13 02 00 00 00 00 00 AD [23:50:14]OFD Sender: No OFD packet to send [23:50:14]Write i2c OK [23:50:14]MH_I2C_Read... [23:50:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 FD 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 FD 00 2F 00 00 B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 00 [23:50:14]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:50:14]wFMCommunicate OK [23:50:14]wFMCommunicate request_size=4 [23:50:14]MH_SAM_APDU [23:50:14]CAPDU: 80 17 00 00 [23:50:14]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [23:50:14]Write i2c OK [23:50:14]MH_I2C_Read... [23:50:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 FD 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 FD 00 30 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 B9 [23:50:14]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:50:15]wFMCommunicate OK [23:50:15]wFMCommunicate request_size=4 [23:50:15]MH_SAM_APDU [23:50:15]CAPDU: 80 17 00 00 [23:50:15]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [23:50:15]Write i2c OK [23:50:15]MH_I2C_Read... [23:50:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:15]Read from MH i2c: E2 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: E2 FD 00 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: E2 FD 00 31 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 D9 [23:50:15]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:50:15]wFMCommunicate OK [23:50:15]wFMCommunicate request_size=4 [23:50:15]MH_SAM_APDU [23:50:15]CAPDU: 80 17 00 00 [23:50:15]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [23:50:15]Write i2c OK [23:50:15]MH_I2C_Read... [23:50:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:15]Read from MH i2c: E2 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: E2 FD 00 [23:50:15]MH_I2C_Read... [23:50:15]Read from MH i2c: E2 FD 00 32 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 2A [23:50:15]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:50:15]wFMCommunicate OK [23:50:15]wFMCommunicate request_size=4 [23:50:15]MH_SAM_APDU [23:50:15]CAPDU: 80 17 00 00 [23:50:15]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [23:50:15]Write i2c OK [23:50:15]MH_I2C_Read... [23:50:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:50:16]Read from MH i2c: E2 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 D6 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 D6 00 33 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 95 [23:50:16]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:16]wFMCommunicate OK [23:50:16]SAM_PROTO_GetShiftData done [23:50:16]requested_item shift.sale.total_cash is exist - process it [23:50:16]requested_item shift.sale_refund.total is exist - process it [23:50:16]requested_item shift.sale_refund.total_cash is exist - process it [23:50:16]requested_item shift.buy.total is exist - process it [23:50:16]requested_item shift.buy.total_cash is exist - process it [23:50:16]produce_requested_data done [23:50:16]produce_requested_data return {"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:16]process_action_free get_value [23:50:16]json_value_free [23:50:16]json_value_free done [23:50:16]process_json_proto returns [23:50:16]Send response to host [23:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:16]free response buf [23:50:16]execute_script done [23:50:16]execute_script returns [23:50:16]free content buf [23:50:16]Sock 9.Close socket [23:50:16]Sock 9.Thread stoped [23:50:16]accept exits with 7 [23:50:16]New connection [23:50:16]New thread 3066473828 created [23:50:16]Thread 3066617188 joined [23:50:16]Waiting for new connection... [23:50:16] Sock 7.Parse request [23:50:16]Sock 7.Check first char [23:50:16]Sock 7.First char is OK [23:50:16]request: POST /json_proto HTTP/1.0 [23:50:16]Method: POST [23:50:16]URL: /json_proto [23:50:16]Method is POST - this is cgi request [23:50:16]url: /json_proto [23:50:16]query_string will be loaded in cgi processing [23:50:16]execute_cgi json_proto POST (null) [23:50:16]execute_cgi path=json_proto method=POST [23:50:16]POST find Content-Length [23:50:16]Host: 172.17.43.195:8080 [23:50:16]Content-Length: 281 [23:50:16]Content-Type: application/json [23:50:16] [23:50:16]POST finish read [23:50:16]Found Content-Length = 281 [23:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0443\u0440\u0433\u0443\u043D\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:16]execute_script... [23:50:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0443\u0440\u0433\u0443\u043D\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:16]POST & json_proto [23:50:16]process_json_proto [23:50:16]json parsed OK: [23:50:16]protocol is kg_v1.0 [23:50:16]action value=x_report [23:50:16]process_action x_report [23:50:16]cmd_x_report [23:50:16]MH_GetDate [23:50:16]Write to MH i2c: F0 00 00 34 00 23 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: F0 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: F0 09 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: F0 09 00 34 00 00 39 C6 22 67 74 2C AD 66 67 [23:50:16]GetLastDocTimeStamp 1730332027 [23:50:16]current date 1730332217 [23:50:16]FM_GetShiftState [23:50:16]SAM_PROTO_GetShiftState [23:50:16]wFMCommunicate request_size=4 [23:50:16]MH_SAM_APDU [23:50:16]CAPDU: 80 13 01 00 [23:50:16]Write to MH i2c: E2 08 00 35 00 80 13 01 00 00 00 00 00 B2 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:16]Read from MH i2c: E2 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 0E 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 0E 00 35 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 84 [23:50:16]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:50:16]wFMCommunicate OK [23:50:16]SAM_PROTO_GetShiftState done [23:50:16]FM_GetShiftState done [23:50:16]KKMCreateXReportDocument [23:50:16]Load OK [23:50:16]Malloc new data [23:50:16]MH_GetDate [23:50:16]Write to MH i2c: F0 00 00 36 00 25 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: F0 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: F0 09 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: F0 09 00 36 00 00 39 C6 22 67 74 2C AD 66 69 [23:50:16]Malloc new data [23:50:16]Malloc new data [23:50:16]wFMCommunicate request_size=4 [23:50:16]MH_SAM_APDU [23:50:16]CAPDU: 80 11 00 00 [23:50:16]Write to MH i2c: E2 08 00 37 00 80 11 00 00 00 00 00 00 B1 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:16]Read from MH i2c: E2 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 17 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 17 00 37 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 05 [23:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:50:16]wFMCommunicate OK [23:50:16]SAM_PROTO_GetFieldsCounters [23:50:16]wFMCommunicate request_size=4 [23:50:16]MH_SAM_APDU [23:50:16]CAPDU: 80 13 00 00 [23:50:16]Write to MH i2c: E2 08 00 38 00 80 13 00 00 00 00 00 00 B4 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:16]Read from MH i2c: E2 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 62 00 [23:50:16]MH_I2C_Read... [23:50:16]Read from MH i2c: E2 62 00 38 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [23:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:16]wFMCommunicate OK [23:50:16]SAM_PROTO_GetFieldsCounters done [23:50:16]Malloc new data [23:50:16]Malloc new data [23:50:16]Malloc new data [23:50:16]KKMCreateXReportDocument OK [23:50:16]KKMSetXReportData OK [23:50:16]KKMPrepareXReportFMData [23:50:16]SAM_PROTO_GetShiftData [23:50:16]wFMCommunicate request_size=4 [23:50:16]MH_SAM_APDU [23:50:16]CAPDU: 80 13 02 00 [23:50:16]Write to MH i2c: E2 08 00 39 00 80 13 02 00 00 00 00 00 B7 [23:50:16]Write i2c OK [23:50:16]MH_I2C_Read... [23:50:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:17]Read from MH i2c: E2 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 FD 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 FD 00 39 00 00 B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0A [23:50:17]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:50:17]wFMCommunicate OK [23:50:17]wFMCommunicate request_size=4 [23:50:17]MH_SAM_APDU [23:50:17]CAPDU: 80 17 00 00 [23:50:17]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [23:50:17]Write i2c OK [23:50:17]MH_I2C_Read... [23:50:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:17]Read from MH i2c: E2 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 FD 00 [23:50:17]MH_I2C_Read... [23:50:17]Read from MH i2c: E2 FD 00 3A 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 C3 [23:50:17]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:50:18]wFMCommunicate OK [23:50:18]wFMCommunicate request_size=4 [23:50:18]MH_SAM_APDU [23:50:18]CAPDU: 80 17 00 00 [23:50:18]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [23:50:18]Write i2c OK [23:50:18]MH_I2C_Read... [23:50:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:18]Read from MH i2c: E2 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: E2 FD 00 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: E2 FD 00 3B 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 E3 [23:50:18]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:50:18]wFMCommunicate OK [23:50:18]wFMCommunicate request_size=4 [23:50:18]MH_SAM_APDU [23:50:18]CAPDU: 80 17 00 00 [23:50:18]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [23:50:18]Write i2c OK [23:50:18]MH_I2C_Read... [23:50:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:18]Read from MH i2c: E2 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: E2 FD 00 [23:50:18]MH_I2C_Read... [23:50:18]Read from MH i2c: E2 FD 00 3C 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 34 [23:50:19]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 OFD Sender: No OFD packet to send [23:50:19]00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:50:19]wFMCommunicate OK [23:50:19]wFMCommunicate request_size=4 [23:50:19]MH_SAM_APDU [23:50:19]CAPDU: 80 17 00 00 [23:50:19]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [23:50:19]Write i2c OK [23:50:19]MH_I2C_Read... [23:50:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:50:19]Read from MH i2c: E2 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 D6 00 [23:50:19]MH_I2C_Read... [23:50:19]Read from MH i2c: E2 D6 00 3D 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9F [23:50:19]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:19]wFMCommunicate OK [23:50:19]SAM_PROTO_GetShiftData done [23:50:19]1194 (1205) - счетчики итогов смены [23:50:19] 1134 (4) - 160 - количество чеков со всеми признаками расчетов [23:50:19] 1129 (156) - счетчики операций «приход» [23:50:19] 1135 (4) - 159 - количество чеков по признаку расчетов [23:50:19] 1201 (3) - 102331.30 - общая итоговая сумма в чеках [23:50:19] 1136 (3) - 61065.00 - итоговая сумма в чеках наличными [23:50:19] 1138 (3) - 41266.30 - итоговая сумма в чеках безналичными [23:50:19] 1024 (123) - суммы налогов [23:50:19] 1006 (9) - суммы НДС [23:50:19] 1010 (1) - 0% - код ставки НДС [23:50:19] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:19] 1006 (12) - суммы НДС [23:50:19] 1010 (1) - 12% - код ставки НДС [23:50:19] 1011 (3) - 10868.99 - сумма НДС по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 0% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (12) - суммы НСП [23:50:19] 1014 (1) - 1% - код ставки НСП [23:50:19] 1015 (3) - 905.75 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 2% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 3% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 5% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 0,50% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 1,50% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1130 (151) - счетчики операций «возврат прихода» [23:50:19] 1135 (4) - 1 - количество чеков по признаку расчетов [23:50:19] 1201 (3) - 1524.00 - общая итоговая сумма в чеках [23:50:19] 1136 (3) - 1524.00 - итоговая сумма в чеках наличными [23:50:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:19] 1024 (121) - суммы налогов [23:50:19] 1006 (9) - суммы НДС [23:50:19] 1010 (1) - 0% - код ставки НДС [23:50:19] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:19] 1006 (11) - суммы НДС [23:50:19] 1010 (1) - 12% - код ставки НДС [23:50:19] 1011 (2) - 161.84 - сумма НДС по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 0% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (11) - суммы НСП [23:50:19] 1014 (1) - 1% - код ставки НСП [23:50:19] 1015 (2) - 13.49 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 2% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 3% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 5% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 0,50% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 1,50% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1131 (141) - счетчики операций «расход» [23:50:19] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:19] 1024 (117) - суммы налогов [23:50:19] 1006 (9) - суммы НДС [23:50:19] 1010 (1) - 0% - код ставки НДС [23:50:19] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:19] 1006 (9) - суммы НДС [23:50:19] 1010 (1) - 12% - код ставки НДС [23:50:19] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 0% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 1% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 2% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 3% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 5% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 0,50% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1007 (9) - суммы НСП [23:50:19] 1014 (1) - 1,50% - код ставки НСП [23:50:19] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:19] 1132 (141) - счетчики операций «возврат расхода» [23:50:19] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:19] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:19] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:19] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:19] 1024 (117) - суммы налогов [23:50:19] 1006 (9) - суммы НДС [23:50:20] 1010 (1) - 0% - код ставки НДС [23:50:20] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:20] 1006 (9) - суммы НДС [23:50:20] 1010 (1) - 12% - код ставки НДС [23:50:20] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:20] 1007 (9) - суммы НСП [23:50:20] 1014 (1) - 0% - код ставки НСП [23:50:20] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:20] 1007 (9) - суммы НСП [23:50:20] 1014 (1) - 1% - код ставки НСП [23:50:20] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:20] 1007 (9) - суммы НСП [23:50:20] 1014 (1) - 2% - код ставки НСП [23:50:20] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:20] 1007 (9) - суммы НСП [23:50:20] 1014 (1) - 3% - код ставки НСП [23:50:20] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:20] 1007 (9) - суммы НСП [23:50:20] 1014 (1) - 5% - код ставки НСП [23:50:20] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:20] 1007 (9) - суммы НСП [23:50:20] 1014 (1) - 0,50% - код ставки НСП [23:50:20] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:20] 1007 (9) - суммы НСП [23:50:20] 1014 (1) - 1,50% - код ставки НСП [23:50:20] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:20] 1133 (588) - - счетчики коррекции - не используются [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1194 (04AA) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1134 (046E) [23:50:20]Malloc new data [23:50:20]Processing tag 1129 (0469) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1135 (046F) [23:50:20]Malloc new data [23:50:20]Processing tag 1201 (04B1) [23:50:20]Malloc new data [23:50:20]Processing tag 1136 (0470) [23:50:20]Malloc new data [23:50:20]Processing tag 1138 (0472) [23:50:20]Malloc new data [23:50:20]Processing tag 1024 (0400) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1006 (03EE) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1010 (03F2) [23:50:20]Malloc new data [23:50:20]Processing tag 1011 (03F3) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1006 (03EE) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1010 (03F2) [23:50:20]Malloc new data [23:50:20]Processing tag 1011 (03F3) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]SetTLVBufToDocument err=0 [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1130 (046A) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1135 (046F) [23:50:20]Malloc new data [23:50:20]Processing tag 1201 (04B1) [23:50:20]Malloc new data [23:50:20]Processing tag 1136 (0470) [23:50:20]Malloc new data [23:50:20]Processing tag 1138 (0472) [23:50:20]Malloc new data [23:50:20]Processing tag 1024 (0400) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1006 (03EE) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1010 (03F2) [23:50:20]Malloc new data [23:50:20]Processing tag 1011 (03F3) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1006 (03EE) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1010 (03F2) [23:50:20]Malloc new data [23:50:20]Processing tag 1011 (03F3) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]SetTLVBufToDocument err=0 [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1131 (046B) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1135 (046F) [23:50:20]Malloc new data [23:50:20]Processing tag 1201 (04B1) [23:50:20]Malloc new data [23:50:20]Processing tag 1136 (0470) [23:50:20]Malloc new data [23:50:20]Processing tag 1138 (0472) [23:50:20]Malloc new data [23:50:20]Processing tag 1024 (0400) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1006 (03EE) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1010 (03F2) [23:50:20]Malloc new data [23:50:20]Processing tag 1011 (03F3) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1006 (03EE) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1010 (03F2) [23:50:20]Malloc new data [23:50:20]Processing tag 1011 (03F3) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]SetTLVBufToDocument err=0 [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1132 (046C) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1135 (046F) [23:50:20]Malloc new data [23:50:20]Processing tag 1201 (04B1) [23:50:20]Malloc new data [23:50:20]Processing tag 1136 (0470) [23:50:20]Malloc new data [23:50:20]Processing tag 1138 (0472) [23:50:20]Malloc new data [23:50:20]Processing tag 1024 (0400) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1006 (03EE) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1010 (03F2) [23:50:20]Malloc new data [23:50:20]Processing tag 1011 (03F3) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1006 (03EE) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1010 (03F2) [23:50:20]Malloc new data [23:50:20]Processing tag 1011 (03F3) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1007 (03EF) [23:50:20]Load OK [23:50:20]SetTLVBufToDocument [23:50:20]Processing tag 1014 (03F6) [23:50:20]Malloc new data [23:50:20]Processing tag 1015 (03F7) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]SetTLVBufToDocument err=0 [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Processing tag 1133 (046D) [23:50:20]Malloc new data [23:50:20]SetTLVBufToDocument err=0 [23:50:20]SetTLVBufToDocument err=0 [23:50:20]Malloc new data [23:50:20]SAM_PROTO_GetFMData [23:50:20]wFMCommunicate request_size=4 [23:50:20]MH_SAM_APDU [23:50:20]CAPDU: 80 13 03 00 [23:50:20]Write to MH i2c: E2 08 00 3E 00 80 13 03 00 00 00 00 00 BD [23:50:20]Write i2c OK [23:50:20]MH_I2C_Read... [23:50:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:21]Read from MH i2c: E2 [23:50:21]MH_I2C_Read... [23:50:21]Read from MH i2c: E2 FD 00 [23:50:21]MH_I2C_Read... [23:50:21]Read from MH i2c: E2 FD 00 3E 00 00 C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 8A [23:50:21]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [23:50:21]wFMCommunicate OK [23:50:21]wFMCommunicate request_size=4 [23:50:21]MH_SAM_APDU [23:50:21]CAPDU: 80 17 00 00 [23:50:21]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [23:50:21]Write i2c OK [23:50:21]MH_I2C_Read... [23:50:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:21]Read from MH i2c: E2 [23:50:21]MH_I2C_Read... [23:50:21]Read from MH i2c: E2 FD 00 [23:50:21]MH_I2C_Read... [23:50:21]Read from MH i2c: E2 FD 00 3F 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [23:50:22]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:22]wFMCommunicate OK [23:50:22]wFMCommunicate request_size=4 [23:50:22]MH_SAM_APDU [23:50:22]CAPDU: 80 17 00 00 [23:50:22]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [23:50:22]Write i2c OK [23:50:22]MH_I2C_Read... [23:50:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:22]Read from MH i2c: E2 [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: E2 FD 00 [23:50:22]MH_I2C_Read... [23:50:22]Read from MH i2c: E2 FD 00 40 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [23:50:22]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:22]wFMCommunicate OK [23:50:22]wFMCommunicate request_size=4 [23:50:22]MH_SAM_APDU [23:50:22]CAPDU: 80 17 00 00 [23:50:22]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [23:50:22]Write i2c OK [23:50:22]MH_I2C_Read... [23:50:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:23]Read from MH i2c: E2 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 FD 00 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 FD 00 41 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 39 [23:50:23]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:23]wFMCommunicate OK [23:50:23]wFMCommunicate request_size=4 [23:50:23]MH_SAM_APDU [23:50:23]CAPDU: 80 17 00 00 [23:50:23]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [23:50:23]Write i2c OK [23:50:23]MH_I2C_Read... [23:50:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:50:23]Read from MH i2c: E2 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 E1 00 [23:50:23]MH_I2C_Read... [23:50:23]Read from MH i2c: E2 E1 00 42 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B0 [23:50:23]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50:24]wFMCommunicate OK [23:50:24]SAM_PROTO_GetFMData done [23:50:24]FM_GetFMData:85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 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 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 OFD Sender: No OFD packet to send [23:50:24]00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:50:24]oper:6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:50:25]total:B9 6C 16 A4 01 [23:50:25]Malloc new data [23:50:25]oper:6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 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 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:50:25]total:BC 6D FE 04 [23:50:25]Malloc new data [23:50:25]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:50:25]total: [23:50:25]Malloc new data [23:50:25]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:50:25]total: [23:50:25]Malloc new data [23:50:25]KKMPrepareXReportFMData err=0 [23:50:25]Х отчет ИНН: 02508201610067 Кассир: Тургунбекова А. 30.10.2024 23:50 Смена: 522 РНМ: 0000000000091644 ЗНМ: 0300000087 СНО: Общий режим Всего чеков: 160 ИТОГИ ПРИХОД Чеков: 159 Общий итог: 102331.30 Итого наличными: 61065.00 Итого безнал.: 41266.30 НДС 0% : 0.00 НДС 12% : 10868.99 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 905.75 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 1524.00 Итого наличными: 1524.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 161.84 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 13.49 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 59541.00 НС Приход: 70479003.45 НС Возвр.Прихода: 837831.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874662 [23:50:25]StoreToDocumentArchive [23:50:25]MH_GetDate [23:50:25]Write to MH i2c: F0 00 00 43 00 32 [23:50:25]Write i2c OK [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: F0 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: F0 09 00 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: F0 09 00 43 00 00 42 C6 22 67 74 2C AD 66 7F [23:50:25]shift 522 fd 1730332226 [23:50:25]Create dir for shift 0522 [23:50:25]save to /storage/0522/doc_1730332226 [23:50:25]save last doc name /storage/0522/doc_1730332226 to /storage/kkm_last_doc_name [23:50:25]save OK [23:50:25]Clear old archive folders... [23:50:25]NVStorageSaveData kkm_last_timestamp [23:50:25]File name is /storage/kkm_last_timestamp [23:50:25]Write 4 bytes [23:50:25]NVStorageSaveData done [23:50:25]ExternCall_PrintAddStr [23:50:25]wPrintStart [23:50:25]Write to MH i2c: 01 00 00 44 00 44 [23:50:25]Write i2c OK [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: 01 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: 01 07 00 [23:50:25]MH_I2C_Read... [23:50:25]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FF 0F 59 [23:50:25]RasterBufferAndPrint [23:50:25]line Х отчет [23:50:25]line ИНН: 02508201610067 [23:50:25]line Кассир: Тургунбекова А. [23:50:25]line 30.10.2024 23:50 [23:50:25]line Смена: 522 [23:50:25]line РНМ: 0000000000091644 [23:50:25]line ЗНМ: 0300000087 [23:50:25]line СНО: Общий режим [23:50:25]line Всего чеков: 160 [23:50:25]line ИТОГИ ПРИХОД [23:50:25]line Чеков: 159 [23:50:25]line Общий итог: 102331.30 [23:50:25]line Итого наличными: 61065.00 [23:50:25]line Итого безнал.: 41266.30 [23:50:25]line НДС 0% : 0.00 [23:50:25]line НДС 12% : 10868.99 [23:50:25]line НСП 0% : 0.00 [23:50:25]line НСП 1,50% : 0.00 [23:50:25]line НСП 0,50% : 0.00 [23:50:25]line НСП 5% : 0.00 [23:50:25]line НСП 3% : 0.00 [23:50:25]line НСП 2% : 0.00 [23:50:25]line НСП 1% : 905.75 [23:50:25]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:50:25]line Чеков: 1 [23:50:25]line Общий итог: 1524.00 [23:50:25]line Итого наличными: 1524.00 [23:50:25]line Итого безнал.: 0.00 [23:50:25]line НДС 0% : 0.00 [23:50:25]line НДС 12% : 161.84 [23:50:25]line НСП 0% : 0.00 [23:50:25]line НСП 1,50% : 0.00 [23:50:25]line НСП 0,50% : 0.00 [23:50:25]line НСП 5% : 0.00 [23:50:25]line НСП 3% : 0.00 [23:50:25]line НСП 2% : 0.00 [23:50:25]line НСП 1% : 13.49 [23:50:25]line ИТОГИ РАСХОД [23:50:25]line Чеков: 0 [23:50:25]line Общий итог: 0.00 [23:50:25]line Итого наличными: 0.00 [23:50:25]line Итого безнал.: 0.00 [23:50:25]line НДС 0% : 0.00 [23:50:25]line НДС 12% : 0.00 [23:50:25]line НСП 0% : 0.00 [23:50:25]line НСП 1,50% : 0.00 [23:50:25]line НСП 0,50% : 0.00 [23:50:25]line НСП 5% : 0.00 [23:50:25]line НСП 3% : 0.00 [23:50:25]line НСП 2% : 0.00 [23:50:25]line НСП 1% : 0.00 [23:50:25]line ИТОГИ ВОЗВРАТ РАСХОДА [23:50:25]line Чеков: 0 [23:50:25]line Общий итог: 0.00 [23:50:25]line Итого наличными: 0.00 [23:50:25]line Итого безнал.: 0.00 [23:50:25]line НДС 0% : 0.00 [23:50:25]line НДС 12% : 0.00 [23:50:25]line НСП 0% : 0.00 [23:50:25]line НСП 1,50% : 0.00 [23:50:25]line НСП 0,50% : 0.00 [23:50:25]line НСП 5% : 0.00 [23:50:25]line НСП 3% : 0.00 [23:50:25]line НСП 2% : 0.00 [23:50:25]line НСП 1% : 0.00 [23:50:25]line Сумма внесений: 0.00 [23:50:25]line Сумма выплат: 0.00 [23:50:25]line Нал. в кассе: 59541.00 [23:50:25]line НС Приход: 70479003.45 [23:50:25]line НС Возвр.Прихода: 837831.00 [23:50:25]line НС Расход: 0.00 [23:50:25]line НС Возвр.Расхода: 0.00 [23:50:25]line ФМ: 0000000000874662 [23:50:25]written 0, free lines is 4095 [23:50:25]recv_with_timeout no data received [23:50:26]Write to MH i2c: 01 00 00 8F 00 8F [23:50:26]Write i2c OK [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: 01 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: 01 07 00 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 B0 0A 50 [23:50:26]RasterBufferAndPrint [23:50:26]line [23:50:26]line [23:50:26]line [23:50:26]line [23:50:26]line [23:50:26]written 0, free lines is 2780 [23:50:26]MH_Cut [23:50:26]Write to MH i2c: D1 01 00 96 00 01 68 [23:50:26]Write i2c OK [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: D1 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: D1 01 00 [23:50:26]MH_I2C_Read... [23:50:26]Read from MH i2c: D1 01 00 96 00 00 67 [23:50:26]Write to MH i2c: 01 00 00 97 00 97 [23:50:26]Write i2c OK [23:50:26]MH_I2C_Read... [23:50:27]*** Cut start [23:50:27]*** Partial cut [23:50:27]*** CUTSNS_PIN = 1 [23:50:27]*** CUTSNS_PIN = 0 [23:50:27]*** Brake cut motor [23:50:28]Read from MH i2c: 01 [23:50:28]MH_I2C_Read... [23:50:28]*** Stop cut motor [23:50:28]*** Cut end [23:50:28]Read from MH i2c: 01 07 00 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [23:50:28]process_action x_report done [23:50:28]requested_data is exist [23:50:28]produce_requested_data [23:50:28]requested_item fd.num is exist - process it [23:50:28]SAM_PROTO_GetFieldsCounters [23:50:28]wFMCommunicate request_size=4 [23:50:28]MH_SAM_APDU [23:50:28]CAPDU: 80 13 00 00 [23:50:28]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [23:50:28]Write i2c OK [23:50:28]MH_I2C_Read... [23:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:28]Read from MH i2c: E2 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 62 00 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [23:50:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:28]wFMCommunicate OK [23:50:28]SAM_PROTO_GetFieldsCounters done [23:50:28]requested_item shift.num is exist - process it [23:50:28]requested_item shift.opened is exist - process it [23:50:28]req_shift_opened [23:50:28]FM_GetShiftState [23:50:28]SAM_PROTO_GetShiftState [23:50:28]wFMCommunicate request_size=4 [23:50:28]MH_SAM_APDU [23:50:28]CAPDU: 80 13 01 00 [23:50:28]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [23:50:28]Write i2c OK [23:50:28]MH_I2C_Read... [23:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:28]Read from MH i2c: E2 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 0E 00 [23:50:28]MH_I2C_Read... [23:50:28]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 E8 [23:50:28]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:50:28]wFMCommunicate OK [23:50:28]SAM_PROTO_GetShiftState done [23:50:28]FM_GetShiftState done [23:50:28]req_shift_opened done [23:50:28]requested_item shift.open_date is exist - process it [23:50:28]req_shift_open_date [23:50:28]req_shift_open_date done [23:50:28]produce_requested_data done [23:50:28]produce_requested_data return {"fd.num":72923,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [23:50:28]process_action_free x_report [23:50:28]json_value_free [23:50:28]json_value_free done [23:50:28]process_json_proto returns [23:50:28]Send response to host [23:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":72923,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [23:50:28]free response buf [23:50:28]execute_script done [23:50:28]execute_script returns [23:50:28]free content buf [23:50:28]Sock 7.Close socket [23:50:28]Sock 7.Thread stoped [23:50:29]OFD Sender: No OFD packet to send [23:50:31]accept exits with 9 [23:50:31]New connection [23:50:31]New thread 3066617188 created [23:50:31]Thread 3066473828 joined [23:50:31]Waiting for new connection... [23:50:31] Sock 9.Parse request [23:50:31]Sock 9.Check first char [23:50:31]Sock 9.First char is OK [23:50:31]request: POST /json_proto HTTP/1.0 [23:50:31]Method: POST [23:50:31]URL: /json_proto [23:50:31]Method is POST - this is cgi request [23:50:31]url: /json_proto [23:50:31]query_string will be loaded in cgi processing [23:50:31]execute_cgi json_proto POST (null) [23:50:31]execute_cgi path=json_proto method=POST [23:50:31]POST find Content-Length [23:50:31]Host: 172.17.43.195:8080 [23:50:31]Content-Length: 215 [23:50:31]Content-Type: application/json [23:50:31] [23:50:31]POST finish read [23:50:31]Found Content-Length = 215 [23:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:31]execute_script... [23:50:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:31]POST & json_proto [23:50:31]process_json_proto [23:50:31]json parsed OK: [23:50:31]protocol is kg_v1.0 [23:50:31]action value=get_value [23:50:31]process_action get_value [23:50:31]cmd_get_value [23:50:31]process_action get_value done [23:50:31]requested_data is exist [23:50:31]produce_requested_data [23:50:31]requested_item kkm.sn is exist - process it [23:50:31]requested_item kkm.ver is exist - process it [23:50:31]requested_item fm.sn is exist - process it [23:50:31]wFMCommunicate request_size=4 [23:50:31]MH_SAM_APDU [23:50:31]CAPDU: 80 11 00 00 [23:50:31]Write to MH i2c: E2 08 00 9A 00 80 11 00 00 00 00 00 00 14 [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 17 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 17 00 9A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 68 [23:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:50:31]wFMCommunicate OK [23:50:31]requested_item fd.num is exist - process it [23:50:31]SAM_PROTO_GetFieldsCounters [23:50:31]wFMCommunicate request_size=4 [23:50:31]MH_SAM_APDU [23:50:31]CAPDU: 80 13 00 00 [23:50:31]Write to MH i2c: E2 08 00 9B 00 80 13 00 00 00 00 00 00 17 [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 62 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 62 00 9B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [23:50:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DB 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:31]wFMCommunicate OK [23:50:31]SAM_PROTO_GetFieldsCounters done [23:50:31]requested_item shift.num is exist - process it [23:50:31]requested_item shift.opened is exist - process it [23:50:31]req_shift_opened [23:50:31]FM_GetShiftState [23:50:31]SAM_PROTO_GetShiftState [23:50:31]wFMCommunicate request_size=4 [23:50:31]MH_SAM_APDU [23:50:31]CAPDU: 80 13 01 00 [23:50:31]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [23:50:31]Write i2c OK [23:50:31]MH_I2C_Read... [23:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:31]Read from MH i2c: E2 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 0E 00 [23:50:31]MH_I2C_Read... [23:50:31]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 EB [23:50:31]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:50:31]wFMCommunicate OK [23:50:31]SAM_PROTO_GetShiftState done [23:50:31]FM_GetShiftState done [23:50:31]req_shift_opened done [23:50:31]requested_item shift.open_date is exist - process it [23:50:31]req_shift_open_date [23:50:31]req_shift_open_date done [23:50:31]produce_requested_data done [23:50:31]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72923,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109} [23:50:31]process_action_free get_value [23:50:31]json_value_free [23:50:31]json_value_free done [23:50:31]process_json_proto returns [23:50:31]Send response to host [23:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72923,"shift.num":556,"shift.opened":1,"shift.open_date":1730247109}}} [23:50:31]free response buf [23:50:31]execute_script done [23:50:31]execute_script returns [23:50:31]free content buf [23:50:31]Sock 9.Close socket [23:50:31]Sock 9.Thread stoped [23:50:31]accept exits with 10 [23:50:31]New connection [23:50:31]New thread 3066473828 created [23:50:31]Thread 3066617188 joined [23:50:31]Waiting for new connection... [23:50:32] Sock 10.Parse request [23:50:32]Sock 10.Check first char [23:50:32]Sock 10.First char is OK [23:50:32]request: POST /json_proto HTTP/1.0 [23:50:32]Method: POST [23:50:32]URL: /json_proto [23:50:32]Method is POST - this is cgi request [23:50:32]url: /json_proto [23:50:32]query_string will be loaded in cgi processing [23:50:32]execute_cgi json_proto POST (null) [23:50:32]execute_cgi path=json_proto method=POST [23:50:32]POST find Content-Length [23:50:32]Host: 172.17.43.195:8080 [23:50:32]Content-Length: 331 [23:50:32]Content-Type: application/json [23:50:32] [23:50:32]POST finish read [23:50:32]Found Content-Length = 331 [23:50:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:32]execute_script... [23:50:32]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:50:32]POST & json_proto [23:50:32]process_json_proto [23:50:32]json parsed OK: [23:50:32]protocol is kg_v1.0 [23:50:32]action value=get_value [23:50:32]process_action get_value [23:50:32]cmd_get_value [23:50:32]process_action get_value done [23:50:32]requested_data is exist [23:50:32]produce_requested_data [23:50:32]requested_item fm.sale.total is exist - process it [23:50:32]SAM_PROTO_GetFMData [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 13 03 00 [23:50:32]Write to MH i2c: E2 08 00 9D 00 80 13 03 00 00 00 00 00 1C [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:32]Read from MH i2c: E2 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 [23:50:32]MH_I2C_Read... [23:50:32]Read from MH i2c: E2 FD 00 9D 00 00 C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 E9 [23:50:32]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [23:50:32]wFMCommunicate OK [23:50:32]wFMCommunicate request_size=4 [23:50:32]MH_SAM_APDU [23:50:32]CAPDU: 80 17 00 00 [23:50:32]Write to MH i2c: E2 08 00 9E 00 80 17 00 00 00 00 00 00 1E [23:50:32]Write i2c OK [23:50:32]MH_I2C_Read... [23:50:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:33]Read from MH i2c: E2 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 FD 00 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 FD 00 9E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [23:50:33]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:33]wFMCommunicate OK [23:50:33]wFMCommunicate request_size=4 [23:50:33]MH_SAM_APDU [23:50:33]CAPDU: 80 17 00 00 [23:50:33]Write to MH i2c: E2 08 00 9F 00 80 17 00 00 00 00 00 00 1F [23:50:33]Write i2c OK [23:50:33]MH_I2C_Read... [23:50:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:33]Read from MH i2c: E2 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 FD 00 [23:50:33]MH_I2C_Read... [23:50:33]Read from MH i2c: E2 FD 00 9F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [23:50:34]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:34]wFMCommunicate OK [23:50:34]wFMCommunicate request_size=4 [23:50:34]MH_SAM_APDU [23:50:34]CAPDU: 80 17 00 00 [23:50:34]Write to MH i2c: E2 08 00 A0 00 80 17 00 00 00 00 00 00 20 [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:34]OFD Sender: No OFD packet to send [23:50:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:34]Read from MH i2c: E2 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 FD 00 [23:50:34]MH_I2C_Read... [23:50:34]Read from MH i2c: E2 FD 00 A0 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 98 [23:50:34]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:34]wFMCommunicate OK [23:50:34]wFMCommunicate request_size=4 [23:50:34]MH_SAM_APDU [23:50:34]CAPDU: 80 17 00 00 [23:50:34]Write to MH i2c: E2 08 00 A1 00 80 17 00 00 00 00 00 00 21 [23:50:34]Write i2c OK [23:50:34]MH_I2C_Read... [23:50:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:50:35]Read from MH i2c: E2 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: E2 E1 00 [23:50:35]MH_I2C_Read... [23:50:35]Read from MH i2c: E2 E1 00 A1 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F [23:50:35]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50:35]wFMCommunicate OK [23:50:35]SAM_PROTO_GetFMData done [23:50:35]requested_item fm.sale_refund.total is exist - process it [23:50:35]requested_item fm.buy.total is exist - process it [23:50:35]requested_item shift.sale.total is exist - process it [23:50:35]SAM_PROTO_GetShiftData [23:50:35]wFMCommunicate request_size=4 [23:50:35]MH_SAM_APDU [23:50:35]CAPDU: 80 13 02 00 [23:50:35]Write to MH i2c: E2 08 00 A2 00 80 13 02 00 00 00 00 00 20 [23:50:35]Write i2c OK [23:50:35]MH_I2C_Read... [23:50:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:36]Read from MH i2c: E2 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 FD 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 FD 00 A2 00 00 B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 73 [23:50:36]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:50:36]wFMCommunicate OK [23:50:36]wFMCommunicate request_size=4 [23:50:36]MH_SAM_APDU [23:50:36]CAPDU: 80 17 00 00 [23:50:36]Write to MH i2c: E2 08 00 A3 00 80 17 00 00 00 00 00 00 23 [23:50:36]Write i2c OK [23:50:36]MH_I2C_Read... [23:50:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:36]Read from MH i2c: E2 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 FD 00 [23:50:36]MH_I2C_Read... [23:50:36]Read from MH i2c: E2 FD 00 A3 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 2C [23:50:36]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:50:37]wFMCommunicate OK [23:50:37]wFMCommunicate request_size=4 [23:50:37]MH_SAM_APDU [23:50:37]CAPDU: 80 17 00 00 [23:50:37]Write to MH i2c: E2 08 00 A4 00 80 17 00 00 00 00 00 00 24 [23:50:37]Write i2c OK [23:50:37]MH_I2C_Read... [23:50:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:37]Read from MH i2c: E2 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 FD 00 [23:50:37]MH_I2C_Read... [23:50:37]Read from MH i2c: E2 FD 00 A4 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 4C [23:50:37]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:50:37]wFMCommunicate OK [23:50:37]wFMCommunicate request_size=4 [23:50:37]MH_SAM_APDU [23:50:37]CAPDU: 80 17 00 00 [23:50:37]Write to MH i2c: E2 08 00 A5 00 80 17 00 00 00 00 00 00 25 [23:50:37]Write i2c OK [23:50:37]MH_I2C_Read... [23:50:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:38]Read from MH i2c: E2 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 FD 00 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 FD 00 A5 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 9D [23:50:38]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:50:38]wFMCommunicate OK [23:50:38]wFMCommunicate request_size=4 [23:50:38]MH_SAM_APDU [23:50:38]CAPDU: 80 17 00 00 [23:50:38]Write to MH i2c: E2 08 00 A6 00 80 17 00 00 00 00 00 00 26 [23:50:38]Write i2c OK [23:50:38]MH_I2C_Read... [23:50:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:50:38]Read from MH i2c: E2 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 D6 00 [23:50:38]MH_I2C_Read... [23:50:38]Read from MH i2c: E2 D6 00 A6 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 08 [23:50:39]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:39]wFMCommunicate OK [23:50:39]SAM_PROTO_GetShiftData done [23:50:39]requested_item shift.sale.total_cash is exist - process it [23:50:39]requested_item shift.sale_refund.total is exist - process it [23:50:39]requested_item shift.sale_refund.total_cash is exist - process it [23:50:39]requested_item shift.buy.total is exist - process it [23:50:39]requested_item shift.buy.total_cash is exist - process it [23:50:39]produce_requested_data done [23:50:39]produce_requested_data return {"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:39]process_action_free get_value [23:50:39]json_value_free [23:50:39]json_value_free done [23:50:39]process_json_proto returns [23:50:39]Send response to host [23:50:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:39]free response buf [23:50:39]execute_script done [23:50:39]execute_script returns [23:50:39]free content buf [23:50:39]Sock 10.Close socket [23:50:39]Sock 10.Thread stoped [23:50:39]accept exits with 9 [23:50:39]New connection [23:50:39]New thread 3066617188 created [23:50:39]Thread 3066473828 joined [23:50:39]Waiting for new connection... [23:50:39] Sock 9.Parse request [23:50:39]Sock 9.Check first char [23:50:39]Sock 9.First char is OK [23:50:39]request: POST /json_proto HTTP/1.0 [23:50:39]Method: POST [23:50:39]URL: /json_proto [23:50:39]Method is POST - this is cgi request [23:50:39]url: /json_proto [23:50:39]query_string will be loaded in cgi processing [23:50:39]execute_cgi json_proto POST (null) [23:50:39]execute_cgi path=json_proto method=POST [23:50:39]POST find Content-Length [23:50:39]Host: 172.17.43.195:8080 [23:50:39]Content-Length: 331 [23:50:39]Content-Type: application/json [23:50:39] [23:50:39]POST finish read [23:50:39]Found Content-Length = 331 [23:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:39]execute_script... [23:50:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:39]POST & json_proto [23:50:39]process_json_proto [23:50:39]json parsed OK: [23:50:39]protocol is kg_v1.0 [23:50:39]action value=get_value [23:50:39]process_action get_value [23:50:39]cmd_get_value [23:50:39]process_action get_value done [23:50:39]requested_data is exist [23:50:39]produce_requested_data [23:50:39]requested_item fm.sale.total is exist - process it [23:50:39]SAM_PROTO_GetFMData [23:50:39]wFMCommunicate request_size=4 [23:50:39]MH_SAM_APDU [23:50:39]CAPDU: 80 13 03 00 [23:50:39]Write to MH i2c: E2 08 00 A7 00 80 13 03 00 00 00 00 00 26 [23:50:39]OFD Sender: No OFD packet to send [23:50:39]Write i2c OK [23:50:39]MH_I2C_Read... [23:50:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:39]Read from MH i2c: E2 [23:50:39]MH_I2C_Read... [23:50:39]Read from MH i2c: E2 FD 00 [23:50:39]MH_I2C_Read... [23:50:39]Read from MH i2c: E2 FD 00 A7 00 00 C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 F3 [23:50:40]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [23:50:40]wFMCommunicate OK [23:50:40]wFMCommunicate request_size=4 [23:50:40]MH_SAM_APDU [23:50:40]CAPDU: 80 17 00 00 [23:50:40]Write to MH i2c: E2 08 00 A8 00 80 17 00 00 00 00 00 00 28 [23:50:40]Write i2c OK [23:50:40]MH_I2C_Read... [23:50:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:40]Read from MH i2c: E2 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 FD 00 [23:50:40]MH_I2C_Read... [23:50:40]Read from MH i2c: E2 FD 00 A8 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [23:50:40]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:41]wFMCommunicate OK [23:50:41]wFMCommunicate request_size=4 [23:50:41]MH_SAM_APDU [23:50:41]CAPDU: 80 17 00 00 [23:50:41]Write to MH i2c: E2 08 00 A9 00 80 17 00 00 00 00 00 00 29 [23:50:41]Write i2c OK [23:50:41]MH_I2C_Read... [23:50:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:41]Read from MH i2c: E2 [23:50:41]MH_I2C_Read... [23:50:41]Read from MH i2c: E2 FD 00 [23:50:41]MH_I2C_Read... [23:50:41]Read from MH i2c: E2 FD 00 A9 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3E [23:50:41]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:41]wFMCommunicate OK [23:50:41]wFMCommunicate request_size=4 [23:50:41]MH_SAM_APDU [23:50:41]CAPDU: 80 17 00 00 [23:50:41]Write to MH i2c: E2 08 00 AA 00 80 17 00 00 00 00 00 00 2A [23:50:41]Write i2c OK [23:50:41]MH_I2C_Read... [23:50:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:42]Read from MH i2c: E2 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 FD 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 FD 00 AA 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [23:50:42]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:42]wFMCommunicate OK [23:50:42]wFMCommunicate request_size=4 [23:50:42]MH_SAM_APDU [23:50:42]CAPDU: 80 17 00 00 [23:50:42]Write to MH i2c: E2 08 00 AB 00 80 17 00 00 00 00 00 00 2B [23:50:42]Write i2c OK [23:50:42]MH_I2C_Read... [23:50:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:50:42]Read from MH i2c: E2 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 E1 00 [23:50:42]MH_I2C_Read... [23:50:42]Read from MH i2c: E2 E1 00 AB 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 19 [23:50:43]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50:43]wFMCommunicate OK [23:50:43]SAM_PROTO_GetFMData done [23:50:43]requested_item fm.sale_refund.total is exist - process it [23:50:43]requested_item fm.buy.total is exist - process it [23:50:43]requested_item shift.sale.total is exist - process it [23:50:43]SAM_PROTO_GetShiftData [23:50:43]wFMCommunicate request_size=4 [23:50:43]MH_SAM_APDU [23:50:43]CAPDU: 80 13 02 00 [23:50:43]Write to MH i2c: E2 08 00 AC 00 80 13 02 00 00 00 00 00 2A [23:50:43]Write i2c OK [23:50:43]MH_I2C_Read... [23:50:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:43]Read from MH i2c: E2 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 FD 00 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 FD 00 AC 00 00 B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 7D [23:50:44]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:50:44]wFMCommunicate OK [23:50:44]wFMCommunicate request_size=4 [23:50:44]MH_SAM_APDU [23:50:44]CAPDU: 80 17 00 00 [23:50:44]Write to MH i2c: E2 08 00 AD 00 80 17 00 00 00 00 00 00 2D [23:50:44]Write i2c OK [23:50:44]MH_I2C_Read... [23:50:44]OFD Sender: No OFD packet to send [23:50:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:44]Read from MH i2c: E2 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: E2 FD 00 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: E2 FD 00 AD 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 36 [23:50:44]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [23:50:45]wFMCommunicate OK [23:50:45]wFMCommunicate request_size=4 [23:50:45]MH_SAM_APDU [23:50:45]CAPDU: 80 17 00 00 [23:50:45]Write to MH i2c: E2 08 00 AE 00 80 17 00 00 00 00 00 00 2E [23:50:45]Write i2c OK [23:50:45]MH_I2C_Read... [23:50:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:45]Read from MH i2c: E2 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 FD 00 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 FD 00 AE 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 56 [23:50:45]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [23:50:45]wFMCommunicate OK [23:50:45]wFMCommunicate request_size=4 [23:50:45]MH_SAM_APDU [23:50:45]CAPDU: 80 17 00 00 [23:50:45]Write to MH i2c: E2 08 00 AF 00 80 17 00 00 00 00 00 00 2F [23:50:45]Write i2c OK [23:50:45]MH_I2C_Read... [23:50:45]recv_with_timeout no data received [23:50:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:46]Read from MH i2c: E2 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 AF 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 A7 [23:50:46]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [23:50:46]wFMCommunicate OK [23:50:46]wFMCommunicate request_size=4 [23:50:46]MH_SAM_APDU [23:50:46]CAPDU: 80 17 00 00 [23:50:46]Write to MH i2c: E2 08 00 B0 00 80 17 00 00 00 00 00 00 30 [23:50:46]Write i2c OK [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 [23:50:46]MH_I2C_Read... [23:50:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [23:50:46]Read from MH i2c: E2 D6 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 D6 00 B0 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 12 [23:50:47]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:47]wFMCommunicate OK [23:50:47]SAM_PROTO_GetShiftData done [23:50:47]requested_item shift.sale.total_cash is exist - process it [23:50:47]requested_item shift.sale_refund.total is exist - process it [23:50:47]requested_item shift.sale_refund.total_cash is exist - process it [23:50:47]requested_item shift.buy.total is exist - process it [23:50:47]requested_item shift.buy.total_cash is exist - process it [23:50:47]produce_requested_data done [23:50:47]produce_requested_data return {"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:47]process_action_free get_value [23:50:47]json_value_free [23:50:47]json_value_free done [23:50:47]process_json_proto returns [23:50:47]Send response to host [23:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:47]free response buf [23:50:47]execute_script done [23:50:47]execute_script returns [23:50:47]free content buf [23:50:47]Sock 9.Close socket [23:50:47]Sock 9.Thread stoped [23:50:47]accept exits with 7 [23:50:47]New connection [23:50:47]New thread 3066473828 created [23:50:47]Thread 3066617188 joined [23:50:47]Waiting for new connection... [23:50:47] Sock 7.Parse request [23:50:47]Sock 7.Check first char [23:50:47]Sock 7.First char is OK [23:50:47]request: POST /json_proto HTTP/1.0 [23:50:47]Method: POST [23:50:47]URL: /json_proto [23:50:47]Method is POST - this is cgi request [23:50:47]url: /json_proto [23:50:47]query_string will be loaded in cgi processing [23:50:47]execute_cgi json_proto POST (null) [23:50:47]execute_cgi path=json_proto method=POST [23:50:47]POST find Content-Length [23:50:47]Host: 172.17.43.195:8080 [23:50:47]Content-Length: 284 [23:50:47]Content-Type: application/json [23:50:47] [23:50:47]POST finish read [23:50:47]Found Content-Length = 284 [23:50:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0443\u0440\u0433\u0443\u043D\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:47]execute_script... [23:50:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0443\u0440\u0433\u0443\u043D\u0431\u0435\u043A\u043E\u0432\u0430 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:47]POST & json_proto [23:50:47]process_json_proto [23:50:47]json parsed OK: [23:50:47]protocol is kg_v1.0 [23:50:47]action value=close_shift [23:50:47]process_action close_shift [23:50:47]cmd_close_shift [23:50:47]MH_GetDate [23:50:47]Write to MH i2c: F0 00 00 B1 00 A0 [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: F0 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: F0 09 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: F0 09 00 B1 00 00 58 C6 22 67 74 2C AD 66 03 [23:50:47]GetLastDocTimeStamp 1730332217 [23:50:47]current date 1730332248 [23:50:47]FM_GetShiftState [23:50:47]SAM_PROTO_GetShiftState [23:50:47]wFMCommunicate request_size=4 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 13 01 00 [23:50:47]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 0E 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 C5 79 21 67 00 00 00 00 90 00 01 [23:50:47]RAPDU: 09 00 01 C5 79 21 67 00 00 00 00 90 00 [23:50:47]wFMCommunicate OK [23:50:47]SAM_PROTO_GetShiftState done [23:50:47]FM_GetShiftState done [23:50:47]KKMCreateCloseShiftDocument [23:50:47]Load OK [23:50:47]Malloc new data [23:50:47]MH_GetDate [23:50:47]Write to MH i2c: F0 00 00 B3 00 A2 [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: F0 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: F0 09 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: F0 09 00 B3 00 00 58 C6 22 67 74 2C AD 66 05 [23:50:47]Malloc new data [23:50:47]Malloc new data [23:50:47]Malloc new data [23:50:47]Malloc new data [23:50:47]KKMCreateCloseShiftDocument OK [23:50:47]KKMSetCloseShiftData OK [23:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=79 [23:50:47]tlvbuf is 0157C4E0 [23:50:47]KKMLoadAndSignCloseShiftData [23:50:47]SAM_PROTO_ProcessDocument [23:50:47]wFMCommunicate request_size=9 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 15 01 00 04 05 00 4F 00 [23:50:47]Write to MH i2c: E2 0C 00 B4 00 80 15 01 00 04 00 05 00 4F 00 00 00 8F [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 03 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [23:50:47]RAPDU: 90 00 [23:50:47]wFMCommunicate OK [23:50:47]wFMCommunicate request_size=23 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:50:47]Write to MH i2c: E2 1A 00 B5 00 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 2A [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 03 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [23:50:47]RAPDU: 90 00 [23:50:47]wFMCommunicate OK [23:50:47]wFMCommunicate request_size=38 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 A2 D1 83 D1 80 D0 B3 D1 83 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 [23:50:47]Write to MH i2c: E2 29 00 B6 00 80 15 02 00 21 00 FD 03 1D 00 D0 A2 D1 83 D1 80 D0 B3 D1 83 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 00 00 FE [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [23:50:48]RAPDU: 90 00 [23:50:48]wFMCommunicate OK [23:50:48]wFMCommunicate request_size=13 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 15 02 00 08 F4 03 04 00 58 C6 22 67 [23:50:48]Write to MH i2c: E2 10 00 B7 00 80 15 02 00 08 00 F4 03 04 00 58 C6 22 67 00 00 E9 [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [23:50:48]RAPDU: 90 00 [23:50:48]wFMCommunicate OK [23:50:48]wFMCommunicate request_size=25 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [23:50:48]Write to MH i2c: E2 1C 00 B8 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 99 [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 03 00 B8 00 00 90 00 2C [23:50:48]RAPDU: 90 00 [23:50:48]wFMCommunicate OK [23:50:48]wFMCommunicate request_size=4 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 15 03 00 [23:50:48]Write to MH i2c: E2 08 00 B9 00 80 15 03 00 00 00 00 00 3A [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 FD 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 FD 00 B9 00 00 FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DC 1C 01 00 0E 04 04 00 2C 02 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 90 00 F9 [23:50:49]RAPDU: FC 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DC 1C 01 00 0E 04 04 00 2C 02 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 90 00 [23:50:49]wFMCommunicate OK [23:50:49]SAM_PROTO_ProcessDocument answer len = 1276 [23:50:49]SAM_PROTO_ProcessDocument remain to read = 1028 [23:50:49]wFMCommunicate request_size=4 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 17 00 00 [23:50:49]Write to MH i2c: E2 08 00 BA 00 80 17 00 00 00 00 00 00 3A [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]OFD Sender: No OFD packet to send [23:50:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 FD 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 FD 00 BA 00 00 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F 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 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 7A [23:50:50]RAPDU: 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F 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 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:50:50]wFMCommunicate OK [23:50:50]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:50]SAM_PROTO_ProcessDocument remain to read = 778 [23:50:50]wFMCommunicate request_size=4 [23:50:50]MH_SAM_APDU [23:50:50]CAPDU: 80 17 00 00 [23:50:50]Write to MH i2c: E2 08 00 BB 00 80 17 00 00 00 00 00 00 3B [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:50]Read from MH i2c: E2 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 FD 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: E2 FD 00 BB 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A1 [23:50:50]RAPDU: 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:50:51]wFMCommunicate OK [23:50:51]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:51]SAM_PROTO_ProcessDocument remain to read = 528 [23:50:51]wFMCommunicate request_size=4 [23:50:51]MH_SAM_APDU [23:50:51]CAPDU: 80 17 00 00 [23:50:51]Write to MH i2c: E2 08 00 BC 00 80 17 00 00 00 00 00 00 3C [23:50:51]Write i2c OK [23:50:51]MH_I2C_Read... [23:50:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:51]Read from MH i2c: E2 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 FD 00 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 FD 00 BC 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 4F [23:50:51]RAPDU: 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 90 00 [23:50:52]wFMCommunicate OK [23:50:52]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:52]SAM_PROTO_ProcessDocument remain to read = 278 [23:50:52]wFMCommunicate request_size=4 [23:50:52]MH_SAM_APDU [23:50:52]CAPDU: 80 17 00 00 [23:50:52]Write to MH i2c: E2 08 00 BD 00 80 17 00 00 00 00 00 00 3D [23:50:52]Write i2c OK [23:50:52]MH_I2C_Read... [23:50:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:52]Read from MH i2c: E2 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 FD 00 [23:50:52]MH_I2C_Read... [23:50:52]Read from MH i2c: E2 FD 00 BD 00 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 77 [23:50:52]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:50:52]wFMCommunicate OK [23:50:52]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:50:52]SAM_PROTO_ProcessDocument remain to read = 28 [23:50:52]wFMCommunicate request_size=4 [23:50:52]MH_SAM_APDU [23:50:52]CAPDU: 80 17 00 00 [23:50:52]Write to MH i2c: E2 08 00 BE 00 80 17 00 00 00 00 00 00 3E [23:50:52]Write i2c OK [23:50:52]MH_I2C_Read... [23:50:53]Read from MH i2c: E2 [23:50:53]MH_I2C_Read... [23:50:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 28! [23:50:53]Read from MH i2c: E2 1F 00 [23:50:53]MH_I2C_Read... [23:50:53]Read from MH i2c: E2 1F 00 BE 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 8E 21 0E 93 61 5B 90 00 8D [23:50:53]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 8E 21 0E 93 61 5B 90 00 [23:50:53]wFMCommunicate OK [23:50:53]SAM_PROTO_ProcessDocument received (without SW) 28 bytes [23:50:53]SAM_PROTO_ProcessDocument done [23:50:53]1209 (1) - 1.0 - номер версии ФФД [23:50:53]1041 (16) - 0000000000874662 - номер ФМ [23:50:53]1040 (4) - 72924 - номер ФД [23:50:53]1038 (4) - 556 - номер смены [23:50:53]1118 (4) - 160 - количество кассовых чеков за смену [23:50:53]1111 (4) - 162 - общее количество ФД за смену [23:50:53]1194 (1205) - счетчики итогов смены [23:50:53] 1134 (4) - 160 - количество чеков со всеми признаками расчетов [23:50:53] 1129 (156) - счетчики операций «приход» [23:50:53] 1135 (4) - 159 - количество чеков по признаку расчетов [23:50:53] 1201 (3) - 102331.30 - общая итоговая сумма в чеках [23:50:53] 1136 (3) - 61065.00 - итоговая сумма в чеках наличными [23:50:53] 1138 (3) - 41266.30 - итоговая сумма в чеках безналичными [23:50:53] 1024 (123) - суммы налогов [23:50:53] 1006 (9) - суммы НДС [23:50:53] 1010 (1) - 0% - код ставки НДС [23:50:53] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:53] 1006 (12) - суммы НДС [23:50:53] 1010 (1) - 12% - код ставки НДС [23:50:53] 1011 (3) - 10868.99 - сумма НДС по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 0% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (12) - суммы НСП [23:50:53] 1014 (1) - 1% - код ставки НСП [23:50:53] 1015 (3) - 905.75 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 2% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 3% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 5% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 0,50% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 1,50% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1130 (151) - счетчики операций «возврат прихода» [23:50:53] 1135 (4) - 1 - количество чеков по признаку расчетов [23:50:53] 1201 (3) - 1524.00 - общая итоговая сумма в чеках [23:50:53] 1136 (3) - 1524.00 - итоговая сумма в чеках наличными [23:50:53] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:53] 1024 (121) - суммы налогов [23:50:53] 1006 (9) - суммы НДС [23:50:53] 1010 (1) - 0% - код ставки НДС [23:50:53] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:53] 1006 (11) - суммы НДС [23:50:53] 1010 (1) - 12% - код ставки НДС [23:50:53] 1011 (2) - 161.84 - сумма НДС по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 0% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (11) - суммы НСП [23:50:53] 1014 (1) - 1% - код ставки НСП [23:50:53] 1015 (2) - 13.49 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 2% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 3% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 5% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 0,50% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 1,50% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1131 (141) - счетчики операций «расход» [23:50:53] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:53] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:53] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:53] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:53] 1024 (117) - суммы налогов [23:50:53] 1006 (9) - суммы НДС [23:50:53] 1010 (1) - 0% - код ставки НДС [23:50:53] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:53] 1006 (9) - суммы НДС [23:50:53] 1010 (1) - 12% - код ставки НДС [23:50:53] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 0% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 1% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 2% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 3% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 5% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 0,50% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 1,50% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1132 (141) - счетчики операций «возврат расхода» [23:50:53] 1135 (4) - 0 - количество чеков по признаку расчетов [23:50:53] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:50:53] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:50:53] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:50:53] 1024 (117) - суммы налогов [23:50:53] 1006 (9) - суммы НДС [23:50:53] 1010 (1) - 0% - код ставки НДС [23:50:53] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:53] 1006 (9) - суммы НДС [23:50:53] 1010 (1) - 12% - код ставки НДС [23:50:53] 1011 (0) - 0.00 - сумма НДС по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 0% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 1% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 2% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 3% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 5% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 0,50% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1007 (9) - суммы НСП [23:50:53] 1014 (1) - 1,50% - код ставки НСП [23:50:53] 1015 (0) - 0.00 - сумма НСП по ставке [23:50:53] 1133 (588) - - счетчики коррекции - не используются [23:50:53]1077 (6) - 156272629604699 - ФПД [23:50:53]SetTLVBufToDocument [23:50:53]Processing tag 1209 (04B9) [23:50:53]Malloc new data [23:50:53]Processing tag 1041 (0411) [23:50:53]Processing tag 1040 (0410) [23:50:53]Malloc new data [23:50:53]Processing tag 1038 (040E) [23:50:53]Malloc new data [23:50:53]Processing tag 1118 (045E) [23:50:53]Malloc new data [23:50:53]Processing tag 1111 (0457) [23:50:53]Malloc new data [23:50:53]Processing tag 1194 (04AA) [23:50:53]Load OK [23:50:53]SetTLVBufToDocument [23:50:53]Processing tag 1134 (046E) [23:50:53]Malloc new data [23:50:53]Processing tag 1129 (0469) [23:50:53]Load OK [23:50:53]SetTLVBufToDocument [23:50:53]Processing tag 1135 (046F) [23:50:53]Malloc new data [23:50:53]Processing tag 1201 (04B1) [23:50:53]Malloc new data [23:50:53]Processing tag 1136 (0470) [23:50:53]Malloc new data [23:50:53]Processing tag 1138 (0472) [23:50:53]Malloc new data [23:50:53]Processing tag 1024 (0400) [23:50:53]Load OK [23:50:53]SetTLVBufToDocument [23:50:53]Processing tag 1006 (03EE) [23:50:53]Load OK [23:50:53]SetTLVBufToDocument [23:50:53]Processing tag 1010 (03F2) [23:50:53]Malloc new data [23:50:53]Processing tag 1011 (03F3) [23:50:53]Malloc new data [23:50:53]SetTLVBufToDocument err=0 [23:50:53]Processing tag 1006 (03EE) [23:50:53]Load OK [23:50:53]SetTLVBufToDocument [23:50:53]Processing tag 1010 (03F2) [23:50:53]Malloc new data [23:50:53]Processing tag 1011 (03F3) [23:50:53]Malloc new data [23:50:53]SetTLVBufToDocument err=0 [23:50:53]Processing tag 1007 (03EF) [23:50:53]Load OK [23:50:53]SetTLVBufToDocument [23:50:53]Processing tag 1014 (03F6) [23:50:53]Malloc new data [23:50:53]Processing tag 1015 (03F7) [23:50:53]Malloc new data [23:50:53]SetTLVBufToDocument err=0 [23:50:53]Processing tag 1007 (03EF) [23:50:53]Load OK [23:50:53]SetTLVBufToDocument [23:50:53]Processing tag 1014 (03F6) [23:50:53]Malloc new data [23:50:53]Processing tag 1015 (03F7) [23:50:53]Malloc new data [23:50:53]SetTLVBufToDocument err=0 [23:50:53]Processing tag 1007 (03EF) [23:50:53]Load OK [23:50:53]SetTLVBufToDocument [23:50:53]Processing tag 1014 (03F6) [23:50:53]Malloc new data [23:50:53]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]SetTLVBufToDocument err=0 [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1130 (046A) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1135 (046F) [23:50:54]Malloc new data [23:50:54]Processing tag 1201 (04B1) [23:50:54]Malloc new data [23:50:54]Processing tag 1136 (0470) [23:50:54]Malloc new data [23:50:54]Processing tag 1138 (0472) [23:50:54]Malloc new data [23:50:54]Processing tag 1024 (0400) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1006 (03EE) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1010 (03F2) [23:50:54]Malloc new data [23:50:54]Processing tag 1011 (03F3) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1006 (03EE) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1010 (03F2) [23:50:54]Malloc new data [23:50:54]Processing tag 1011 (03F3) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]SetTLVBufToDocument err=0 [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1131 (046B) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1135 (046F) [23:50:54]Malloc new data [23:50:54]Processing tag 1201 (04B1) [23:50:54]Malloc new data [23:50:54]Processing tag 1136 (0470) [23:50:54]Malloc new data [23:50:54]Processing tag 1138 (0472) [23:50:54]Malloc new data [23:50:54]Processing tag 1024 (0400) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1006 (03EE) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1010 (03F2) [23:50:54]Malloc new data [23:50:54]Processing tag 1011 (03F3) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1006 (03EE) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1010 (03F2) [23:50:54]Malloc new data [23:50:54]Processing tag 1011 (03F3) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]SetTLVBufToDocument err=0 [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1132 (046C) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1135 (046F) [23:50:54]Malloc new data [23:50:54]Processing tag 1201 (04B1) [23:50:54]Malloc new data [23:50:54]Processing tag 1136 (0470) [23:50:54]Malloc new data [23:50:54]Processing tag 1138 (0472) [23:50:54]Malloc new data [23:50:54]Processing tag 1024 (0400) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1006 (03EE) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1010 (03F2) [23:50:54]Malloc new data [23:50:54]Processing tag 1011 (03F3) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1006 (03EE) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1010 (03F2) [23:50:54]Malloc new data [23:50:54]Processing tag 1011 (03F3) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1007 (03EF) [23:50:54]Load OK [23:50:54]SetTLVBufToDocument [23:50:54]Processing tag 1014 (03F6) [23:50:54]Malloc new data [23:50:54]Processing tag 1015 (03F7) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]SetTLVBufToDocument err=0 [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1133 (046D) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Processing tag 1077 (0435) [23:50:54]Malloc new data [23:50:54]SetTLVBufToDocument err=0 [23:50:54]Malloc new data [23:50:54]SAM_PROTO_GetFMData [23:50:54]wFMCommunicate request_size=4 [23:50:54]MH_SAM_APDU [23:50:54]CAPDU: 80 13 03 00 [23:50:54]Write to MH i2c: E2 08 00 BF 00 80 13 03 00 00 00 00 00 3E [23:50:54]Write i2c OK [23:50:54]MH_I2C_Read... [23:50:54]OFD Sender: No OFD packet to send [23:50:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:54]Read from MH i2c: E2 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 FD 00 [23:50:54]MH_I2C_Read... [23:50:54]Read from MH i2c: E2 FD 00 BF 00 00 C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 0B [23:50:55]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [23:50:55]wFMCommunicate OK [23:50:55]wFMCommunicate request_size=4 [23:50:55]MH_SAM_APDU [23:50:55]CAPDU: 80 17 00 00 [23:50:55]Write to MH i2c: E2 08 00 C0 00 80 17 00 00 00 00 00 00 40 [23:50:55]Write i2c OK [23:50:55]MH_I2C_Read... [23:50:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:55]Read from MH i2c: E2 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 FD 00 [23:50:55]MH_I2C_Read... [23:50:55]Read from MH i2c: E2 FD 00 C0 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C0 [23:50:56]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:56]wFMCommunicate OK [23:50:56]wFMCommunicate request_size=4 [23:50:56]MH_SAM_APDU [23:50:56]CAPDU: 80 17 00 00 [23:50:56]Write to MH i2c: E2 08 00 C1 00 80 17 00 00 00 00 00 00 41 [23:50:56]Write i2c OK [23:50:56]MH_I2C_Read... [23:50:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:56]Read from MH i2c: E2 [23:50:56]MH_I2C_Read... [23:50:56]Read from MH i2c: E2 FD 00 [23:50:56]MH_I2C_Read... [23:50:56]Read from MH i2c: E2 FD 00 C1 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 56 [23:50:57]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:57]wFMCommunicate OK [23:50:57]wFMCommunicate request_size=4 [23:50:57]MH_SAM_APDU [23:50:57]CAPDU: 80 17 00 00 [23:50:57]Write to MH i2c: E2 08 00 C2 00 80 17 00 00 00 00 00 00 42 [23:50:57]Write i2c OK [23:50:57]MH_I2C_Read... [23:50:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:57]Read from MH i2c: E2 [23:50:57]MH_I2C_Read... [23:50:57]Read from MH i2c: E2 FD 00 [23:50:57]MH_I2C_Read... [23:50:57]Read from MH i2c: E2 FD 00 C2 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BA [23:50:57]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:50:58]wFMCommunicate OK [23:50:58]wFMCommunicate request_size=4 [23:50:58]MH_SAM_APDU [23:50:58]CAPDU: 80 17 00 00 [23:50:58]Write to MH i2c: E2 08 00 C3 00 80 17 00 00 00 00 00 00 43 [23:50:58]Write i2c OK [23:50:58]MH_I2C_Read... [23:50:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:50:58]Read from MH i2c: E2 [23:50:58]MH_I2C_Read... [23:50:58]Read from MH i2c: E2 E1 00 [23:50:58]MH_I2C_Read... [23:50:58]Read from MH i2c: E2 E1 00 C3 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 31 [23:50:58]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50:59]wFMCommunicate OK [23:50:59]SAM_PROTO_GetFMData done [23:50:59]Malloc new data [23:50:59]Malloc new data [23:50:59]Malloc new data [23:50:59]Malloc new data [23:50:59]KKMLoadAndSignCloseShiftData err=0 [23:50:59]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Тургунбекова А. 30.10.2024 23:50 Смена: 556 РНМ: 0000000000091644 ЗНМ: 0300000087 СНО: Общий режим Чеков за смену: 160 ФД за смену: 162 Всего чеков: 160 ИТОГИ ПРИХОД Чеков: 159 Общий итог: 102331.30 Итого наличными: 61065.00 Итого безнал.: 41266.30 НДС 0% : 0.00 НДС 12% : 10868.99 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 905.75 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 1524.00 Итого наличными: 1524.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 161.84 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 13.49 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 59541.00 НС Приход: 70479003.45 НС Возвр.Прихода: 837831.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 72924 ФМ: 0000000000874662 ФПД: 156272629604699 [23:50:59]StoreToDocumentArchive [23:50:59]shift 556 fd 72924 [23:50:59]save to /storage/0556/doc_00072924 [23:50:59]save last doc name /storage/0556/doc_00072924 to /storage/kkm_last_doc_name [23:50:59]save OK [23:50:59]Clear old archive folders... [23:50:59]Remove dir /storage/0522 [23:50:59]opendir ok [23:50:59]file . [23:50:59]file .. [23:50:59]file doc_1730332226 [23:50:59]remove file /storage/0522/doc_1730332226 [23:50:59]remove dir /storage/0522 [23:50:59]NVStorageSaveData kkm_registers [23:50:59]File name is /storage/kkm_registers [23:50:59]Write 24 bytes [23:50:59]NVStorageSaveData done [23:50:59]NVStorageSaveData kkm_registers [23:50:59]File name is /storage/kkm_registers [23:50:59]Write 24 bytes [23:50:59]NVStorageSaveData done [23:50:59]ProcessDocumentItem done err = 0, tmpTLVsize=1394 [23:50:59]tlvbuf is 015A6FF0 [23:50:59]SAM_PROTO_ClearQueue [23:50:59]wFMCommunicate request_size=4 [23:50:59]MH_SAM_APDU [23:50:59]CAPDU: 80 09 00 00 [23:50:59]Write to MH i2c: E2 08 00 C4 00 80 09 00 00 00 00 00 00 36 [23:50:59]Write i2c OK [23:50:59]MH_I2C_Read... [23:50:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:59]Read from MH i2c: E2 [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: E2 03 00 [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [23:50:59]RAPDU: 90 00 [23:50:59]wFMCommunicate OK [23:50:59]SAM_PROTO_ClearQueue done [23:50:59]KKMCreateOFDPacket [23:50:59]OFDProtocolAddRootSTLVToBuf [23:50:59]FM_MakeSignedData [23:50:59]FM_MakeSignedData [23:50:59]SAM_PROTO_SignData [23:50:59]wFMCommunicate request_size=4 [23:50:59]MH_SAM_APDU [23:50:59]CAPDU: 80 0D 01 02 [23:50:59]Write to MH i2c: E2 08 00 C5 00 80 0D 01 02 00 00 00 00 3E [23:50:59]Write i2c OK [23:50:59]MH_I2C_Read... [23:50:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:59]Read from MH i2c: E2 [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: E2 03 00 [23:50:59]MH_I2C_Read... [23:50:59]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [23:50:59]RAPDU: 90 00 [23:50:59]wFMCommunicate OK [23:50:59]wFMCommunicate request_size=255 [23:50:59]MH_SAM_APDU [23:50:59]CAPDU: 80 0D 02 02 FA 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A2 D1 83 D1 80 D0 B3 D1 83 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 58 C6 22 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 AA 04 DC 04 6E 04 04 00 A0 00 00 00 69 04 A3 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 OFD Sender: No OFD packet to send [23:50:59]F7 03 01 00 00 EF 03 0A [23:50:59]Write to MH i2c: E2 02 01 C6 00 80 0D 02 02 FA 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A2 D1 83 D1 80 D0 B3 D1 83 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 58 C6 22 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 AA 04 DC 04 6E 04 04 00 A0 00 00 00 69 04 A3 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 00 B5 [23:51:00]Write i2c OK [23:51:00]MH_I2C_Read... [23:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:00]Read from MH i2c: E2 [23:51:00]MH_I2C_Read... [23:51:00]Read from MH i2c: E2 03 00 [23:51:00]MH_I2C_Read... [23:51:00]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [23:51:00]RAPDU: 90 00 [23:51:00]wFMCommunicate OK [23:51:00]wFMCommunicate request_size=255 [23:51:00]MH_SAM_APDU [23:51:00]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE [23:51:00]Write to MH i2c: E2 02 01 C7 00 80 0D 02 02 FA 00 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 00 00 FC [23:51:01]Write i2c OK [23:51:01]MH_I2C_Read... [23:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:01]Read from MH i2c: E2 [23:51:01]MH_I2C_Read... [23:51:01]Read from MH i2c: E2 03 00 [23:51:01]MH_I2C_Read... [23:51:01]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [23:51:01]RAPDU: 90 00 [23:51:01]wFMCommunicate OK [23:51:01]wFMCommunicate request_size=255 [23:51:01]MH_SAM_APDU [23:51:01]CAPDU: 80 0D 02 02 FA 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 [23:51:01]Write to MH i2c: E2 02 01 C8 00 80 0D 02 02 FA 00 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 00 00 09 [23:51:02]Write i2c OK [23:51:02]MH_I2C_Read... [23:51:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:02]Read from MH i2c: E2 [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: E2 03 00 [23:51:02]MH_I2C_Read... [23:51:02]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [23:51:02]RAPDU: 90 00 [23:51:02]wFMCommunicate OK [23:51:02]wFMCommunicate request_size=255 [23:51:02]MH_SAM_APDU [23:51:02]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 [23:51:02]Write to MH i2c: E2 02 01 C9 00 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 00 12 [23:51:03]Write i2c OK [23:51:03]MH_I2C_Read... [23:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:03]Read from MH i2c: E2 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: E2 03 00 [23:51:03]MH_I2C_Read... [23:51:03]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [23:51:03]RAPDU: 90 00 [23:51:03]wFMCommunicate OK [23:51:03]wFMCommunicate request_size=255 [23:51:03]MH_SAM_APDU [23:51:03]CAPDU: 80 0D 02 02 FA 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 [23:51:03]Write to MH i2c: E2 02 01 CA 00 80 0D 02 02 FA 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 D9 [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:04]Read from MH i2c: E2 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 03 00 [23:51:04]MH_I2C_Read... [23:51:04]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [23:51:04]RAPDU: 90 00 [23:51:04]wFMCommunicate OK [23:51:04]wFMCommunicate request_size=153 [23:51:04]MH_SAM_APDU [23:51:04]CAPDU: 80 0D 02 02 94 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DC 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8E 21 0E 93 61 5B [23:51:04]Write to MH i2c: E2 9C 00 CB 00 80 0D 02 02 94 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DC 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8E 21 0E 93 61 5B 00 00 8A [23:51:04]OFD Sender: No OFD packet to send [23:51:04]Write i2c OK [23:51:04]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 03 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [23:51:05]RAPDU: 90 00 [23:51:05]wFMCommunicate OK [23:51:05]wFMCommunicate request_size=4 [23:51:05]MH_SAM_APDU [23:51:05]CAPDU: 80 0D 03 02 [23:51:05]Write to MH i2c: E2 08 00 CC 00 80 0D 03 02 00 00 00 00 47 [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 0B 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 0B 00 CC 00 00 2E 3A 92 D9 D9 E7 0D 10 90 00 F8 [23:51:05]RAPDU: 2E 3A 92 D9 D9 E7 0D 10 90 00 [23:51:05]wFMCommunicate OK [23:51:05]SAM_PROTO_SignData done [23:51:05]FM_MakeSignedData done [23:51:05]CreateOFDProtocolMessage [23:51:05]wFMCommunicate request_size=4 [23:51:05]MH_SAM_APDU [23:51:05]CAPDU: 80 11 00 00 [23:51:05]Write to MH i2c: E2 08 00 CD 00 80 11 00 00 00 00 00 00 47 [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:05]Read from MH i2c: E2 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 17 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: E2 17 00 CD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9B [23:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:51:05]wFMCommunicate OK [23:51:05]CreateOFDProtocolMessage done [23:51:05]OFDSenderStorePacket 72924 [23:51:05]StoreOFDPacket docnum=72924 [23:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 86 05 00 00 9A 2D 7E 05 94 20 5A 05 01 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A2 D1 83 D1 80 D0 B3 D1 83 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 58 C6 22 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 AA 04 DC 04 6E 04 04 00 A0 00 00 00 69 04 A3 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DC 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8E 21 0E 93 61 5B 2E 3A 92 D9 D9 E7 0D 10 [23:51:05]CheckFolder [23:51:05]dirname=/storage/ofd_packets [23:51:05]CheckFolder done [23:51:05]ProducePacketName [23:51:05]name=ofd_packets/00072924 [23:51:05]NVStorageSaveData ofd_packets/00072924 [23:51:05]File name is /storage/ofd_packets/00072924 [23:51:05]Write 1444 bytes [23:51:05]NVStorageSaveData done [23:51:05]OFDSenderStorePacket done [23:51:05]KKMCreateOFDPacket done [23:51:05]NVStorageSaveData kkm_last_timestamp [23:51:05]File name is /storage/kkm_last_timestamp [23:51:05]Write 4 bytes [23:51:05]NVStorageSaveData done [23:51:05]ExternCall_PrintAddStr [23:51:05]wPrintStart [23:51:05]Write to MH i2c: 01 00 00 CE 00 CE [23:51:05]Write i2c OK [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: 01 [23:51:05]MH_I2C_Read... [23:51:05]OFD Sender: Processing packet 72924 [packets to send 279, broken 278] [23:51:05]ProducePacketName [23:51:05]name=ofd_packets/00072924 [23:51:05]OFD Sender: To server: pG, [23:51:05]CommunicateWithHost lk.salyk.kg:30040 [23:51:05]ConnectInit lk.salyk.kg [23:51:05]Read from MH i2c: 01 07 00 [23:51:05]MH_I2C_Read... [23:51:05]Read from MH i2c: 01 07 00 CE 00 00 00 00 00 00 FF 0F E3 [23:51:05]RasterBufferAndPrint [23:51:05]line Отчет о закрытии смены [23:51:05]line ФФД: 1.0 [23:51:05]line ИНН: 02508201610067 [23:51:05]line Кассир: Тургунбекова А. [23:51:05]line 30.10.2024 23:50 [23:51:05]line Смена: 556 [23:51:05]line РНМ: 0000000000091644 [23:51:05]line ЗНМ: 0300000087 [23:51:05]line СНО: Общий режим [23:51:05]line Чеков за смену: 160 [23:51:05]line ФД за смену: 162 [23:51:05]line Всего чеков: 160 [23:51:05]line ИТОГИ ПРИХОД [23:51:05]line Чеков: 159 [23:51:05]line Общий итог: 102331.30 [23:51:05]line Итого наличными: 61065.00 [23:51:05]line Итого безнал.: 41266.30 [23:51:05]line НДС 0% : 0.00 [23:51:05]line НДС 12% : 10868.99 [23:51:05]line НСП 0% : 0.00 [23:51:05]line НСП 1,50% : 0.00 [23:51:05]line НСП 0,50% : 0.00 [23:51:05]line НСП 5% : 0.00 [23:51:05]line НСП 3% : 0.00 [23:51:05]line НСП 2% : 0.00 [23:51:05]line НСП 1% : 905.75 [23:51:05]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:51:05]line Чеков: 1 [23:51:05]line Общий итог: 1524.00 [23:51:05]line Итого наличными: 1524.00 [23:51:05]line Итого безнал.: 0.00 [23:51:05]line НДС 0% : 0.00 [23:51:05]line НДС 12% : 161.84 [23:51:05]line НСП 0% : 0.00 [23:51:05]line НСП 1,50% : 0.00 [23:51:05]line НСП 0,50% : 0.00 [23:51:05]line НСП 5% : 0.00 [23:51:05]line НСП 3% : 0.00 [23:51:05]line НСП 2% : 0.00 [23:51:05]line НСП 1% : 13.49 [23:51:05]line ИТОГИ РАСХОД [23:51:05]line Чеков: 0 [23:51:05]line Общий итог: 0.00 [23:51:05]line Итого наличными: 0.00 [23:51:05]line Итого безнал.: 0.00 [23:51:05]line НДС 0% : 0.00 [23:51:05]line НДС 12% : 0.00 [23:51:05]line НСП 0% : 0.00 [23:51:05]line НСП 1,50% : 0.00 [23:51:05]line НСП 0,50% : 0.00 [23:51:06]line НСП 5% : 0.00 [23:51:06]line НСП 3% : 0.00 [23:51:06]line НСП 2% : 0.00 [23:51:06]line НСП 1% : 0.00 [23:51:06]line ИТОГИ ВОЗВРАТ РАСХОДА [23:51:06]line Чеков: 0 [23:51:06]line Общий итог: 0.00 [23:51:06]line Итого наличными: 0.00 [23:51:06]line Итого безнал.: 0.00 [23:51:06]line НДС 0% : 0.00 [23:51:06]line НДС 12% : 0.00 [23:51:06]line НСП 0% : 0.00 [23:51:06]line НСП 1,50% : 0.00 [23:51:06]line НСП 0,50% : 0.00 [23:51:06]line НСП 5% : 0.00 [23:51:06]line НСП 3% : 0.00 [23:51:06]line НСП 2% : 0.00 [23:51:06]line НСП 1% : 0.00 [23:51:06]line Сумма внесений: 0.00 [23:51:06]line Сумма выплат: 0.00 [23:51:06]line Нал. в кассе: 59541.00 [23:51:06]line НС Приход: 70479003.45 [23:51:06]line НС Возвр.Прихода: 837831.00 [23:51:06]line НС Расход: 0.00 [23:51:06]line НС Возвр.Расхода: 0.00 [23:51:06]line ФД: 72924 [23:51:06]line ФМ: 0000000000874662 [23:51:06]line ФПД: 156272629604699 [23:51:06]written 0, free lines is 4095 [23:51:06]recv_with_timeout no data received [23:51:06]Write to MH i2c: 01 00 00 1E 01 1F [23:51:06]Write i2c OK [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: 01 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: 01 07 00 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: 01 07 00 1E 01 00 00 00 00 00 7F 0A AF [23:51:06]RasterBufferAndPrint [23:51:06]line [23:51:06]line [23:51:06]line [23:51:06]line [23:51:06]line [23:51:06]written 0, free lines is 2771 [23:51:06]MH_Cut [23:51:06]Write to MH i2c: D1 01 00 25 01 01 F8 [23:51:06]Write i2c OK [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: D1 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: D1 01 00 [23:51:06]MH_I2C_Read... [23:51:06]Read from MH i2c: D1 01 00 25 01 00 F7 [23:51:06]Write to MH i2c: 01 00 00 26 01 27 [23:51:06]Write i2c OK [23:51:07]MH_I2C_Read... [23:51:07]*** Cut start [23:51:07]*** Partial cut [23:51:07]*** CUTSNS_PIN = 1 [23:51:08]*** CUTSNS_PIN = 0 [23:51:08]*** Brake cut motor [23:51:08]Read from MH i2c: 01 [23:51:08]MH_I2C_Read... [23:51:08]*** Stop cut motor [23:51:08]*** Cut end [23:51:08]Read from MH i2c: 01 07 00 [23:51:08]MH_I2C_Read... [23:51:08]Read from MH i2c: 01 07 00 26 01 00 00 00 00 00 FF 0F 3C [23:51:08]process_action close_shift done [23:51:08]requested_data is exist [23:51:08]produce_requested_data [23:51:08]requested_item fd.num is exist - process it [23:51:08]SAM_PROTO_GetFieldsCounters [23:51:08]wFMCommunicate request_size=4 [23:51:08]MH_SAM_APDU [23:51:08]CAPDU: 80 13 00 00 [23:51:08]Write to MH i2c: E2 08 00 27 01 80 13 00 00 00 00 00 00 A4 [23:51:08]Write i2c OK [23:51:08]MH_I2C_Read... [23:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:08]Read from MH i2c: E2 [23:51:08]MH_I2C_Read... [23:51:08]Read from MH i2c: E2 62 00 [23:51:08]MH_I2C_Read... [23:51:08]Read from MH i2c: E2 62 00 27 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DC 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [23:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DC 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:09]wFMCommunicate OK [23:51:09]SAM_PROTO_GetFieldsCounters done [23:51:09]requested_item shift.num is exist - process it [23:51:09]requested_item shift.opened is exist - process it [23:51:09]req_shift_opened [23:51:09]FM_GetShiftState [23:51:09]SAM_PROTO_GetShiftState [23:51:09]wFMCommunicate request_size=4 [23:51:09]MH_SAM_APDU [23:51:09]CAPDU: 80 13 01 00 [23:51:09]Write to MH i2c: E2 08 00 28 01 80 13 01 00 00 00 00 00 A6 [23:51:09]Write i2c OK [23:51:09]MH_I2C_Read... [23:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:09]Read from MH i2c: E2 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: E2 0E 00 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: E2 0E 00 28 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B1 [23:51:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:51:09]wFMCommunicate OK [23:51:09]SAM_PROTO_GetShiftState done [23:51:09]FM_GetShiftState done [23:51:09]req_shift_opened done [23:51:09]requested_item shift.open_date is exist - process it [23:51:09]req_shift_open_date [23:51:09]FM_GetShiftState [23:51:09]SAM_PROTO_GetShiftState [23:51:09]wFMCommunicate request_size=4 [23:51:09]MH_SAM_APDU [23:51:09]CAPDU: 80 13 01 00 [23:51:09]Write to MH i2c: E2 08 00 29 01 80 13 01 00 00 00 00 00 A7 [23:51:09]Write i2c OK [23:51:09]MH_I2C_Read... [23:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:09]Read from MH i2c: E2 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: E2 0E 00 [23:51:09]MH_I2C_Read... [23:51:09]Read from MH i2c: E2 0E 00 29 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B2 [23:51:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:51:09]wFMCommunicate OK [23:51:09]SAM_PROTO_GetShiftState done [23:51:09]FM_GetShiftState done [23:51:09]req_shift_open_date done [23:51:09]produce_requested_data done [23:51:09]produce_requested_data return {"fd.num":72924,"shift.num":556,"shift.opened":0,"shift.open_date":0} [23:51:09]process_action_free close_shift [23:51:09]json_value_free [23:51:09]json_value_free done [23:51:09]process_json_proto returns [23:51:09]Send response to host [23:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":72924,"shift.num":556,"shift.opened":0,"shift.open_date":0}}} [23:51:09]free response buf [23:51:09]execute_script done [23:51:09]execute_script returns [23:51:09]free content buf [23:51:09]Sock 7.Close socket [23:51:09]Sock 7.Thread stoped [23:51:10]ConnectInit Can't take IP for lk.salyk.kg [23:51:10]CommunicateWithHost connect error [23:51:10]CommunicateWithHost err = -1 [23:51:10]OFD Sender: Server communicate error [23:51:15]OFD Sender: Processing packet 72924 [packets to send 279, broken 278] [23:51:15]ProducePacketName [23:51:15]name=ofd_packets/00072924 [23:51:15]OFD Sender: To server: pG, [23:51:15]CommunicateWithHost lk.salyk.kg:30040 [23:51:15]ConnectInit lk.salyk.kg [23:51:24]recv_with_timeout no data received [23:51:35]Connected sock=10 [23:51:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 86 05 00 00 9A 2D 7E 05 94 20 5A 05 01 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A2 D1 83 D1 80 D0 B3 D1 83 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 58 C6 22 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 AA 04 DC 04 6E 04 04 00 A0 00 00 00 69 04 A3 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DC 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8E 21 0E 93 61 5B 2E 3A 92 D9 D9 E7 0D 10 [23:51:41]recv_with_timeout no data received [23:51:42]recv_with_timeout no data received [23:51:42]CommunicateWithHost answer receiving error [23:51:42]CommunicateWithHost err = -3 [23:51:42]OFD Sender: Server communicate error [23:51:47]OFD Sender: Processing packet 72924 [packets to send 279, broken 278] [23:51:47]ProducePacketName [23:51:47]name=ofd_packets/00072924 [23:51:47]OFD Sender: To server: pG, [23:51:47]CommunicateWithHost lk.salyk.kg:30040 [23:51:47]ConnectInit lk.salyk.kg [23:51:52]Connected sock=10 [23:51:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 86 05 00 00 9A 2D 7E 05 94 20 5A 05 01 00 05 00 72 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A2 D1 83 D1 80 D0 B3 D1 83 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F4 03 04 00 58 C6 22 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 AA 04 DC 04 6E 04 04 00 A0 00 00 00 69 04 A3 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 6A 04 9F 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DC 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 8E 21 0E 93 61 5B 2E 3A 92 D9 D9 E7 0D 10 [23:51:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 76 64 47 00 15 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DC 1C 01 00 F4 03 04 00 50 71 22 67 B6 04 01 00 00 A2 09 0F 03 BF 30 D0 98 [23:51:56]CommunicateWithHost err = 0 [23:51:56]CheckOFDResponse [23:51:56]1017 (14) - 77093643461234 [23:51:56]1041 (16) - 0000000000874662 [23:51:56]1040 (4) - 72924 [23:51:56]1012 (4) - 30.10.2024 17:48 [23:51:56]1206 (1) - 0 [23:51:56]OFD Sender: Remove packet 72924 [23:51:56]ProducePacketName [23:51:56]name=ofd_packets/00072924 [23:51:56]NVStorageDeleteData [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:10]recv_with_timeout no data received [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]recv_with_timeout no data received [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:42]recv_with_timeout no data received [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:53]recv_with_timeout no data received [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:13]recv_with_timeout no data received [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:28]recv_with_timeout no data received [23:53:31]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:42]recv_with_timeout no data received [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:56]recv_with_timeout no data received [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:10]recv_with_timeout no data received [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:23]recv_with_timeout no data received [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:37]recv_with_timeout no data received [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]recv_with_timeout no data received [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:07]recv_with_timeout no data received [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:21]recv_with_timeout no data received [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:38]recv_with_timeout no data received [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:54]recv_with_timeout no data received [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:46]recv_with_timeout no data received [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:46]recv_with_timeout no data received [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:17]recv_with_timeout no data received [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:54]recv_with_timeout no data received [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:44]recv_with_timeout no data received [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:35]recv_with_timeout no data received [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:33]recv_with_timeout no data received [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:19]recv_with_timeout no data received [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:36]recv_with_timeout no data received [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:55]recv_with_timeout no data received [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:22]recv_with_timeout no data received [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:06:59]recv_with_timeout no data received [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:33]accept exits with 9 [00:07:33]New connection [00:07:33]New thread 3066617188 created [00:07:33]Thread 3066473828 joined [00:07:33]Waiting for new connection... [00:07:33] Sock 9.Parse request [00:07:33]Sock 9.Check first char [00:07:33]Sock 9.First char is OK [00:07:33]request: POST /json_proto HTTP/1.0 [00:07:33]Method: POST [00:07:33]URL: /json_proto [00:07:33]Method is POST - this is cgi request [00:07:33]url: /json_proto [00:07:33]query_string will be loaded in cgi processing [00:07:33]execute_cgi json_proto POST (null) [00:07:33]execute_cgi path=json_proto method=POST [00:07:33]POST find Content-Length [00:07:33]Host: 172.17.43.195:8080 [00:07:33]Content-Length: 215 [00:07:33]Content-Type: application/json [00:07:33] [00:07:33]POST finish read [00:07:33]Found Content-Length = 215 [00:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:33]execute_script... [00:07:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:33]POST & json_proto [00:07:33]process_json_proto [00:07:33]json parsed OK: [00:07:33]protocol is kg_v1.0 [00:07:33]action value=get_value [00:07:33]process_action get_value [00:07:33]cmd_get_value [00:07:33]process_action get_value done [00:07:33]requested_data is exist [00:07:33]produce_requested_data [00:07:33]requested_item kkm.sn is exist - process it [00:07:33]requested_item kkm.ver is exist - process it [00:07:33]requested_item fm.sn is exist - process it [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 11 00 00 [00:07:33]Write to MH i2c: E2 08 00 2A 01 80 11 00 00 00 00 00 00 A5 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 17 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 17 00 2A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F9 [00:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:07:33]wFMCommunicate OK [00:07:33]requested_item fd.num is exist - process it [00:07:33]SAM_PROTO_GetFieldsCounters [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 13 00 00 [00:07:33]Write to MH i2c: E2 08 00 2B 01 80 13 00 00 00 00 00 00 A8 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 62 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 62 00 2B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DC 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [00:07:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DC 1C 01 00 0E 04 04 00 2C 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:34]wFMCommunicate OK [00:07:34]SAM_PROTO_GetFieldsCounters done [00:07:34]requested_item shift.num is exist - process it [00:07:34]requested_item shift.opened is exist - process it [00:07:34]req_shift_opened [00:07:34]FM_GetShiftState [00:07:34]SAM_PROTO_GetShiftState [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 13 01 00 [00:07:34]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 0E 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 0E 00 2C 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B5 [00:07:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:34]wFMCommunicate OK [00:07:34]SAM_PROTO_GetShiftState done [00:07:34]FM_GetShiftState done [00:07:34]req_shift_opened done [00:07:34]requested_item shift.open_date is exist - process it [00:07:34]req_shift_open_date [00:07:34]FM_GetShiftState [00:07:34]SAM_PROTO_GetShiftState [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 13 01 00 [00:07:34]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 0E 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 0E 00 2D 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B6 [00:07:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:34]wFMCommunicate OK [00:07:34]SAM_PROTO_GetShiftState done [00:07:34]FM_GetShiftState done [00:07:34]req_shift_open_date done [00:07:34]produce_requested_data done [00:07:34]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72924,"shift.num":556,"shift.opened":0,"shift.open_date":0} [00:07:34]process_action_free get_value [00:07:34]json_value_free [00:07:34]json_value_free done [00:07:34]process_json_proto returns [00:07:34]Send response to host [00:07:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72924,"shift.num":556,"shift.opened":0,"shift.open_date":0}}} [00:07:34]free response buf [00:07:34]execute_script done [00:07:34]execute_script returns [00:07:34]free content buf [00:07:34]Sock 9.Close socket [00:07:34]Sock 9.Thread stoped [00:07:34]accept exits with 7 [00:07:34]New connection [00:07:34]New thread 3066473828 created [00:07:34]Thread 3066617188 joined [00:07:34]Waiting for new connection... [00:07:34] Sock 7.Parse request [00:07:34]Sock 7.Check first char [00:07:34]Sock 7.First char is OK [00:07:34]request: POST /json_proto HTTP/1.0 [00:07:34]Method: POST [00:07:34]URL: /json_proto [00:07:34]Method is POST - this is cgi request [00:07:34]url: /json_proto [00:07:34]query_string will be loaded in cgi processing [00:07:34]execute_cgi json_proto POST (null) [00:07:34]execute_cgi path=json_proto method=POST [00:07:34]POST find Content-Length [00:07:34]Host: 172.17.43.195:8080 [00:07:34]Content-Length: 331 [00:07:34]Content-Type: application/json [00:07:34] [00:07:34]POST finish read [00:07:34]Found Content-Length = 331 [00:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:34]execute_script... [00:07:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:34]POST & json_proto [00:07:34]process_json_proto [00:07:34]json parsed OK: [00:07:34]protocol is kg_v1.0 [00:07:34]action value=get_value [00:07:34]process_action get_value [00:07:34]cmd_get_value [00:07:34]process_action get_value done [00:07:34]requested_data is exist [00:07:34]produce_requested_data [00:07:34]requested_item fm.sale.total is exist - process it [00:07:34]SAM_PROTO_GetFMData [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 13 03 00 [00:07:34]Write to MH i2c: E2 08 00 2E 01 80 13 03 00 00 00 00 00 AE [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 2E 01 00 C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 7B [00:07:34]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [00:07:34]wFMCommunicate OK [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 17 00 00 [00:07:34]Write to MH i2c: E2 08 00 2F 01 80 17 00 00 00 00 00 00 B0 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 2F 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 30 [00:07:35]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:35]wFMCommunicate OK [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 30 01 80 17 00 00 00 00 00 00 B1 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 30 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [00:07:35]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:35]wFMCommunicate OK [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 31 01 80 17 00 00 00 00 00 00 B2 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 31 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2A [00:07:35]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:35]wFMCommunicate OK [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 32 01 80 17 00 00 00 00 00 00 B3 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 E1 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 E1 00 32 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 [00:07:35]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:36]wFMCommunicate OK [00:07:36]SAM_PROTO_GetFMData done [00:07:36]requested_item fm.sale_refund.total is exist - process it [00:07:36]requested_item fm.buy.total is exist - process it [00:07:36]requested_item shift.sale.total is exist - process it [00:07:36]SAM_PROTO_GetShiftData [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 13 02 00 [00:07:36]Write to MH i2c: E2 08 00 33 01 80 13 02 00 00 00 00 00 B2 [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 33 01 00 B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 05 [00:07:36]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 A0 00 00 00 69 04 9C 00 6F 04 04 00 9F 00 00 00 B1 04 03 00 2A 25 9C 70 04 03 00 84 2D 5D 72 04 03 00 A6 F7 3E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B3 95 10 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 61 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 50 53 02 70 04 03 00 50 53 02 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 38 3F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:07:36]wFMCommunicate OK [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 17 00 00 [00:07:36]Write to MH i2c: E2 08 00 34 01 80 17 00 00 00 00 00 00 B5 [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 34 01 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 BE [00:07:36]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 90 00 [00:07:36]wFMCommunicate OK [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 17 00 00 [00:07:36]Write to MH i2c: E2 08 00 35 01 80 17 00 00 00 00 00 00 B6 [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:36]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 35 01 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 DE [00:07:37]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 90 00 [00:07:37]wFMCommunicate OK [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 17 00 00 [00:07:37]Write to MH i2c: E2 08 00 36 01 80 17 00 00 00 00 00 00 B7 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 FD 00 36 01 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 2F [00:07:37]RAPDU: EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 90 00 [00:07:37]wFMCommunicate OK [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 17 00 00 [00:07:37]Write to MH i2c: E2 08 00 37 01 80 17 00 00 00 00 00 00 B8 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 D6 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 D6 00 37 01 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9A [00:07:37]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:37]wFMCommunicate OK [00:07:37]SAM_PROTO_GetShiftData done [00:07:37]requested_item shift.sale.total_cash is exist - process it [00:07:37]requested_item shift.sale_refund.total is exist - process it [00:07:37]requested_item shift.sale_refund.total_cash is exist - process it [00:07:37]requested_item shift.buy.total is exist - process it [00:07:37]requested_item shift.buy.total_cash is exist - process it [00:07:37]produce_requested_data done [00:07:37]produce_requested_data return {"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:37]process_action_free get_value [00:07:37]json_value_free [00:07:37]json_value_free done [00:07:37]process_json_proto returns [00:07:37]Send response to host [00:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":102331.30,"shift.sale.total_cash":61065.00,"shift.sale_refund.total":1524.00,"shift.sale_refund.total_cash":1524.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:37]free response buf [00:07:37]execute_script done [00:07:37]execute_script returns [00:07:37]free content buf [00:07:37]Sock 7.Close socket [00:07:37]Sock 7.Thread stoped [00:07:37]accept exits with 9 [00:07:37]New connection [00:07:37]New thread 3066617188 created [00:07:37]Thread 3066473828 joined [00:07:37]Waiting for new connection... [00:07:37] Sock 9.Parse request [00:07:37]Sock 9.Check first char [00:07:37]Sock 9.First char is OK [00:07:37]request: POST /json_proto HTTP/1.0 [00:07:37]Method: POST [00:07:37]URL: /json_proto [00:07:37]Method is POST - this is cgi request [00:07:37]url: /json_proto [00:07:37]query_string will be loaded in cgi processing [00:07:37]execute_cgi json_proto POST (null) [00:07:37]execute_cgi path=json_proto method=POST [00:07:37]POST find Content-Length [00:07:37]Host: 172.17.43.195:8080 [00:07:37]Content-Length: 259 [00:07:37]Content-Type: application/json [00:07:37] [00:07:37]POST finish read [00:07:37]Found Content-Length = 259 [00:07:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:37]execute_script... [00:07:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:37]POST & json_proto [00:07:37]process_json_proto [00:07:37]json parsed OK: [00:07:37]protocol is kg_v1.0 [00:07:37]action value=open_shift [00:07:37]process_action open_shift [00:07:37]cmd_open_shift [00:07:37]MH_GetDate [00:07:37]Write to MH i2c: F0 00 00 38 01 28 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 09 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 09 00 38 01 00 4A CA 22 67 74 2C AD 66 81 [00:07:37]GetLastDocTimeStamp 1730332248 [00:07:37]current date 1730333258 [00:07:37]FM_GetShiftState [00:07:37]SAM_PROTO_GetShiftState [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 13 01 00 [00:07:37]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 0E 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 0E 00 39 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C2 [00:07:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:37]wFMCommunicate OK [00:07:37]SAM_PROTO_GetShiftState done [00:07:37]FM_GetShiftState done [00:07:37]KKMCreateOpenShiftDocument [00:07:37]Load OK [00:07:37]Malloc new data [00:07:37]MH_GetDate [00:07:37]Write to MH i2c: F0 00 00 3A 01 2A [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 09 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 09 00 3A 01 00 4A CA 22 67 74 2C AD 66 83 [00:07:37]Malloc new data [00:07:37]KKMCreateOpenShiftDocument OK [00:07:37]KKMSetOpenShiftData OK [00:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=203 [00:07:37]tlvbuf is 015852A0 [00:07:37]KKMLoadAndSignOpenShiftData [00:07:37]SAM_PROTO_ProcessDocument [00:07:37]wFMCommunicate request_size=9 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 15 01 00 04 02 00 CB 00 [00:07:37]Write to MH i2c: E2 0C 00 3B 01 80 15 01 00 04 00 02 00 CB 00 00 00 90 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 03 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [00:07:37]RAPDU: 90 00 [00:07:37]wFMCommunicate OK [00:07:37]wFMCommunicate request_size=23 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:07:37]Write to MH i2c: E2 1A 00 3C 01 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 B2 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 03 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [00:07:37]RAPDU: 90 00 [00:07:37]wFMCommunicate OK [00:07:37]wFMCommunicate request_size=30 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 [00:07:37]Write to MH i2c: E2 21 00 3D 01 80 15 02 00 19 00 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 00 00 99 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [00:07:38]RAPDU: 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=91 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 15 02 00 56 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 [00:07:38]Write to MH i2c: E2 5E 00 3E 01 80 15 02 00 56 00 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 00 00 C6 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [00:07:38]RAPDU: 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=51 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:07:38]Write to MH i2c: E2 36 00 3F 01 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 67 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [00:07:38]RAPDU: 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=13 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 15 02 00 08 F4 03 04 00 4A CA 22 67 [00:07:38]Write to MH i2c: E2 10 00 40 01 80 15 02 00 08 00 F4 03 04 00 4A CA 22 67 00 00 69 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [00:07:38]RAPDU: 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=25 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [00:07:38]Write to MH i2c: E2 1C 00 41 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 23 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [00:07:38]RAPDU: 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 15 03 00 [00:07:38]Write to MH i2c: E2 08 00 42 01 80 15 03 00 00 00 00 00 C4 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]OFD Sender: No OFD packet to send [00:07:38]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 38 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 38 00 42 01 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DD 1C 01 00 0E 04 04 00 2D 02 00 00 35 04 06 00 4D 94 CB 7D A1 7B 90 00 FF [00:07:38]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DD 1C 01 00 0E 04 04 00 2D 02 00 00 35 04 06 00 4D 94 CB 7D A1 7B 90 00 [00:07:38]wFMCommunicate OK [00:07:38]SAM_PROTO_ProcessDocument answer len = 51 [00:07:38]SAM_PROTO_ProcessDocument done [00:07:38]SetTLVBufToDocument [00:07:38]Processing tag 1209 (04B9) [00:07:38]Malloc new data [00:07:38]Processing tag 1041 (0411) [00:07:38]Processing tag 1040 (0410) [00:07:38]Malloc new data [00:07:38]Processing tag 1038 (040E) [00:07:38]Malloc new data [00:07:38]Processing tag 1077 (0435) [00:07:38]Malloc new data [00:07:38]SetTLVBufToDocument err=0 [00:07:38]KKMLoadAndSignOpenShiftData store KKM data [00:07:38]KKMLoadAndSignOpenShiftData err=0 [00:07:38]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Эргешова З. Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 Место: АЗС № 113 "Партнер Нефть" 31.10.2024 00:07 Смена: 557 РНМ: 0000000000091644 ЗНМ: 0300000087 ФД: 72925 ФМ: 0000000000874662 ФПД: 85301464506747 [00:07:38]StoreToDocumentArchive [00:07:38]shift 557 fd 72925 [00:07:38]Create dir for shift 0557 [00:07:38]save to /storage/0557/doc_00072925 [00:07:38]save last doc name /storage/0557/doc_00072925 to /storage/kkm_last_doc_name [00:07:38]save OK [00:07:38]Clear old archive folders... [00:07:38]Remove dir /storage/0556 [00:07:38]opendir ok [00:07:38]file . [00:07:38]file .. [00:07:38]file doc_00072763 [00:07:38]remove file /storage/0556/doc_00072763 [00:07:38]file doc_00072764 [00:07:38]remove file /storage/0556/doc_00072764 [00:07:38]file doc_00072765 [00:07:38]remove file /storage/0556/doc_00072765 [00:07:38]file doc_00072766 [00:07:38]remove file /storage/0556/doc_00072766 [00:07:38]file doc_00072767 [00:07:38]remove file /storage/0556/doc_00072767 [00:07:38]file doc_00072768 [00:07:38]remove file /storage/0556/doc_00072768 [00:07:38]file doc_00072769 [00:07:38]remove file /storage/0556/doc_00072769 [00:07:38]file doc_00072770 [00:07:38]remove file /storage/0556/doc_00072770 [00:07:38]file doc_00072771 [00:07:38]remove file /storage/0556/doc_00072771 [00:07:38]file doc_00072772 [00:07:38]remove file /storage/0556/doc_00072772 [00:07:38]file doc_00072773 [00:07:38]remove file /storage/0556/doc_00072773 [00:07:38]file doc_00072774 [00:07:38]remove file /storage/0556/doc_00072774 [00:07:38]file doc_00072775 [00:07:38]remove file /storage/0556/doc_00072775 [00:07:38]file doc_00072776 [00:07:38]remove file /storage/0556/doc_00072776 [00:07:38]file doc_00072777 [00:07:38]remove file /storage/0556/doc_00072777 [00:07:38]file doc_00072778 [00:07:38]remove file /storage/0556/doc_00072778 [00:07:38]file doc_00072779 [00:07:38]remove file /storage/0556/doc_00072779 [00:07:38]file doc_00072780 [00:07:38]remove file /storage/0556/doc_00072780 [00:07:38]file doc_00072781 [00:07:38]remove file /storage/0556/doc_00072781 [00:07:38]file doc_00072782 [00:07:38]remove file /storage/0556/doc_00072782 [00:07:38]file doc_00072783 [00:07:38]remove file /storage/0556/doc_00072783 [00:07:38]file doc_00072784 [00:07:38]remove file /storage/0556/doc_00072784 [00:07:38]file doc_00072785 [00:07:38]remove file /storage/0556/doc_00072785 [00:07:38]file doc_00072786 [00:07:38]remove file /storage/0556/doc_00072786 [00:07:38]file doc_00072787 [00:07:38]remove file /storage/0556/doc_00072787 [00:07:38]file doc_00072788 [00:07:38]remove file /storage/0556/doc_00072788 [00:07:38]file doc_00072789 [00:07:38]remove file /storage/0556/doc_00072789 [00:07:38]file doc_00072790 [00:07:38]remove file /storage/0556/doc_00072790 [00:07:38]file doc_00072791 [00:07:38]remove file /storage/0556/doc_00072791 [00:07:38]file doc_00072792 [00:07:38]remove file /storage/0556/doc_00072792 [00:07:38]file doc_00072793 [00:07:38]remove file /storage/0556/doc_00072793 [00:07:38]file doc_00072794 [00:07:38]remove file /storage/0556/doc_00072794 [00:07:38]file doc_00072795 [00:07:38]remove file /storage/0556/doc_00072795 [00:07:38]file doc_00072796 [00:07:38]remove file /storage/0556/doc_00072796 [00:07:38]file doc_00072797 [00:07:38]remove file /storage/0556/doc_00072797 [00:07:38]file doc_00072798 [00:07:38]remove file /storage/0556/doc_00072798 [00:07:38]file doc_00072799 [00:07:38]remove file /storage/0556/doc_00072799 [00:07:38]file doc_00072800 [00:07:38]remove file /storage/0556/doc_00072800 [00:07:38]file doc_00072802 [00:07:38]remove file /storage/0556/doc_00072802 [00:07:38]file doc_00072803 [00:07:38]remove file /storage/0556/doc_00072803 [00:07:38]file doc_00072804 [00:07:38]remove file /storage/0556/doc_00072804 [00:07:38]file doc_00072805 [00:07:38]remove file /storage/0556/doc_00072805 [00:07:38]file doc_00072806 [00:07:38]remove file /storage/0556/doc_00072806 [00:07:38]file doc_00072807 [00:07:38]remove file /storage/0556/doc_00072807 [00:07:38]file doc_00072808 [00:07:38]remove file /storage/0556/doc_00072808 [00:07:38]file doc_00072809 [00:07:38]remove file /storage/0556/doc_00072809 [00:07:38]file doc_00072810 [00:07:38]remove file /storage/0556/doc_00072810 [00:07:38]file doc_00072811 [00:07:38]remove file /storage/0556/doc_00072811 [00:07:38]file doc_00072812 [00:07:38]remove file /storage/0556/doc_00072812 [00:07:38]file doc_00072813 [00:07:38]remove file /storage/0556/doc_00072813 [00:07:38]file doc_00072814 [00:07:38]remove file /storage/0556/doc_00072814 [00:07:38]file doc_00072815 [00:07:38]remove file /storage/0556/doc_00072815 [00:07:38]file doc_00072816 [00:07:38]remove file /storage/0556/doc_00072816 [00:07:38]file doc_00072817 [00:07:38]remove file /storage/0556/doc_00072817 [00:07:38]file doc_00072818 [00:07:38]remove file /storage/0556/doc_00072818 [00:07:38]file doc_00072819 [00:07:38]remove file /storage/0556/doc_00072819 [00:07:38]file doc_00072820 [00:07:38]remove file /storage/0556/doc_00072820 [00:07:38]file doc_00072821 [00:07:38]remove file /storage/0556/doc_00072821 [00:07:38]file doc_00072822 [00:07:38]remove file /storage/0556/doc_00072822 [00:07:38]file doc_00072823 [00:07:38]remove file /storage/0556/doc_00072823 [00:07:38]file doc_00072824 [00:07:38]remove file /storage/0556/doc_00072824 [00:07:38]file doc_00072825 [00:07:38]remove file /storage/0556/doc_00072825 [00:07:38]file doc_00072826 [00:07:38]remove file /storage/0556/doc_00072826 [00:07:38]file doc_00072827 [00:07:38]remove file /storage/0556/doc_00072827 [00:07:38]file doc_00072828 [00:07:38]remove file /storage/0556/doc_00072828 [00:07:38]file doc_00072829 [00:07:38]remove file /storage/0556/doc_00072829 [00:07:38]file doc_00072830 [00:07:38]remove file /storage/0556/doc_00072830 [00:07:38]file doc_00072831 [00:07:38]remove file /storage/0556/doc_00072831 [00:07:38]file doc_00072832 [00:07:38]remove file /storage/0556/doc_00072832 [00:07:38]file doc_00072833 [00:07:38]remove file /storage/0556/doc_00072833 [00:07:38]file doc_00072834 [00:07:38]remove file /storage/0556/doc_00072834 [00:07:38]file doc_00072835 [00:07:38]remove file /storage/0556/doc_00072835 [00:07:38]file doc_00072836 [00:07:38]remove file /storage/0556/doc_00072836 [00:07:38]file doc_00072837 [00:07:38]remove file /storage/0556/doc_00072837 [00:07:38]file doc_00072838 [00:07:38]remove file /storage/0556/doc_00072838 [00:07:38]file doc_00072839 [00:07:38]remove file /storage/0556/doc_00072839 [00:07:38]file doc_00072840 [00:07:38]remove file /storage/0556/doc_00072840 [00:07:38]file doc_00072841 [00:07:38]remove file /storage/0556/doc_00072841 [00:07:38]file doc_00072842 [00:07:38]remove file /storage/0556/doc_00072842 [00:07:38]file doc_00072843 [00:07:38]remove file /storage/0556/doc_00072843 [00:07:38]file doc_00072844 [00:07:38]remove file /storage/0556/doc_00072844 [00:07:38]file doc_00072845 [00:07:38]remove file /storage/0556/doc_00072845 [00:07:38]file doc_00072846 [00:07:38]remove file /storage/0556/doc_00072846 [00:07:38]file doc_00072847 [00:07:38]remove file /storage/0556/doc_00072847 [00:07:38]file doc_00072848 [00:07:38]remove file /storage/0556/doc_00072848 [00:07:38]file doc_00072849 [00:07:38]remove file /storage/0556/doc_00072849 [00:07:38]file doc_00072850 [00:07:38]remove file /storage/0556/doc_00072850 [00:07:38]file doc_00072851 [00:07:38]remove file /storage/0556/doc_00072851 [00:07:38]file doc_00072852 [00:07:38]remove file /storage/0556/doc_00072852 [00:07:38]file doc_00072853 [00:07:38]remove file /storage/0556/doc_00072853 [00:07:38]file doc_00072854 [00:07:38]remove file /storage/0556/doc_00072854 [00:07:38]file doc_00072855 [00:07:38]remove file /storage/0556/doc_00072855 [00:07:38]file doc_00072856 [00:07:38]remove file /storage/0556/doc_00072856 [00:07:38]file doc_00072857 [00:07:38]remove file /storage/0556/doc_00072857 [00:07:38]file doc_00072858 [00:07:38]remove file /storage/0556/doc_00072858 [00:07:38]file doc_00072859 [00:07:38]remove file /storage/0556/doc_00072859 [00:07:38]file doc_00072860 [00:07:38]remove file /storage/0556/doc_00072860 [00:07:38]file doc_00072861 [00:07:38]remove file /storage/0556/doc_00072861 [00:07:38]file doc_00072862 [00:07:38]remove file /storage/0556/doc_00072862 [00:07:38]file doc_00072863 [00:07:38]remove file /storage/0556/doc_00072863 [00:07:38]file doc_00072864 [00:07:38]remove file /storage/0556/doc_00072864 [00:07:38]file doc_00072865 [00:07:38]remove file /storage/0556/doc_00072865 [00:07:38]file doc_00072866 [00:07:38]remove file /storage/0556/doc_00072866 [00:07:38]file doc_00072867 [00:07:38]remove file /storage/0556/doc_00072867 [00:07:38]file doc_00072868 [00:07:38]remove file /storage/0556/doc_00072868 [00:07:38]file doc_00072869 [00:07:38]remove file /storage/0556/doc_00072869 [00:07:38]file doc_00072870 [00:07:38]remove file /storage/0556/doc_00072870 [00:07:38]file doc_00072871 [00:07:38]remove file /storage/0556/doc_00072871 [00:07:38]file doc_00072872 [00:07:38]remove file /storage/0556/doc_00072872 [00:07:38]file doc_00072873 [00:07:38]remove file /storage/0556/doc_00072873 [00:07:38]file doc_00072874 [00:07:38]remove file /storage/0556/doc_00072874 [00:07:38]file doc_00072875 [00:07:39]remove file /storage/0556/doc_00072875 [00:07:39]file doc_00072876 [00:07:39]remove file /storage/0556/doc_00072876 [00:07:39]file doc_00072877 [00:07:39]remove file /storage/0556/doc_00072877 [00:07:39]file doc_00072878 [00:07:39]remove file /storage/0556/doc_00072878 [00:07:39]file doc_00072879 [00:07:39]remove file /storage/0556/doc_00072879 [00:07:39]file doc_00072880 [00:07:39]remove file /storage/0556/doc_00072880 [00:07:39]file doc_00072881 [00:07:39]remove file /storage/0556/doc_00072881 [00:07:39]file doc_00072882 [00:07:39]remove file /storage/0556/doc_00072882 [00:07:39]file doc_00072883 [00:07:39]remove file /storage/0556/doc_00072883 [00:07:39]file doc_00072884 [00:07:39]remove file /storage/0556/doc_00072884 [00:07:39]file doc_00072885 [00:07:39]remove file /storage/0556/doc_00072885 [00:07:39]file doc_00072886 [00:07:39]remove file /storage/0556/doc_00072886 [00:07:39]file doc_00072887 [00:07:39]remove file /storage/0556/doc_00072887 [00:07:39]file doc_00072888 [00:07:39]remove file /storage/0556/doc_00072888 [00:07:39]file doc_00072889 [00:07:39]remove file /storage/0556/doc_00072889 [00:07:39]file doc_00072890 [00:07:39]remove file /storage/0556/doc_00072890 [00:07:39]file doc_00072891 [00:07:39]remove file /storage/0556/doc_00072891 [00:07:39]file doc_00072892 [00:07:39]remove file /storage/0556/doc_00072892 [00:07:39]file doc_00072893 [00:07:39]remove file /storage/0556/doc_00072893 [00:07:39]file doc_00072894 [00:07:39]remove file /storage/0556/doc_00072894 [00:07:39]file doc_00072895 [00:07:39]remove file /storage/0556/doc_00072895 [00:07:39]file doc_00072896 [00:07:39]remove file /storage/0556/doc_00072896 [00:07:39]file doc_00072897 [00:07:39]remove file /storage/0556/doc_00072897 [00:07:39]file doc_00072898 [00:07:39]remove file /storage/0556/doc_00072898 [00:07:39]file doc_00072899 [00:07:39]remove file /storage/0556/doc_00072899 [00:07:39]file doc_00072900 [00:07:39]remove file /storage/0556/doc_00072900 [00:07:39]file doc_00072901 [00:07:39]remove file /storage/0556/doc_00072901 [00:07:39]file doc_00072902 [00:07:39]remove file /storage/0556/doc_00072902 [00:07:39]file doc_00072903 [00:07:39]remove file /storage/0556/doc_00072903 [00:07:39]file doc_00072904 [00:07:39]remove file /storage/0556/doc_00072904 [00:07:39]file doc_00072905 [00:07:39]remove file /storage/0556/doc_00072905 [00:07:39]file doc_00072906 [00:07:39]remove file /storage/0556/doc_00072906 [00:07:39]file doc_00072907 [00:07:39]remove file /storage/0556/doc_00072907 [00:07:39]file doc_00072908 [00:07:39]remove file /storage/0556/doc_00072908 [00:07:39]file doc_00072909 [00:07:39]remove file /storage/0556/doc_00072909 [00:07:39]file doc_00072910 [00:07:39]remove file /storage/0556/doc_00072910 [00:07:39]file doc_00072911 [00:07:39]remove file /storage/0556/doc_00072911 [00:07:39]file doc_00072912 [00:07:39]remove file /storage/0556/doc_00072912 [00:07:39]file doc_00072913 [00:07:39]remove file /storage/0556/doc_00072913 [00:07:39]file doc_00072914 [00:07:39]remove file /storage/0556/doc_00072914 [00:07:39]file doc_00072915 [00:07:39]remove file /storage/0556/doc_00072915 [00:07:39]file doc_00072916 [00:07:39]remove file /storage/0556/doc_00072916 [00:07:39]file doc_00072917 [00:07:39]remove file /storage/0556/doc_00072917 [00:07:39]file doc_00072918 [00:07:39]remove file /storage/0556/doc_00072918 [00:07:39]file doc_00072919 [00:07:39]remove file /storage/0556/doc_00072919 [00:07:39]file doc_00072920 [00:07:39]remove file /storage/0556/doc_00072920 [00:07:39]file doc_00072921 [00:07:39]remove file /storage/0556/doc_00072921 [00:07:39]file doc_00072922 [00:07:39]remove file /storage/0556/doc_00072922 [00:07:39]file doc_00072923 [00:07:39]remove file /storage/0556/doc_00072923 [00:07:39]file doc_00072924 [00:07:39]remove file /storage/0556/doc_00072924 [00:07:39]remove dir /storage/0556 [00:07:39]ProcessDocumentItem done err = 0, tmpTLVsize=254 [00:07:39]tlvbuf is 015EA690 [00:07:39]SAM_PROTO_ClearQueue [00:07:39]wFMCommunicate request_size=4 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 09 00 00 [00:07:39]Write to MH i2c: E2 08 00 43 01 80 09 00 00 00 00 00 00 B6 [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 03 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [00:07:39]RAPDU: 90 00 [00:07:39]wFMCommunicate OK [00:07:39]SAM_PROTO_ClearQueue done [00:07:39]KKMCreateOFDPacket [00:07:39]OFDProtocolAddRootSTLVToBuf [00:07:39]FM_MakeSignedData [00:07:39]FM_MakeSignedData [00:07:39]SAM_PROTO_SignData [00:07:39]wFMCommunicate request_size=4 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 0D 01 02 [00:07:39]Write to MH i2c: E2 08 00 44 01 80 0D 01 02 00 00 00 00 BE [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 03 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [00:07:39]RAPDU: 90 00 [00:07:39]wFMCommunicate OK [00:07:39]wFMCommunicate request_size=255 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 0D 02 02 FA 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 4A CA 22 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DD 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 [00:07:39]Write to MH i2c: E2 02 01 45 01 80 0D 02 02 FA 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 4A CA 22 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DD 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 00 00 3B [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 03 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [00:07:40]RAPDU: 90 00 [00:07:40]wFMCommunicate OK [00:07:40]wFMCommunicate request_size=13 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 0D 02 02 08 06 00 4D 94 CB 7D A1 7B [00:07:40]Write to MH i2c: E2 10 00 46 01 80 0D 02 02 08 00 06 00 4D 94 CB 7D A1 7B 00 00 1C [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 03 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [00:07:40]RAPDU: 90 00 [00:07:40]wFMCommunicate OK [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 0D 03 02 [00:07:40]Write to MH i2c: E2 08 00 47 01 80 0D 03 02 00 00 00 00 C3 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 0B 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 0B 00 47 01 00 7F ED C4 DC DC C0 10 A5 90 00 21 [00:07:40]RAPDU: 7F ED C4 DC DC C0 10 A5 90 00 [00:07:40]wFMCommunicate OK [00:07:40]SAM_PROTO_SignData done [00:07:40]FM_MakeSignedData done [00:07:40]CreateOFDProtocolMessage [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 11 00 00 [00:07:40]Write to MH i2c: E2 08 00 48 01 80 11 00 00 00 00 00 00 C3 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 17 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 17 00 48 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 17 [00:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:07:40]wFMCommunicate OK [00:07:40]CreateOFDProtocolMessage done [00:07:40]OFDSenderStorePacket 72925 [00:07:40]StoreOFDPacket docnum=72925 [00:07:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 12 01 00 00 A1 49 0A 01 89 CA 5A 02 01 00 02 00 FE 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 4A CA 22 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DD 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 4D 94 CB 7D A1 7B 7F ED C4 DC DC C0 10 A5 [00:07:40]CheckFolder [00:07:40]dirname=/storage/ofd_packets [00:07:40]CheckFolder done [00:07:40]ProducePacketName [00:07:40]name=ofd_packets/00072925 [00:07:40]NVStorageSaveData ofd_packets/00072925 [00:07:40]File name is /storage/ofd_packets/00072925 [00:07:40]Write 304 bytes [00:07:40]NVStorageSaveData done [00:07:40]OFDSenderStorePacket done [00:07:40]KKMCreateOFDPacket done [00:07:40]NVStorageSaveData kkm_last_timestamp [00:07:40]File name is /storage/kkm_last_timestamp [00:07:40]Write 4 bytes [00:07:40]NVStorageSaveData done [00:07:40]ExternCall_PrintAddStr [00:07:40]wPrintStart [00:07:40]Write to MH i2c: 01 00 00 49 01 4A [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: 01 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: 01 07 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: 01 07 00 49 01 00 00 00 00 00 FF 0F 5F [00:07:40]RasterBufferAndPrint [00:07:40]line Отчет об открытии смены [00:07:40]line ФФД: 1.0 [00:07:40]line ИНН: 02508201610067 [00:07:40]line Кассир: Эргешова З. [00:07:40]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:07:40]line Место: АЗС № 113 "Партнер Нефть" [00:07:40]line 31.10.2024 00:07 [00:07:40]line Смена: 557 [00:07:40]line РНМ: 0000000000091644 [00:07:40]line ЗНМ: 0300000087 [00:07:40]line ФД: 72925 [00:07:40]line ФМ: 0000000000874662 [00:07:40]line ФПД: 85301464506747 [00:07:40]written 0, free lines is 4095 [00:07:40]OFD Sender: Processing packet 72925 [packets to send 279, broken 278] [00:07:40]ProducePacketName [00:07:40]name=ofd_packets/00072925 [00:07:40]OFD Sender: To server: pG, [00:07:40]CommunicateWithHost lk.salyk.kg:30040 [00:07:40]ConnectInit lk.salyk.kg [00:07:40]Write to MH i2c: 01 00 00 5B 01 5C [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: 01 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: 01 07 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 60 0E D1 [00:07:40]RasterBufferAndPrint [00:07:40]line [00:07:40]line [00:07:40]line [00:07:40]line [00:07:40]line [00:07:40]written 0, free lines is 3695 [00:07:40]MH_Cut [00:07:40]Write to MH i2c: D1 01 00 62 01 01 35 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: D1 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: D1 01 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: D1 01 00 62 01 00 34 [00:07:40]Write to MH i2c: 01 00 00 63 01 64 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:41]*** Cut start [00:07:41]*** Partial cut [00:07:41]*** CUTSNS_PIN = 1 [00:07:41]*** CUTSNS_PIN = 0 [00:07:41]*** Brake cut motor [00:07:41]Read from MH i2c: 01 [00:07:41]MH_I2C_Read... [00:07:41]*** Stop cut motor [00:07:41]*** Cut end [00:07:41]Read from MH i2c: 01 07 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: 01 07 00 63 01 00 00 00 00 00 FF 0F 79 [00:07:41]process_action open_shift done [00:07:41]requested_data is exist [00:07:41]produce_requested_data [00:07:41]requested_item fd.num is exist - process it [00:07:41]SAM_PROTO_GetFieldsCounters [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 13 00 00 [00:07:41]Write to MH i2c: E2 08 00 64 01 80 13 00 00 00 00 00 00 E1 [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 62 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 62 00 64 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DD 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [00:07:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DD 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:42]wFMCommunicate OK [00:07:42]SAM_PROTO_GetFieldsCounters done [00:07:42]requested_item shift.num is exist - process it [00:07:42]requested_item shift.opened is exist - process it [00:07:42]req_shift_opened [00:07:42]FM_GetShiftState [00:07:42]SAM_PROTO_GetShiftState [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 13 01 00 [00:07:42]Write to MH i2c: E2 08 00 65 01 80 13 01 00 00 00 00 00 E3 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 0E 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 0E 00 65 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 8C [00:07:42]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [00:07:42]wFMCommunicate OK [00:07:42]SAM_PROTO_GetShiftState done [00:07:42]FM_GetShiftState done [00:07:42]req_shift_opened done [00:07:42]requested_item shift.open_date is exist - process it [00:07:42]req_shift_open_date [00:07:42]req_shift_open_date done [00:07:42]produce_requested_data done [00:07:42]produce_requested_data return {"fd.num":72925,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [00:07:42]process_action_free open_shift [00:07:42]json_value_free [00:07:42]json_value_free done [00:07:42]process_json_proto returns [00:07:42]Send response to host [00:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":72925,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [00:07:42]free response buf [00:07:42]execute_script done [00:07:42]execute_script returns [00:07:42]free content buf [00:07:42]Sock 9.Close socket [00:07:42]Sock 9.Thread stoped [00:07:42]accept exits with 7 [00:07:42]New connection [00:07:42]New thread 3066473828 created [00:07:42]Thread 3066617188 joined [00:07:42]Waiting for new connection... [00:07:42] Sock 7.Parse request [00:07:42]Sock 7.Check first char [00:07:42]Sock 7.First char is OK [00:07:42]request: POST /json_proto HTTP/1.0 [00:07:42]Method: POST [00:07:42]URL: /json_proto [00:07:42]Method is POST - this is cgi request [00:07:42]url: /json_proto [00:07:42]query_string will be loaded in cgi processing [00:07:42]execute_cgi json_proto POST (null) [00:07:42]execute_cgi path=json_proto method=POST [00:07:42]POST find Content-Length [00:07:42]Host: 172.17.43.195:8080 [00:07:42]Content-Length: 331 [00:07:42]Content-Type: application/json [00:07:42] [00:07:42]POST finish read [00:07:42]Found Content-Length = 331 [00:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:42]execute_script... [00:07:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:42]POST & json_proto [00:07:42]process_json_proto [00:07:42]json parsed OK: [00:07:42]protocol is kg_v1.0 [00:07:42]action value=get_value [00:07:42]process_action get_value [00:07:42]cmd_get_value [00:07:42]process_action get_value done [00:07:42]requested_data is exist [00:07:42]produce_requested_data [00:07:42]requested_item fm.sale.total is exist - process it [00:07:42]SAM_PROTO_GetFMData [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 13 03 00 [00:07:42]Write to MH i2c: E2 08 00 66 01 80 13 03 00 00 00 00 00 E6 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 66 01 00 C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 B3 [00:07:42]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 83 18 01 00 69 04 A3 00 6F 04 04 00 93 17 01 00 B1 04 05 00 B9 6C 16 A4 01 70 04 05 00 34 09 A5 58 01 72 04 04 00 85 63 71 4B 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B 3F 9F 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 08 DE B7 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 F0 00 00 00 B1 04 04 00 BC 6D FE 04 70 04 04 00 BC 6D FE 04 72 04 00 00 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 11 C6 87 EF 03 09 00 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 17 00 00 [00:07:42]Write to MH i2c: E2 08 00 67 01 80 17 00 00 00 00 00 00 E8 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 67 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [00:07:43]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F 50 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 68 01 80 17 00 00 00 00 00 00 E9 [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 68 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [00:07:43]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 69 01 80 17 00 00 00 00 00 00 EA [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 69 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 62 [00:07:44]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:44]wFMCommunicate OK [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 17 00 00 [00:07:44]Write to MH i2c: E2 08 00 6A 01 80 17 00 00 00 00 00 00 EB [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 E1 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 E1 00 6A 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D9 [00:07:44]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:44]wFMCommunicate OK [00:07:44]SAM_PROTO_GetFMData done [00:07:44]requested_item fm.sale_refund.total is exist - process it [00:07:44]requested_item fm.buy.total is exist - process it [00:07:44]requested_item shift.sale.total is exist - process it [00:07:44]SAM_PROTO_GetShiftData [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 13 02 00 [00:07:44]Write to MH i2c: E2 08 00 6B 01 80 13 02 00 00 00 00 00 EA [00:07:44]recv_with_timeout no data received [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 6B 01 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 5D [00:07:45]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 6C 01 80 17 00 00 00 00 00 00 ED [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 6C 01 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 F5 [00:07:45]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 6D 01 80 17 00 00 00 00 00 00 EE [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 6D 01 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 Connected sock=11 [00:07:46]05 Data to sent: F7 87 03 95 00 F6 00 70 EF 47 03 2C 09 01 00 00 F6 30 03 30 30 01 30 00 30 06 30 F7 30 03 30 00 30 00 30 6D 38 04 37 4C 34 02 36 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 36 70 32 04 12 00 01 00 00 72 00 04 A1 00 49 00 0A 00 01 04 89 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 CA 01 5A F3 02 03 01 00 00 00 02 EF 00 03 FE 09 00 00 B9 F6 04 03 01 00 01 01 00 FA 00 03 0E F7 00 03 30 00 32 00 35 EF 30 03 38 09 32 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 30 EF 31 03 36 09 31 00 30 F6 30 03 36 01 37 00 FD 03 03 F7 15 03 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 D0 05 AD F7 D1 03 80 00 D0 B3 00 D0 EF B5 03 D1 09 88 00 D0 F6 BE 03 01 00 06 F7 03 00 90 00 C0 [00:07:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 D0 00 B2 F7 D0 03 B0 00 20 00 D0 EF 97 03 2E 09 20 00 F1 F6 03 03 52 01 00 00 37 01 32 F7 30 03 30 00 30 00 31 EF 2C 03 20 09 D0 00 B3 F6 2E 03 20 01 D0 00 9A 02 D0 F7 B0 03 D1 00 80 00 D0 EF B0 03 D0 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 BA 00 D1 EF 83 03 D0 09 BB 00 D1 F6 8C 03 2C 01 20 00 D1 05 83 F7 D0 03 BB 00 2E 00 20 EF D0 03 97 09 D0 00 B0 F6 D0 03 B2 01 D0 00 BE 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 D0 01 B4 00 D1 05 81 F7 D0 03 BA 00 D0 00 B0 EF D1 03 8F 09 20 00 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 F6 31 03 31 01 38 00 06 32 F7 37 03 A3 00 04 90 2A 00 00 [00:07:46]D0 wFMCommunicate OK [00:07:46]90 wFMCommunicate request_size=4 [00:07:46]D0 MH_SAM_APDU [00:07:46]97 CAPDU: D0 80 A1 17 20 00 E2 00 84 [00:07:46]96 Write to MH i2c: 20 E2 31 08 31 00 33 6E 20 01 22 80 D0 17 9F 00 D0 00 B0 00 D1 00 80 00 D1 00 82 EF D0 [00:07:46]BD D0 Write i2c OK [00:07:46]B5 MH_I2C_Read... [00:07:46]D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 4A CA 22 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DD 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 4D 94 CB 7D A1 7B 7F ED C4 DC DC C0 10 A5 [00:07:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 6E 01 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 61 [00:07:46]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 17 00 00 [00:07:47]Write to MH i2c: E2 08 00 6F 01 80 17 00 00 00 00 00 00 F0 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 BD 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 BD 00 6F 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D6 [00:07:47]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:47]wFMCommunicate OK [00:07:47]SAM_PROTO_GetShiftData done [00:07:47]requested_item shift.sale.total_cash is exist - process it [00:07:47]requested_item shift.sale_refund.total is exist - process it [00:07:47]requested_item shift.sale_refund.total_cash is exist - process it [00:07:47]requested_item shift.buy.total is exist - process it [00:07:47]requested_item shift.buy.total_cash is exist - process it [00:07:47]produce_requested_data done [00:07:47]produce_requested_data return {"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:47]process_action_free get_value [00:07:47]json_value_free [00:07:47]json_value_free done [00:07:47]process_json_proto returns [00:07:47]Send response to host [00:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70479003.45,"fm.sale_refund.total":837831.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:47]free response buf [00:07:47]execute_script done [00:07:47]execute_script returns [00:07:47]free content buf [00:07:47]Sock 7.Close socket [00:07:47]Sock 7.Thread stoped [00:07:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 52 85 47 00 DE 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 38 37 34 36 36 32 10 04 04 00 DD 1C 01 00 F4 03 04 00 08 75 22 67 B6 04 01 00 00 DB 27 42 B2 35 0F AF E0 [00:07:49]CommunicateWithHost err = 0 [00:07:49]CheckOFDResponse [00:07:49]1017 (14) - 77093643461234 [00:07:49]1041 (16) - 0000000000874662 [00:07:49]1040 (4) - 72925 [00:07:49]1012 (4) - 30.10.2024 18:03 [00:07:49]1206 (1) - 0 [00:07:49]OFD Sender: Remove packet 72925 [00:07:49]ProducePacketName [00:07:49]name=ofd_packets/00072925 [00:07:49]NVStorageDeleteData [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:57]recv_with_timeout no data received [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:30]recv_with_timeout no data received [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:46]recv_with_timeout no data received [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:02]recv_with_timeout no data received [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:05]recv_with_timeout no data received [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]recv_with_timeout no data received [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:13]recv_with_timeout no data received [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:02]recv_with_timeout no data received [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:34]recv_with_timeout no data received [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]recv_with_timeout no data received [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:34]recv_with_timeout no data received [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]recv_with_timeout no data received [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:04]recv_with_timeout no data received [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]recv_with_timeout no data received [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:09]recv_with_timeout no data received [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:24]recv_with_timeout no data received [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:45]recv_with_timeout no data received [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:54]recv_with_timeout no data received [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:18]recv_with_timeout no data received [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:46]recv_with_timeout no data received [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:06]recv_with_timeout no data received [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:23]recv_with_timeout no data received [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]recv_with_timeout no data received [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:12]recv_with_timeout no data received [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:28]recv_with_timeout no data received [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:45]recv_with_timeout no data received [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:29]recv_with_timeout no data received [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:51]OFD Sender: No OFD packet to send [00:27:56]OFD Sender: No OFD packet to send [00:28:01]OFD Sender: No OFD packet to send [00:28:02]recv_with_timeout no data received [00:28:06]OFD Sender: No OFD packet to send [00:28:11]OFD Sender: No OFD packet to send [00:28:12]recv_with_timeout no data received [00:28:16]OFD Sender: No OFD packet to send [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:30]recv_with_timeout no data received [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]recv_with_timeout no data received [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:15]recv_with_timeout no data received [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:41]recv_with_timeout no data received [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:00]recv_with_timeout no data received [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:53]recv_with_timeout no data received [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:04]recv_with_timeout no data received [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:21]recv_with_timeout no data received [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:31]recv_with_timeout no data received [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]recv_with_timeout no data received [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:30]recv_with_timeout no data received [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:40]recv_with_timeout no data received [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:51]recv_with_timeout no data received [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]recv_with_timeout no data received [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:00]recv_with_timeout no data received [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]recv_with_timeout no data received [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:33]recv_with_timeout no data received [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]recv_with_timeout no data received [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:20]recv_with_timeout no data received [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:37]recv_with_timeout no data received [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:54]recv_with_timeout no data received [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:04]recv_with_timeout no data received [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:51]recv_with_timeout no data received [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:12]recv_with_timeout no data received [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:31]recv_with_timeout no data received [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:42]recv_with_timeout no data received [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:26]recv_with_timeout no data received [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:30]recv_with_timeout no data received [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:41]recv_with_timeout no data received [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:06]recv_with_timeout no data received [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:35]recv_with_timeout no data received [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:57]recv_with_timeout no data received [00:48:58]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:18]recv_with_timeout no data received [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:52]recv_with_timeout no data received [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:37]recv_with_timeout no data received [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:50]recv_with_timeout no data received [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:41]recv_with_timeout no data received [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:21]recv_with_timeout no data received [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:38]recv_with_timeout no data received [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:10]recv_with_timeout no data received [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:07]recv_with_timeout no data received [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]recv_with_timeout no data received [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:33]accept exits with 9 [01:03:33]New connection [01:03:33]New thread 3066617188 created [01:03:33]Thread 3066473828 joined [01:03:33]Waiting for new connection... [01:03:33] Sock 9.Parse request [01:03:33]Sock 9.Check first char [01:03:33]Sock 9.First char is OK [01:03:33]request: POST /json_proto HTTP/1.0 [01:03:33]Method: POST [01:03:33]URL: /json_proto [01:03:33]Method is POST - this is cgi request [01:03:33]url: /json_proto [01:03:33]query_string will be loaded in cgi processing [01:03:33]execute_cgi json_proto POST (null) [01:03:33]execute_cgi path=json_proto method=POST [01:03:33]POST find Content-Length [01:03:33]Host: 172.17.43.195:8080 [01:03:33]Content-Length: 848 [01:03:33]Content-Type: application/json [01:03:33] [01:03:33]POST finish read [01:03:33]Found Content-Length = 848 [01:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:33]execute_script... [01:03:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:33]POST & json_proto [01:03:33]process_json_proto [01:03:33]json parsed OK: [01:03:33]protocol is kg_v1.0 [01:03:33]action value=close_receipt [01:03:33]process_action close_receipt [01:03:33]cmd_close_receipt [01:03:33]MH_GetDate [01:03:33]Write to MH i2c: F0 00 00 70 01 60 [01:03:33]Write i2c OK [01:03:33]MH_I2C_Read... [01:03:33]Read from MH i2c: F0 [01:03:33]MH_I2C_Read... [01:03:33]Read from MH i2c: F0 09 00 [01:03:33]MH_I2C_Read... [01:03:33]Read from MH i2c: F0 09 00 70 01 00 66 D7 22 67 74 2C AD 66 E2 [01:03:33]GetLastDocTimeStamp 1730333258 [01:03:33]current date 1730336614 [01:03:33]FM_GetShiftState [01:03:33]SAM_PROTO_GetShiftState [01:03:33]wFMCommunicate request_size=4 [01:03:33]MH_SAM_APDU [01:03:33]CAPDU: 80 13 01 00 [01:03:33]Write to MH i2c: E2 08 00 71 01 80 13 01 00 00 00 00 00 EF [01:03:33]Write i2c OK [01:03:33]MH_I2C_Read... [01:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:33]Read from MH i2c: E2 [01:03:33]MH_I2C_Read... [01:03:33]Read from MH i2c: E2 0E 00 [01:03:33]MH_I2C_Read... [01:03:33]Read from MH i2c: E2 0E 00 71 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 98 [01:03:33]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [01:03:33]wFMCommunicate OK [01:03:33]SAM_PROTO_GetShiftState done [01:03:33]FM_GetShiftState done [01:03:33]opened in 1730333258 [01:03:33]opened+sec_in_day 1730419658 [01:03:33]quantity*price = 250012 [01:03:33]sum+1 = 250013 [01:03:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.12 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.12 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 1 31.10.2024 01:03 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72926 ФПД: 266807528238642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T010334&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72926&fm=266807528238642&tin=02508201610067®Number=0000000000091644&sum=250012 [01:03:34]StoreToDocumentArchive [01:03:34]shift 557 fd 72926 [01:03:34]save to /storage/0557/doc_00072926 [01:03:34]save last doc name /storage/0557/doc_00072926 to /storage/kkm_last_doc_name [01:03:34]save OK [01:03:34]Clear old archive folders... [01:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:03:34]tlvbuf is 015FFE60 [01:03:34]SAM_PROTO_ClearQueue [01:03:34]wFMCommunicate request_size=4 [01:03:34]MH_SAM_APDU [01:03:34]CAPDU: 80 09 00 00 [01:03:34]Write to MH i2c: E2 08 00 7E 01 80 09 00 00 00 00 00 00 F1 [01:03:34]Write i2c OK [01:03:34]MH_I2C_Read... [01:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:34]Read from MH i2c: E2 [01:03:34]MH_I2C_Read... [01:03:34]Read from MH i2c: E2 03 00 [01:03:34]MH_I2C_Read... [01:03:34]Read from MH i2c: E2 03 00 7E 01 00 90 00 F3 [01:03:34]RAPDU: 90 00 [01:03:34]wFMCommunicate OK [01:03:34]SAM_PROTO_ClearQueue done [01:03:34]KKMCreateOFDPacket [01:03:34]OFDProtocolAddRootSTLVToBuf [01:03:34]FM_MakeSignedData [01:03:34]FM_MakeSignedData [01:03:34]SAM_PROTO_SignData [01:03:34]wFMCommunicate request_size=4 [01:03:34]MH_SAM_APDU [01:03:34]CAPDU: 80 0D 01 02 [01:03:34]Write to MH i2c: E2 08 00 7F 01 80 0D 01 02 00 00 00 00 F9 [01:03:34]Write i2c OK [01:03:34]MH_I2C_Read... [01:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:34]Read from MH i2c: E2 [01:03:34]MH_I2C_Read... [01:03:34]Read from MH i2c: E2 03 00 [01:03:34]MH_I2C_Read... [01:03:34]Read from MH i2c: E2 03 00 7F 01 00 90 00 F4 [01:03:34]RAPDU: 90 00 [01:03:34]wFMCommunicate OK [01:03:34]wFMCommunicate request_size=255 [01:03:34]MH_SAM_APDU [01:03:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 66 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DE 1C 01 00 35 04 06 00 [01:03:34]Write to MH i2c: E2 02 01 80 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 66 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DE 1C 01 00 35 04 06 00 00 00 D0 [01:03:34]Write i2c OK [01:03:34]MH_I2C_Read... [01:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:35]Read from MH i2c: E2 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: E2 03 00 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: E2 03 00 80 01 00 90 00 F5 [01:03:35]RAPDU: 90 00 [01:03:35]wFMCommunicate OK [01:03:35]wFMCommunicate request_size=11 [01:03:35]MH_SAM_APDU [01:03:35]CAPDU: 80 0D 02 02 06 F2 A8 F7 F1 AE 32 [01:03:35]Write to MH i2c: E2 0E 00 81 01 80 0D 02 02 06 00 F2 A8 F7 F1 AE 32 00 00 6A [01:03:35]Write i2c OK [01:03:35]MH_I2C_Read... [01:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:35]Read from MH i2c: E2 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: E2 03 00 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: E2 03 00 81 01 00 90 00 F6 [01:03:35]RAPDU: 90 00 [01:03:35]wFMCommunicate OK [01:03:35]wFMCommunicate request_size=4 [01:03:35]MH_SAM_APDU [01:03:35]CAPDU: 80 0D 03 02 [01:03:35]Write to MH i2c: E2 08 00 82 01 80 0D 03 02 00 00 00 00 FE [01:03:35]Write i2c OK [01:03:35]MH_I2C_Read... [01:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:35]Read from MH i2c: E2 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: E2 0B 00 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: E2 0B 00 82 01 00 B2 B6 40 A2 04 F4 A7 EC 90 00 D4 [01:03:35]RAPDU: B2 B6 40 A2 04 F4 A7 EC 90 00 [01:03:35]wFMCommunicate OK [01:03:35]SAM_PROTO_SignData done [01:03:35]FM_MakeSignedData done [01:03:35]CreateOFDProtocolMessage [01:03:35]wFMCommunicate request_size=4 [01:03:35]MH_SAM_APDU [01:03:35]CAPDU: 80 11 00 00 [01:03:35]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [01:03:35]Write i2c OK [01:03:35]MH_I2C_Read... [01:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:35]Read from MH i2c: E2 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: E2 17 00 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [01:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:03:35]wFMCommunicate OK [01:03:35]CreateOFDProtocolMessage done [01:03:35]OFDSenderStorePacket 72926 [01:03:35]StoreOFDPacket docnum=72926 [01:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 27 EA 08 01 FA 0C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 66 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DE 1C 01 00 35 04 06 00 F2 A8 F7 F1 AE 32 B2 B6 40 A2 04 F4 A7 EC [01:03:35]CheckFolder [01:03:35]dirname=/storage/ofd_packets [01:03:35]CheckFolder done [01:03:35]ProducePacketName [01:03:35]name=ofd_packets/00072926 [01:03:35]NVStorageSaveData ofd_packets/00072926 [01:03:35]File name is /storage/ofd_packets/00072926 [01:03:35]Write 302 bytes [01:03:35]NVStorageSaveData done [01:03:35]OFDSenderStorePacket done [01:03:35]KKMCreateOFDPacket done [01:03:35]NVStorageSaveData kkm_last_timestamp [01:03:35]File name is /storage/kkm_last_timestamp [01:03:35]Write 4 bytes [01:03:35]NVStorageSaveData done [01:03:35]ExternCall_PrintAddStr [01:03:35]wPrintStart [01:03:35]Write to MH i2c: 01 00 00 84 01 85 [01:03:35]Write i2c OK [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: 01 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: 01 07 00 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 FF 0F 9A [01:03:35]RasterBufferAndPrint [01:03:35]line Счет N : (1)952526 [01:03:35]line ИНН: 02508201610067 [01:03:35]line Контрольно-Кассовый Чек [01:03:35]line ПРОДАЖА [01:03:35]line ТРК (МРК, ГНК) : 22 [01:03:35]line Товар: 2710194210 [01:03:35]line ДТ(л)-К-5 [01:03:35]line 32.810 * 76.20 [01:03:35]line = 2500.12 [01:03:35]line НДС 12% НСП 1% [01:03:35]line > о реализуемом товаре [01:03:35]line ИТОГО: 2500.12 [01:03:35]line НСП 1% : 22.12 [01:03:35]line НДС 12% : 265.50 [01:03:35]line Наличными: 0.00 [01:03:35]line Безнал.: 2500.12 [01:03:35]line Место: АЗС № 113 "Партнер Нефть" [01:03:35]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:03:35]line СНО: Общий режим [01:03:35]line Чек 1 31.10.2024 01:03 [01:03:35]line Смена: 557 ФФД: 1.0 [01:03:35]line ЗНМ: 0300000087 [01:03:35]line РНМ: 0000000000091644 [01:03:35]line Версия ККМ: 001 [01:03:35]line Платежная система: АКБ Кыргызстан [01:03:35]line ФМ: 0000000000874662 [01:03:35]line ФД: 72926 [01:03:35]line ФПД: 266807528238642 [01:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T010334&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72926&fm=266807528238642&tin=02508201610067®Number=0000000000091644&sum=250012 [01:03:35]written 0, free lines is 4095 [01:03:35]OFD Sender: Processing packet 72926 [packets to send 279, broken 278] [01:03:35]ProducePacketName [01:03:35]name=ofd_packets/00072926 [01:03:35]OFD Sender: To server: pG, [01:03:35]CommunicateWithHost lk.salyk.kg:30040 [01:03:35]ConnectInit lk.salyk.kg [01:03:35]Write to MH i2c: 01 00 00 AE 01 AF [01:03:35]Write i2c OK [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: 01 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: 01 07 00 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: 01 07 00 AE 01 00 00 00 00 00 EB 0C AD [01:03:35]RasterBufferAndPrint [01:03:35]line [01:03:35]line [01:03:35]line [01:03:35]line [01:03:35]line [01:03:35]written 0, free lines is 3314 [01:03:35]MH_Cut [01:03:35]Write to MH i2c: D1 01 00 B5 01 01 88 [01:03:35]Write i2c OK [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: D1 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: D1 01 00 [01:03:35]MH_I2C_Read... [01:03:35]Read from MH i2c: D1 01 00 B5 01 00 87 [01:03:35]Write to MH i2c: 01 00 00 B6 01 B7 [01:03:35]Write i2c OK [01:03:35]MH_I2C_Read... [01:03:36]*** Cut start [01:03:36]*** Partial cut [01:03:36]*** CUTSNS_PIN = 1 [01:03:36]*** CUTSNS_PIN = 0 [01:03:36]*** Brake cut motor [01:03:37]Read from MH i2c: 01 [01:03:37]MH_I2C_Read... [01:03:37]*** Stop cut motor [01:03:37]*** Cut end [01:03:37]Read from MH i2c: 01 07 00 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 FF 0F CC [01:03:37]process_action close_receipt done [01:03:37]requested_data is exist [01:03:37]produce_requested_data [01:03:37]requested_item fm.sn is exist - process it [01:03:37]wFMCommunicate request_size=4 [01:03:37]MH_SAM_APDU [01:03:37]CAPDU: 80 11 00 00 [01:03:37]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [01:03:37]Write i2c OK [01:03:37]MH_I2C_Read... [01:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:37]Read from MH i2c: E2 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 17 00 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 86 [01:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:03:37]wFMCommunicate OK [01:03:37]requested_item fd.num is exist - process it [01:03:37]SAM_PROTO_GetFieldsCounters [01:03:37]wFMCommunicate request_size=4 [01:03:37]MH_SAM_APDU [01:03:37]CAPDU: 80 13 00 00 [01:03:37]Write to MH i2c: E2 08 00 B8 01 80 13 00 00 00 00 00 00 35 [01:03:37]Write i2c OK [01:03:37]MH_I2C_Read... [01:03:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:37]Read from MH i2c: E2 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 62 00 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 62 00 B8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DE 1C 01 00 0E 04 04 00 2D 02 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 83 [01:03:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DE 1C 01 00 0E 04 04 00 2D 02 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 [01:03:37]wFMCommunicate OK [01:03:37]SAM_PROTO_GetFieldsCounters done [01:03:37]requested_item shift.num is exist - process it [01:03:37]requested_item shift.opened is exist - process it [01:03:37]req_shift_opened [01:03:37]FM_GetShiftState [01:03:37]SAM_PROTO_GetShiftState [01:03:37]wFMCommunicate request_size=4 [01:03:37]MH_SAM_APDU [01:03:37]CAPDU: 80 13 01 00 [01:03:37]Write to MH i2c: E2 08 00 B9 01 80 13 01 00 00 00 00 00 37 [01:03:37]Write i2c OK [01:03:37]MH_I2C_Read... [01:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:37]Read from MH i2c: E2 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 0E 00 [01:03:37]MH_I2C_Read... [01:03:37]Read from MH i2c: E2 0E 00 B9 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E0 [01:03:37]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [01:03:37]wFMCommunicate OK [01:03:37]SAM_PROTO_GetShiftState done [01:03:37]FM_GetShiftState done [01:03:37]req_shift_opened done [01:03:37]requested_item shift.open_date is exist - process it [01:03:37]req_shift_open_date [01:03:37]req_shift_open_date done [01:03:37]produce_requested_data done [01:03:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72926,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [01:03:37]process_action_free close_receipt [01:03:37]json_value_free [01:03:37]json_value_free done [01:03:37]process_json_proto returns [01:03:37]Send response to host [01:03:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72926,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [01:03:37]free response buf [01:03:37]execute_script done [01:03:37]execute_script returns [01:03:37]free content buf [01:03:37]Sock 9.Close socket [01:03:37]Sock 9.Thread stoped [01:03:37]Connected sock=11 [01:03:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 27 EA 08 01 FA 0C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 66 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DE 1C 01 00 35 04 06 00 F2 A8 F7 F1 AE 32 B2 B6 40 A2 04 F4 A7 EC [01:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 90 FC 47 00 99 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DE 1C 01 00 F4 03 04 00 20 82 22 67 B6 04 01 00 00 11 3B F8 D1 E8 77 0A EB [01:03:38]CommunicateWithHost err = 0 [01:03:38]CheckOFDResponse [01:03:38]1017 (14) - 77093643461234 [01:03:38]1041 (16) - 0000000000874662 [01:03:38]1040 (4) - 72926 [01:03:38]1012 (4) - 30.10.2024 18:59 [01:03:38]1206 (1) - 0 [01:03:38]OFD Sender: Remove packet 72926 [01:03:38]ProducePacketName [01:03:38]name=ofd_packets/00072926 [01:03:38]NVStorageDeleteData [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:07]recv_with_timeout no data received [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:16]recv_with_timeout no data received [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:35]recv_with_timeout no data received [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:41]ConnectInit Can't connect to host [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:52]recv_with_timeout no data received [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:32]ConnectInit Can't connect to host [01:14:34]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:12]recv_with_timeout no data received [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]recv_with_timeout no data received [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:46]recv_with_timeout no data received [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:06]recv_with_timeout no data received [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:25]recv_with_timeout no data received [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]recv_with_timeout no data received [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:30]recv_with_timeout no data received [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:53]recv_with_timeout no data received [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:32]recv_with_timeout no data received [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:13]recv_with_timeout no data received [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:08]recv_with_timeout no data received [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:28]recv_with_timeout no data received [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:53]recv_with_timeout no data received [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:50]recv_with_timeout no data received [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:18]recv_with_timeout no data received [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:49]recv_with_timeout no data received [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:53]recv_with_timeout no data received [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:10]recv_with_timeout no data received [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:20]recv_with_timeout no data received [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:32]recv_with_timeout no data received [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:10]recv_with_timeout no data received [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:21]recv_with_timeout no data received [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:03]recv_with_timeout no data received [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:20]recv_with_timeout no data received [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:39]recv_with_timeout no data received [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:20]recv_with_timeout no data received [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]recv_with_timeout no data received [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:16]recv_with_timeout no data received [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]recv_with_timeout no data received [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:20]recv_with_timeout no data received [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:52]recv_with_timeout no data received [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:53]recv_with_timeout no data received [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:24]recv_with_timeout no data received [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:35]recv_with_timeout no data received [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]recv_with_timeout no data received [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:13]recv_with_timeout no data received [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:52]recv_with_timeout no data received [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:25]recv_with_timeout no data received [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:53:59]accept exits with 10 [01:53:59]New connection [01:53:59]New thread 3066473828 created [01:53:59]Thread 3066617188 joined [01:53:59]Waiting for new connection... [01:53:59] Sock 10.Parse request [01:53:59]Sock 10.Check first char [01:53:59]Sock 10.First char is OK [01:53:59]request: POST /json_proto HTTP/1.0 [01:53:59]Method: POST [01:53:59]URL: /json_proto [01:53:59]Method is POST - this is cgi request [01:53:59]url: /json_proto [01:53:59]query_string will be loaded in cgi processing [01:53:59]execute_cgi json_proto POST (null) [01:53:59]execute_cgi path=json_proto method=POST [01:53:59]POST find Content-Length [01:53:59]Host: 172.17.43.195:8080 [01:53:59]Content-Length: 687 [01:53:59]Content-Type: application/json [01:53:59] [01:53:59]POST finish read [01:53:59]Found Content-Length = 687 [01:53:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952528", "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" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:59]execute_script... [01:53: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)952528", "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" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:59]POST & json_proto [01:53:59]process_json_proto [01:53:59]json parsed OK: [01:53:59]protocol is kg_v1.0 [01:53:59]action value=close_receipt [01:53:59]process_action close_receipt [01:53:59]cmd_close_receipt [01:53:59]MH_GetDate [01:53:59]Write to MH i2c: F0 00 00 BA 01 AA [01:53:59]Write i2c OK [01:53:59]MH_I2C_Read... [01:53:59]Read from MH i2c: F0 [01:53:59]MH_I2C_Read... [01:53:59]Read from MH i2c: F0 09 00 [01:53:59]MH_I2C_Read... [01:53:59]Read from MH i2c: F0 09 00 BA 01 00 38 E3 22 67 74 2C AD 66 0A [01:53:59]GetLastDocTimeStamp 1730336614 [01:53:59]current date 1730339640 [01:53:59]FM_GetShiftState [01:53:59]SAM_PROTO_GetShiftState [01:53:59]wFMCommunicate request_size=4 [01:53:59]MH_SAM_APDU [01:53:59]CAPDU: 80 13 01 00 [01:53:59]Write to MH i2c: E2 08 00 BB 01 80 13 01 00 00 00 00 00 39 [01:53:59]Write i2c OK [01:53:59]MH_I2C_Read... [01:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:59]Read from MH i2c: E2 [01:53:59]MH_I2C_Read... [01:53:59]Read from MH i2c: E2 0E 00 [01:53:59]MH_I2C_Read... [01:53:59]Read from MH i2c: E2 0E 00 BB 01 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 E2 [01:53:59]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [01:53:59]wFMCommunicate OK [01:53:59]SAM_PROTO_GetShiftState done [01:53:59]FM_GetShiftState done [01:53:59]opened in 1730333258 [01:53:59]opened+sec_in_day 1730419658 [01:53:59]quantity*price = 130073 [01:53:59]sum+1 = 130074 [01:53:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 2 31.10.2024 01:54 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72927 ФПД: 126188202704750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T015400&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72927&fm=126188202704750&tin=02508201610067®Number=0000000000091644&sum=130000 [01:54:00]StoreToDocumentArchive [01:54:00]shift 557 fd 72927 [01:54:00]save to /storage/0557/doc_00072927 [01:54:00]save last doc name /storage/0557/doc_00072927 to /storage/kkm_last_doc_name [01:54:00]save OK [01:54:00]Clear old archive folders... [01:54:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:54:00]tlvbuf is 013F84F0 [01:54:00]SAM_PROTO_ClearQueue [01:54:00]wFMCommunicate request_size=4 [01:54:00]MH_SAM_APDU [01:54:00]CAPDU: 80 09 00 00 [01:54:00]Write to MH i2c: E2 08 00 C8 01 80 09 00 00 00 00 00 00 3B [01:54:00]Write i2c OK [01:54:00]MH_I2C_Read... [01:54:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:54:00]Read from MH i2c: E2 [01:54:00]MH_I2C_Read... [01:54:00]Read from MH i2c: E2 03 00 [01:54:00]MH_I2C_Read... [01:54:00]Read from MH i2c: E2 03 00 C8 01 00 90 00 3D [01:54:00]RAPDU: 90 00 [01:54:00]wFMCommunicate OK [01:54:00]SAM_PROTO_ClearQueue done [01:54:00]KKMCreateOFDPacket [01:54:00]OFDProtocolAddRootSTLVToBuf [01:54:00]FM_MakeSignedData [01:54:00]FM_MakeSignedData [01:54:00]SAM_PROTO_SignData [01:54:00]wFMCommunicate request_size=4 [01:54:00]MH_SAM_APDU [01:54:00]CAPDU: 80 0D 01 02 [01:54:00]Write to MH i2c: E2 08 00 C9 01 80 0D 01 02 00 00 00 00 43 [01:54:00]Write i2c OK [01:54:00]MH_I2C_Read... [01:54:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:54:00]Read from MH i2c: E2 [01:54:00]MH_I2C_Read... [01:54:00]Read from MH i2c: E2 03 00 [01:54:00]MH_I2C_Read... [01:54:00]Read from MH i2c: E2 03 00 C9 01 00 90 00 3E [01:54:00]RAPDU: 90 00 [01:54:00]wFMCommunicate OK [01:54:00]wFMCommunicate request_size=255 [01:54:00]MH_SAM_APDU [01:54: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 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 38 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DF 1C 01 00 35 04 06 00 [01:54:00]Write to MH i2c: E2 02 01 CA 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 38 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DF 1C 01 00 35 04 06 00 00 00 85 [01:54:00]Write i2c OK [01:54:00]MH_I2C_Read... [01:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:54:01]Read from MH i2c: E2 [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: E2 03 00 [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: E2 03 00 CA 01 00 90 00 3F [01:54:01]RAPDU: 90 00 [01:54:01]wFMCommunicate OK [01:54:01]wFMCommunicate request_size=11 [01:54:01]MH_SAM_APDU [01:54:01]CAPDU: 80 0D 02 02 06 72 C4 7A FF 3F 6E [01:54:01]Write to MH i2c: E2 0E 00 CB 01 80 0D 02 02 06 00 72 C4 7A FF 3F 6E 00 00 AE [01:54:01]Write i2c OK [01:54:01]MH_I2C_Read... [01:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:54:01]Read from MH i2c: E2 [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: E2 03 00 [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [01:54:01]RAPDU: 90 00 [01:54:01]wFMCommunicate OK [01:54:01]wFMCommunicate request_size=4 [01:54:01]MH_SAM_APDU [01:54:01]CAPDU: 80 0D 03 02 [01:54:01]Write to MH i2c: E2 08 00 CC 01 80 0D 03 02 00 00 00 00 48 [01:54:01]Write i2c OK [01:54:01]MH_I2C_Read... [01:54:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:54:01]Read from MH i2c: E2 [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: E2 0B 00 [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: E2 0B 00 CC 01 00 D5 11 BA C7 39 AF 72 5C 90 00 66 [01:54:01]RAPDU: D5 11 BA C7 39 AF 72 5C 90 00 [01:54:01]wFMCommunicate OK [01:54:01]SAM_PROTO_SignData done [01:54:01]FM_MakeSignedData done [01:54:01]CreateOFDProtocolMessage [01:54:01]wFMCommunicate request_size=4 [01:54:01]MH_SAM_APDU [01:54:01]CAPDU: 80 11 00 00 [01:54:01]Write to MH i2c: E2 08 00 CD 01 80 11 00 00 00 00 00 00 48 [01:54:01]Write i2c OK [01:54:01]MH_I2C_Read... [01:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:54:01]Read from MH i2c: E2 [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: E2 17 00 [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: E2 17 00 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9C [01:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:54:01]wFMCommunicate OK [01:54:01]CreateOFDProtocolMessage done [01:54:01]OFDSenderStorePacket 72927 [01:54:01]StoreOFDPacket docnum=72927 [01:54:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 9B 22 08 01 DA D6 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 38 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DF 1C 01 00 35 04 06 00 72 C4 7A FF 3F 6E D5 11 BA C7 39 AF 72 5C [01:54:01]CheckFolder [01:54:01]dirname=/storage/ofd_packets [01:54:01]CheckFolder done [01:54:01]ProducePacketName [01:54:01]name=ofd_packets/00072927 [01:54:01]NVStorageSaveData ofd_packets/00072927 [01:54:01]File name is /storage/ofd_packets/00072927 [01:54:01]Write 302 bytes [01:54:01]NVStorageSaveData done [01:54:01]OFDSenderStorePacket done [01:54:01]KKMCreateOFDPacket done [01:54:01]NVStorageSaveData kkm_last_timestamp [01:54:01]File name is /storage/kkm_last_timestamp [01:54:01]Write 4 bytes [01:54:01]NVStorageSaveData done [01:54:01]ExternCall_PrintAddStr [01:54:01]wPrintStart [01:54:01]Write to MH i2c: 01 00 00 CE 01 CF [01:54:01]Write i2c OK [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: 01 [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: 01 07 00 [01:54:01]MH_I2C_Read... [01:54:01]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FF 0F E4 [01:54:01]RasterBufferAndPrint [01:54:01]line Счет N : (1)952528 [01:54:01]line ИНН: 02508201610067 [01:54:01]line Контрольно-Кассовый Чек [01:54:01]line ПРОДАЖА [01:54:01]line ТРК (МРК, ГНК) : 33 [01:54:01]line Товар: 2710194210 [01:54:01]line ДТ(л)-К-5 [01:54:01]line 17.070 * 76.20 [01:54:01]line = 1300.73 [01:54:01]line НДС 12% НСП 1% [01:54:01]line > о реализуемом товаре [01:54:01]line ОКРУГЛЕНИЕ: -0.73 [01:54:01]line ИТОГО: 1300.00 [01:54:01]line Внесено: 1300.00 [01:54:01]line СДАЧА: 0.00 [01:54:01]line НСП 1% : 11.51 [01:54:01]line НДС 12% : 138.13 [01:54:01]line Наличными: 1300.00 [01:54:01]line Безнал.: 0.00 [01:54:01]line Место: АЗС № 113 "Партнер Нефть" [01:54:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:54:01]line СНО: Общий режим [01:54:01]line Чек 2 31.10.2024 01:54 [01:54:01]line Смена: 557 ФФД: 1.0 [01:54:01]line ЗНМ: 0300000087 [01:54:01]line РНМ: 0000000000091644 [01:54:01]line Версия ККМ: 001 [01:54:01]line ФМ: 0000000000874662 [01:54:01]line ФД: 72927 [01:54:01]line ФПД: 126188202704750 [01:54:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T015400&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72927&fm=126188202704750&tin=02508201610067®Number=0000000000091644&sum=130000 [01:54:01]OFD Sender: Processing packet 72927 [packets to send 279, broken 278] [01:54:01]ProducePacketName [01:54:01]name=ofd_packets/00072927 [01:54:01]OFD Sender: To server: pG, [01:54:01]CommunicateWithHost lk.salyk.kg:30040 [01:54:01]ConnectInit lk.salyk.kg [01:54:01]written 0, free lines is 4095 [01:54:02]Write to MH i2c: 01 00 00 F9 01 FA [01:54:02]Write i2c OK [01:54:02]MH_I2C_Read... [01:54:02]Read from MH i2c: 01 [01:54:02]MH_I2C_Read... [01:54:02]Read from MH i2c: 01 07 00 [01:54:02]MH_I2C_Read... [01:54:02]Read from MH i2c: 01 07 00 F9 01 00 00 00 00 00 D7 0C E4 [01:54:02]RasterBufferAndPrint [01:54:02]line [01:54:02]line [01:54:02]line [01:54:02]line [01:54:02]line [01:54:02]written 0, free lines is 3294 [01:54:02]MH_Cut [01:54:02]Write to MH i2c: D1 01 00 00 02 01 D4 [01:54:02]Write i2c OK [01:54:02]MH_I2C_Read... [01:54:02]Read from MH i2c: D1 [01:54:02]MH_I2C_Read... [01:54:02]Read from MH i2c: D1 01 00 [01:54:02]MH_I2C_Read... [01:54:02]Read from MH i2c: D1 01 00 00 02 00 D3 [01:54:02]Write to MH i2c: 01 00 00 01 02 03 [01:54:02]Write i2c OK [01:54:02]MH_I2C_Read... [01:54:02]Connected sock=9 [01:54:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 9B 22 08 01 DA D6 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 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 38 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DF 1C 01 00 35 04 06 00 72 C4 7A FF 3F 6E D5 11 BA C7 39 AF 72 5C [01:54:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F8 16 47 00 31 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 DF 1C 01 00 F4 03 04 00 F0 8D 22 67 B6 04 01 00 00 6A 0A 51 6D C1 3A 09 4C [01:54:02]CommunicateWithHost err = 0 [01:54:02]CheckOFDResponse [01:54:02]1017 (14) - 77093643461234 [01:54:02]1041 (16) - 0000000000874662 [01:54:02]1040 (4) - 72927 [01:54:02]1012 (4) - 30.10.2024 19:50 [01:54:02]1206 (1) - 0 [01:54:02]OFD Sender: Remove packet 72927 [01:54:02]ProducePacketName [01:54:02]name=ofd_packets/00072927 [01:54:02]NVStorageDeleteData [01:54:02]*** Cut start [01:54:02]*** Partial cut [01:54:02]*** CUTSNS_PIN = 1 [01:54:02]*** CUTSNS_PIN = 0 [01:54:03]*** Brake cut motor [01:54:03]OFD Sender: No OFD packet to send [01:54:03]Read from MH i2c: 01 [01:54:03]MH_I2C_Read... [01:54:03]*** Stop cut motor [01:54:03]*** Cut end [01:54:03]Read from MH i2c: 01 07 00 [01:54:03]MH_I2C_Read... [01:54:03]Read from MH i2c: 01 07 00 01 02 00 00 00 00 00 FF 0F 18 [01:54:03]process_action close_receipt done [01:54:03]requested_data is exist [01:54:03]produce_requested_data [01:54:03]requested_item fm.sn is exist - process it [01:54:03]wFMCommunicate request_size=4 [01:54:03]MH_SAM_APDU [01:54:03]CAPDU: 80 11 00 00 [01:54:03]Write to MH i2c: E2 08 00 02 02 80 11 00 00 00 00 00 00 7E [01:54:03]Write i2c OK [01:54:03]MH_I2C_Read... [01:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:54:03]Read from MH i2c: E2 [01:54:03]MH_I2C_Read... [01:54:03]Read from MH i2c: E2 17 00 [01:54:03]MH_I2C_Read... [01:54:03]Read from MH i2c: E2 17 00 02 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D2 [01:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:54:03]wFMCommunicate OK [01:54:03]requested_item fd.num is exist - process it [01:54:03]SAM_PROTO_GetFieldsCounters [01:54:03]wFMCommunicate request_size=4 [01:54:03]MH_SAM_APDU [01:54:03]CAPDU: 80 13 00 00 [01:54:03]Write to MH i2c: E2 08 00 03 02 80 13 00 00 00 00 00 00 81 [01:54:03]Write i2c OK [01:54:03]MH_I2C_Read... [01:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:54:03]Read from MH i2c: E2 [01:54:03]MH_I2C_Read... [01:54:03]Read from MH i2c: E2 62 00 [01:54:03]MH_I2C_Read... [01:54:03]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DF 1C 01 00 0E 04 04 00 2D 02 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 D3 [01:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 DF 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:54:03]wFMCommunicate OK [01:54:03]SAM_PROTO_GetFieldsCounters done [01:54:03]requested_item shift.num is exist - process it [01:54:03]requested_item shift.opened is exist - process it [01:54:03]req_shift_opened [01:54:03]FM_GetShiftState [01:54:03]SAM_PROTO_GetShiftState [01:54:03]wFMCommunicate request_size=4 [01:54:03]MH_SAM_APDU [01:54:03]CAPDU: 80 13 01 00 [01:54:03]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [01:54:03]Write i2c OK [01:54:03]MH_I2C_Read... [01:54:03]Read from MH i2c: E2 [01:54:03]MH_I2C_Read... [01:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:54:03]Read from MH i2c: E2 0E 00 [01:54:03]MH_I2C_Read... [01:54:03]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2C [01:54:03]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [01:54:03]wFMCommunicate OK [01:54:03]SAM_PROTO_GetShiftState done [01:54:03]FM_GetShiftState done [01:54:03]req_shift_opened done [01:54:03]requested_item shift.open_date is exist - process it [01:54:03]req_shift_open_date [01:54:03]req_shift_open_date done [01:54:03]produce_requested_data done [01:54:03]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72927,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [01:54:03]process_action_free close_receipt [01:54:03]json_value_free [01:54:03]json_value_free done [01:54:03]process_json_proto returns [01:54:03]Send response to host [01:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72927,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [01:54:03]free response buf [01:54:03]execute_script done [01:54:03]execute_script returns [01:54:03]free content buf [01:54:03]Sock 10.Close socket [01:54:03]Sock 10.Thread stoped [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:26]recv_with_timeout no data received [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:13]accept exits with 7 [01:55:13]New connection [01:55:13]New thread 3066617188 created [01:55:13]Thread 3066473828 joined [01:55:13]Waiting for new connection... [01:55:13] Sock 7.Parse request [01:55:13]Sock 7.Check first char [01:55:13]Sock 7.First char is OK [01:55:13]request: POST /json_proto HTTP/1.0 [01:55:13]Method: POST [01:55:13]URL: /json_proto [01:55:13]Method is POST - this is cgi request [01:55:13]url: /json_proto [01:55:13]query_string will be loaded in cgi processing [01:55:13]execute_cgi json_proto POST (null) [01:55:13]execute_cgi path=json_proto method=POST [01:55:13]POST find Content-Length [01:55:13]Host: 172.17.43.195:8080 [01:55:13]Content-Length: 848 [01:55:13]Content-Type: application/json [01:55:13] [01:55:13]POST finish read [01:55:13]Found Content-Length = 848 [01:55:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952527", "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" : 55.780, "sum" : 4250.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4250.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:55:13]execute_script... [01:55:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952527", "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" : 55.780, "sum" : 4250.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4250.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:55:13]POST & json_proto [01:55:13]process_json_proto [01:55:13]json parsed OK: [01:55:13]protocol is kg_v1.0 [01:55:13]action value=close_receipt [01:55:13]process_action close_receipt [01:55:13]cmd_close_receipt [01:55:13]MH_GetDate [01:55:13]Write to MH i2c: F0 00 00 05 02 F6 [01:55:13]Write i2c OK [01:55:13]MH_I2C_Read... [01:55:13]Read from MH i2c: F0 [01:55:13]MH_I2C_Read... [01:55:13]Read from MH i2c: F0 09 00 [01:55:13]MH_I2C_Read... [01:55:13]Read from MH i2c: F0 09 00 05 02 00 82 E3 22 67 74 2C AD 66 A0 [01:55:13]GetLastDocTimeStamp 1730339640 [01:55:13]current date 1730339714 [01:55:13]FM_GetShiftState [01:55:13]SAM_PROTO_GetShiftState [01:55:13]wFMCommunicate request_size=4 [01:55:13]MH_SAM_APDU [01:55:13]CAPDU: 80 13 01 00 [01:55:13]Write to MH i2c: E2 08 00 06 02 80 13 01 00 00 00 00 00 85 [01:55:13]Write i2c OK [01:55:13]MH_I2C_Read... [01:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:13]Read from MH i2c: E2 [01:55:13]MH_I2C_Read... [01:55:13]Read from MH i2c: E2 0E 00 [01:55:13]MH_I2C_Read... [01:55:13]Read from MH i2c: E2 0E 00 06 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 2E [01:55:13]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [01:55:13]wFMCommunicate OK [01:55:13]SAM_PROTO_GetShiftState done [01:55:13]FM_GetShiftState done [01:55:13]opened in 1730333258 [01:55:13]opened+sec_in_day 1730419658 [01:55:13]quantity*price = 425043 [01:55:13]sum+1 = 425045 [01:55:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4250.44 НСП 1% : 37.61 НДС 12% : 451.37 Наличными: 0.00 Безнал.: 4250.44 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 3 31.10.2024 01:55 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72928 ФПД: 153003499363428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T015514&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72928&fm=153003499363428&tin=02508201610067®Number=0000000000091644&sum=425044 [01:55:14]StoreToDocumentArchive [01:55:14]shift 557 fd 72928 [01:55:14]save to /storage/0557/doc_00072928 [01:55:14]save last doc name /storage/0557/doc_00072928 to /storage/kkm_last_doc_name [01:55:14]save OK [01:55:14]Clear old archive folders... [01:55:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:55:14]tlvbuf is 016224B0 [01:55:14]SAM_PROTO_ClearQueue [01:55:14]wFMCommunicate request_size=4 [01:55:14]MH_SAM_APDU [01:55:14]CAPDU: 80 09 00 00 [01:55:14]Write to MH i2c: E2 08 00 13 02 80 09 00 00 00 00 00 00 87 [01:55:14]Write i2c OK [01:55:14]MH_I2C_Read... [01:55:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:55:14]Read from MH i2c: E2 [01:55:14]MH_I2C_Read... [01:55:14]Read from MH i2c: E2 03 00 [01:55:14]MH_I2C_Read... [01:55:14]Read from MH i2c: E2 03 00 13 02 00 90 00 89 [01:55:14]RAPDU: 90 00 [01:55:14]wFMCommunicate OK [01:55:14]SAM_PROTO_ClearQueue done [01:55:14]KKMCreateOFDPacket [01:55:14]OFDProtocolAddRootSTLVToBuf [01:55:14]FM_MakeSignedData [01:55:14]FM_MakeSignedData [01:55:14]SAM_PROTO_SignData [01:55:14]wFMCommunicate request_size=4 [01:55:14]MH_SAM_APDU [01:55:14]CAPDU: 80 0D 01 02 [01:55:14]Write to MH i2c: E2 08 00 14 02 80 0D 01 02 00 00 00 00 8F [01:55:14]Write i2c OK [01:55:14]MH_I2C_Read... [01:55:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:55:14]Read from MH i2c: E2 [01:55:14]MH_I2C_Read... [01:55:14]Read from MH i2c: E2 03 00 [01:55:14]MH_I2C_Read... [01:55:14]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [01:55:14]RAPDU: 90 00 [01:55:14]wFMCommunicate OK [01:55:14]wFMCommunicate request_size=255 [01:55:14]MH_SAM_APDU [01:55:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 E4 D9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 54 7C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 7C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 7C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 82 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E0 1C 01 00 35 04 06 00 [01:55:14]Write to MH i2c: E2 02 01 15 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 E4 D9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 54 7C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 7C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 7C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 82 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E0 1C 01 00 35 04 06 00 00 00 D1 [01:55:14]Write i2c OK [01:55:14]MH_I2C_Read... [01:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:14]Read from MH i2c: E2 [01:55:14]MH_I2C_Read... [01:55:14]Read from MH i2c: E2 03 00 [01:55:14]MH_I2C_Read... [01:55:14]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [01:55:14]RAPDU: 90 00 [01:55:14]wFMCommunicate OK [01:55:14]wFMCommunicate request_size=11 [01:55:14]MH_SAM_APDU [01:55:14]CAPDU: 80 0D 02 02 06 8B 27 E7 3A 9C 64 [01:55:14]Write to MH i2c: E2 0E 00 16 02 80 0D 02 02 06 00 8B 27 E7 3A 9C 64 00 00 71 [01:55:14]Write i2c OK [01:55:14]MH_I2C_Read... [01:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:14]Read from MH i2c: E2 [01:55:14]MH_I2C_Read... [01:55:14]Read from MH i2c: E2 03 00 [01:55:14]MH_I2C_Read... [01:55:14]Read from MH i2c: E2 03 00 16 02 00 90 00 8C [01:55:14]RAPDU: 90 00 [01:55:14]wFMCommunicate OK [01:55:14]wFMCommunicate request_size=4 [01:55:14]MH_SAM_APDU [01:55:14]CAPDU: 80 0D 03 02 [01:55:14]Write to MH i2c: E2 08 00 17 02 80 0D 03 02 00 00 00 00 94 [01:55:14]Write i2c OK [01:55:14]MH_I2C_Read... [01:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:55:14]Read from MH i2c: E2 [01:55:14]MH_I2C_Read... [01:55:14]Read from MH i2c: E2 0B 00 [01:55:14]MH_I2C_Read... [01:55:14]Read from MH i2c: E2 0B 00 17 02 00 05 1B 3D 01 44 DB 14 BD 90 00 E3 [01:55:14]RAPDU: 05 1B 3D 01 44 DB 14 BD 90 00 [01:55:14]wFMCommunicate OK [01:55:14]SAM_PROTO_SignData done [01:55:14]FM_MakeSignedData done [01:55:14]CreateOFDProtocolMessage [01:55:14]wFMCommunicate request_size=4 [01:55:14]MH_SAM_APDU [01:55:14]CAPDU: 80 11 00 00 [01:55:14]Write to MH i2c: E2 08 00 18 02 80 11 00 00 00 00 00 00 94 [01:55:14]Write i2c OK [01:55:14]MH_I2C_Read... [01:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:15]Read from MH i2c: E2 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: E2 17 00 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: E2 17 00 18 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E8 [01:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:55:15]wFMCommunicate OK [01:55:15]CreateOFDProtocolMessage done [01:55:15]OFDSenderStorePacket 72928 [01:55:15]StoreOFDPacket docnum=72928 [01:55:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E7 13 08 01 EC CE 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 E4 D9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 54 7C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 7C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 7C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 82 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E0 1C 01 00 35 04 06 00 8B 27 E7 3A 9C 64 05 1B 3D 01 44 DB 14 BD [01:55:15]CheckFolder [01:55:15]dirname=/storage/ofd_packets [01:55:15]CheckFolder done [01:55:15]ProducePacketName [01:55:15]name=ofd_packets/00072928 [01:55:15]NVStorageSaveData ofd_packets/00072928 [01:55:15]File name is /storage/ofd_packets/00072928 [01:55:15]Write 302 bytes [01:55:15]NVStorageSaveData done [01:55:15]OFDSenderStorePacket done [01:55:15]KKMCreateOFDPacket done [01:55:15]NVStorageSaveData kkm_last_timestamp [01:55:15]File name is /storage/kkm_last_timestamp [01:55:15]Write 4 bytes [01:55:15]NVStorageSaveData done [01:55:15]ExternCall_PrintAddStr [01:55:15]wPrintStart [01:55:15]Write to MH i2c: 01 00 00 19 02 1B [01:55:15]Write i2c OK [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: 01 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: 01 07 00 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 FF 0F 30 [01:55:15]RasterBufferAndPrint [01:55:15]line Счет N : (1)952527 [01:55:15]line ИНН: 02508201610067 [01:55:15]line Контрольно-Кассовый Чек [01:55:15]line ПРОДАЖА [01:55:15]line ТРК (МРК, ГНК) : 43 [01:55:15]line Товар: 2710194210 [01:55:15]line ДТ(л)-К-5 [01:55:15]line 55.780 * 76.20 [01:55:15]line = 4250.44 [01:55:15]line НДС 12% НСП 1% [01:55:15]line > о реализуемом товаре [01:55:15]line ИТОГО: 4250.44 [01:55:15]line НСП 1% : 37.61 [01:55:15]line НДС 12% : 451.37 [01:55:15]line Наличными: 0.00 [01:55:15]line Безнал.: 4250.44 [01:55:15]line Место: АЗС № 113 "Партнер Нефть" [01:55:15]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:55:15]line СНО: Общий режим [01:55:15]line Чек 3 31.10.2024 01:55 [01:55:15]line Смена: 557 ФФД: 1.0 [01:55:15]line ЗНМ: 0300000087 [01:55:15]line РНМ: 0000000000091644 [01:55:15]line Версия ККМ: 001 [01:55:15]line Платежная система: АКБ Кыргызстан [01:55:15]line ФМ: 0000000000874662 [01:55:15]line ФД: 72928 [01:55:15]line ФПД: 153003499363428 [01:55:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T015514&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72928&fm=153003499363428&tin=02508201610067®Number=0000000000091644&sum=425044 [01:55:15]written 0, free lines is 4095 [01:55:15]OFD Sender: Processing packet 72928 [packets to send 279, broken 278] [01:55:15]ProducePacketName [01:55:15]name=ofd_packets/00072928 [01:55:15]OFD Sender: To server: pG, [01:55:15]CommunicateWithHost lk.salyk.kg:30040 [01:55:15]ConnectInit lk.salyk.kg [01:55:15]Write to MH i2c: 01 00 00 43 02 45 [01:55:15]Write i2c OK [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: 01 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: 01 07 00 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 F0 0C 48 [01:55:15]RasterBufferAndPrint [01:55:15]line [01:55:15]line [01:55:15]line [01:55:15]line [01:55:15]line [01:55:15]written 0, free lines is 3318 [01:55:15]MH_Cut [01:55:15]Write to MH i2c: D1 01 00 4A 02 01 1E [01:55:15]Write i2c OK [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: D1 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: D1 01 00 [01:55:15]MH_I2C_Read... [01:55:15]Read from MH i2c: D1 01 00 4A 02 00 1D [01:55:15]Write to MH i2c: 01 00 00 4B 02 4D [01:55:15]Write i2c OK [01:55:15]MH_I2C_Read... [01:55:15]Connected sock=10 [01:55:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E7 13 08 01 EC CE 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 E4 D9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 54 7C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 7C 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 7C 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 82 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E0 1C 01 00 35 04 06 00 8B 27 E7 3A 9C 64 05 1B 3D 01 44 DB 14 BD [01:55:16]*** Cut start [01:55:16]*** Partial cut [01:55:16]*** CUTSNS_PIN = 1 [01:55:16]*** CUTSNS_PIN = 0 [01:55:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D1 11 47 00 18 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E0 1C 01 00 F4 03 04 00 3A 8E 22 67 B6 04 01 00 00 F7 98 C5 B7 EE 93 87 BF [01:55:16]CommunicateWithHost err = 0 [01:55:16]CheckOFDResponse [01:55:16]1017 (14) - 77093643461234 [01:55:16]1041 (16) - 0000000000874662 [01:55:16]1040 (4) - 72928 [01:55:16]1012 (4) - 30.10.2024 19:51 [01:55:16]1206 (1) - 0 [01:55:16]OFD Sender: Remove packet 72928 [01:55:16]ProducePacketName [01:55:16]name=ofd_packets/00072928 [01:55:16]NVStorageDeleteData [01:55:16]*** Brake cut motor [01:55:16]Read from MH i2c: 01 [01:55:16]MH_I2C_Read... [01:55:16]*** Stop cut motor [01:55:16]*** Cut end [01:55:16]Read from MH i2c: 01 07 00 [01:55:16]MH_I2C_Read... [01:55:16]Read from MH i2c: 01 07 00 4B 02 00 00 00 00 00 FF 0F 62 [01:55:16]process_action close_receipt done [01:55:16]requested_data is exist [01:55:16]produce_requested_data [01:55:16]requested_item fm.sn is exist - process it [01:55:16]wFMCommunicate request_size=4 [01:55:16]MH_SAM_APDU [01:55:16]CAPDU: 80 11 00 00 [01:55:16]Write to MH i2c: E2 08 00 4C 02 80 11 00 00 00 00 00 00 C8 [01:55:16]Write i2c OK [01:55:16]MH_I2C_Read... [01:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:16]Read from MH i2c: E2 [01:55:16]MH_I2C_Read... [01:55:16]Read from MH i2c: E2 17 00 [01:55:16]MH_I2C_Read... [01:55:16]Read from MH i2c: E2 17 00 4C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1C [01:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:55:16]wFMCommunicate OK [01:55:16]requested_item fd.num is exist - process it [01:55:16]SAM_PROTO_GetFieldsCounters [01:55:16]wFMCommunicate request_size=4 [01:55:16]MH_SAM_APDU [01:55:16]CAPDU: 80 13 00 00 [01:55:16]Write to MH i2c: E2 08 00 4D 02 80 13 00 00 00 00 00 00 CB [01:55:16]Write i2c OK [01:55:16]MH_I2C_Read... [01:55:16]OFD Sender: No OFD packet to send [01:55:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:55:17]Read from MH i2c: E2 [01:55:17]MH_I2C_Read... [01:55:17]Read from MH i2c: E2 62 00 [01:55:17]MH_I2C_Read... [01:55:17]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 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E0 1C 01 00 0E 04 04 00 2D 02 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 21 [01:55:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E0 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:55:17]wFMCommunicate OK [01:55:17]SAM_PROTO_GetFieldsCounters done [01:55:17]requested_item shift.num is exist - process it [01:55:17]requested_item shift.opened is exist - process it [01:55:17]req_shift_opened [01:55:17]FM_GetShiftState [01:55:17]SAM_PROTO_GetShiftState [01:55:17]wFMCommunicate request_size=4 [01:55:17]MH_SAM_APDU [01:55:17]CAPDU: 80 13 01 00 [01:55:17]Write to MH i2c: E2 08 00 4E 02 80 13 01 00 00 00 00 00 CD [01:55:17]Write i2c OK [01:55:17]MH_I2C_Read... [01:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:17]Read from MH i2c: E2 [01:55:17]MH_I2C_Read... [01:55:17]Read from MH i2c: E2 0E 00 [01:55:17]MH_I2C_Read... [01:55:17]Read from MH i2c: E2 0E 00 4E 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 76 [01:55:17]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [01:55:17]wFMCommunicate OK [01:55:17]SAM_PROTO_GetShiftState done [01:55:17]FM_GetShiftState done [01:55:17]req_shift_opened done [01:55:17]requested_item shift.open_date is exist - process it [01:55:17]req_shift_open_date [01:55:17]req_shift_open_date done [01:55:17]produce_requested_data done [01:55:17]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72928,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [01:55:17]process_action_free close_receipt [01:55:17]json_value_free [01:55:17]json_value_free done [01:55:17]process_json_proto returns [01:55:17]Send response to host [01:55:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72928,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [01:55:17]free response buf [01:55:17]execute_script done [01:55:17]execute_script returns [01:55:17]free content buf [01:55:17]Sock 7.Close socket [01:55:17]Sock 7.Thread stoped [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:33]recv_with_timeout no data received [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:12]recv_with_timeout no data received [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:52]recv_with_timeout no data received [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:30]recv_with_timeout no data received [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:20]recv_with_timeout no data received [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:12]recv_with_timeout no data received [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:35]recv_with_timeout no data received [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:15]recv_with_timeout no data received [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:04]recv_with_timeout no data received [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:14]recv_with_timeout no data received [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:32]recv_with_timeout no data received [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]recv_with_timeout no data received [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:32]recv_with_timeout no data received [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:16:59]recv_with_timeout no data received [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:16]recv_with_timeout no data received [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:26]recv_with_timeout no data received [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:53]accept exits with 9 [02:18:53]New connection [02:18:53]New thread 3066473828 created [02:18:53]Thread 3066617188 joined [02:18:53]Waiting for new connection... [02:18:53] Sock 9.Parse request [02:18:53]Sock 9.Check first char [02:18:53]Sock 9.First char is OK [02:18:53]request: POST /json_proto HTTP/1.0 [02:18:53]Method: POST [02:18:53]URL: /json_proto [02:18:53]Method is POST - this is cgi request [02:18:53]url: /json_proto [02:18:53]query_string will be loaded in cgi processing [02:18:53]execute_cgi json_proto POST (null) [02:18:53]execute_cgi path=json_proto method=POST [02:18:53]POST find Content-Length [02:18:53]Host: 172.17.43.195:8080 [02:18:53]Content-Length: 797 [02:18:53]Content-Type: application/json [02:18:53] [02:18:53]POST finish read [02:18:53]Found Content-Length = 797 [02:18:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952529", "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" : 0.00, "quantity" : 39.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A73046", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:18:53]execute_script... [02:18:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952529", "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" : 0.00, "quantity" : 39.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A73046", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:18:53]POST & json_proto [02:18:53]process_json_proto [02:18:53]json parsed OK: [02:18:53]protocol is kg_v1.0 [02:18:53]action value=close_receipt [02:18:53]process_action close_receipt [02:18:53]cmd_close_receipt [02:18:53]MH_GetDate [02:18:53]Write to MH i2c: F0 00 00 4F 02 40 [02:18:53]Write i2c OK [02:18:53]MH_I2C_Read... [02:18:53]Read from MH i2c: F0 [02:18:53]MH_I2C_Read... [02:18:53]Read from MH i2c: F0 09 00 [02:18:53]MH_I2C_Read... [02:18:53]Read from MH i2c: F0 09 00 4F 02 00 0F E9 22 67 74 2C AD 66 7D [02:18:53]GetLastDocTimeStamp 1730339714 [02:18:53]current date 1730341135 [02:18:53]FM_GetShiftState [02:18:53]SAM_PROTO_GetShiftState [02:18:53]wFMCommunicate request_size=4 [02:18:53]MH_SAM_APDU [02:18:53]CAPDU: 80 13 01 00 [02:18:53]Write to MH i2c: E2 08 00 50 02 80 13 01 00 00 00 00 00 CF [02:18:53]Write i2c OK [02:18:53]MH_I2C_Read... [02:18:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:53]Read from MH i2c: E2 [02:18:53]MH_I2C_Read... [02:18:53]Read from MH i2c: E2 0E 00 [02:18:53]MH_I2C_Read... [02:18:53]Read from MH i2c: E2 0E 00 50 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 78 [02:18:53]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [02:18:53]wFMCommunicate OK [02:18:53]SAM_PROTO_GetShiftState done [02:18:53]FM_GetShiftState done [02:18:53]opened in 1730333258 [02:18:53]opened+sec_in_day 1730419658 [02:18:53]quantity*price = 0 [02:18:53]sum+1 = 1 [02:18:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 4 31.10.2024 02:18 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 73046 ФМ: 0000000000874662 ФД: 72929 ФПД: 198511069618582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T021855&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72929&fm=198511069618582&tin=02508201610067®Number=0000000000091644&sum=0 [02:18:54]StoreToDocumentArchive [02:18:54]shift 557 fd 72929 [02:18:54]save to /storage/0557/doc_00072929 [02:18:54]save last doc name /storage/0557/doc_00072929 to /storage/kkm_last_doc_name [02:18:54]save OK [02:18:54]Clear old archive folders... [02:18:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:18:54]tlvbuf is 013F6430 [02:18:54]SAM_PROTO_ClearQueue [02:18:54]wFMCommunicate request_size=4 [02:18:54]MH_SAM_APDU [02:18:54]CAPDU: 80 09 00 00 [02:18:54]Write to MH i2c: E2 08 00 5D 02 80 09 00 00 00 00 00 00 D1 [02:18:54]Write i2c OK [02:18:54]MH_I2C_Read... [02:18:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:18:55]Read from MH i2c: E2 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 03 00 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 03 00 5D 02 00 90 00 D3 [02:18:55]RAPDU: 90 00 [02:18:55]wFMCommunicate OK [02:18:55]SAM_PROTO_ClearQueue done [02:18:55]KKMCreateOFDPacket [02:18:55]OFDProtocolAddRootSTLVToBuf [02:18:55]FM_MakeSignedData [02:18:55]FM_MakeSignedData [02:18:55]SAM_PROTO_SignData [02:18:55]wFMCommunicate request_size=4 [02:18:55]MH_SAM_APDU [02:18:55]CAPDU: 80 0D 01 02 [02:18:55]Write to MH i2c: E2 08 00 5E 02 80 0D 01 02 00 00 00 00 D9 [02:18:55]Write i2c OK [02:18:55]MH_I2C_Read... [02:18:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:18:55]Read from MH i2c: E2 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 03 00 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [02:18:55]RAPDU: 90 00 [02:18:55]wFMCommunicate OK [02:18:55]wFMCommunicate request_size=255 [02:18:55]MH_SAM_APDU [02:18:55]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 CA 99 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 04 00 00 00 F4 03 04 00 0F E9 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E1 1C 01 00 35 04 06 00 [02:18:55]Write to MH i2c: E2 02 01 5F 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 CA 99 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 04 00 00 00 F4 03 04 00 0F E9 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E1 1C 01 00 35 04 06 00 00 00 33 [02:18:55]Write i2c OK [02:18:55]MH_I2C_Read... [02:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:55]Read from MH i2c: E2 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 03 00 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [02:18:55]RAPDU: 90 00 [02:18:55]wFMCommunicate OK [02:18:55]wFMCommunicate request_size=11 [02:18:55]MH_SAM_APDU [02:18:55]CAPDU: 80 0D 02 02 06 B4 8B 75 C9 E1 96 [02:18:55]Write to MH i2c: E2 0E 00 60 02 80 0D 02 02 06 00 B4 8B 75 C9 E1 96 00 00 DC [02:18:55]Write i2c OK [02:18:55]MH_I2C_Read... [02:18:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:55]Read from MH i2c: E2 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 03 00 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 03 00 60 02 00 90 00 D6 [02:18:55]RAPDU: 90 00 [02:18:55]wFMCommunicate OK [02:18:55]wFMCommunicate request_size=4 [02:18:55]MH_SAM_APDU [02:18:55]CAPDU: 80 0D 03 02 [02:18:55]Write to MH i2c: E2 08 00 61 02 80 0D 03 02 00 00 00 00 DE [02:18:55]Write i2c OK [02:18:55]MH_I2C_Read... [02:18:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:18:55]Read from MH i2c: E2 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 0B 00 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 0B 00 61 02 00 67 89 09 99 64 96 3D 17 90 00 BF [02:18:55]RAPDU: 67 89 09 99 64 96 3D 17 90 00 [02:18:55]wFMCommunicate OK [02:18:55]SAM_PROTO_SignData done [02:18:55]FM_MakeSignedData done [02:18:55]CreateOFDProtocolMessage [02:18:55]wFMCommunicate request_size=4 [02:18:55]MH_SAM_APDU [02:18:55]CAPDU: 80 11 00 00 [02:18:55]Write to MH i2c: E2 08 00 62 02 80 11 00 00 00 00 00 00 DE [02:18:55]Write i2c OK [02:18:55]MH_I2C_Read... [02:18:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:55]Read from MH i2c: E2 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 17 00 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: E2 17 00 62 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [02:18:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:18:55]wFMCommunicate OK [02:18:55]CreateOFDProtocolMessage done [02:18:55]OFDSenderStorePacket 72929 [02:18:55]StoreOFDPacket docnum=72929 [02:18:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 CE E2 08 01 A0 52 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 CA 99 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 04 00 00 00 F4 03 04 00 0F E9 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E1 1C 01 00 35 04 06 00 B4 8B 75 C9 E1 96 67 89 09 99 64 96 3D 17 [02:18:55]CheckFolder [02:18:55]dirname=/storage/ofd_packets [02:18:55]CheckFolder done [02:18:55]ProducePacketName [02:18:55]name=ofd_packets/00072929 [02:18:55]NVStorageSaveData ofd_packets/00072929 [02:18:55]File name is /storage/ofd_packets/00072929 [02:18:55]Write 302 bytes [02:18:55]NVStorageSaveData done [02:18:55]OFDSenderStorePacket done [02:18:55]KKMCreateOFDPacket done [02:18:55]NVStorageSaveData kkm_last_timestamp [02:18:55]File name is /storage/kkm_last_timestamp [02:18:55]Write 4 bytes [02:18:55]NVStorageSaveData done [02:18:55]ExternCall_PrintAddStr [02:18:55]wPrintStart [02:18:55]Write to MH i2c: 01 00 00 63 02 65 [02:18:55]Write i2c OK [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: 01 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: 01 07 00 [02:18:55]MH_I2C_Read... [02:18:55]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 FF 0F 7A [02:18:55]RasterBufferAndPrint [02:18:55]line Счет N : (1)952529 [02:18:55]line ИНН: 02508201610067 [02:18:55]line Контрольно-Кассовый Чек [02:18:55]line ПРОДАЖА [02:18:55]line ТРК (МРК, ГНК) : 43 [02:18:55]line Товар: 2710194210 [02:18:55]line ДТ(л)-К-5 [02:18:55]line 39.370 * 0.00 [02:18:55]line = 0.00 [02:18:55]line НДС 12% НСП 1% [02:18:55]line > о реализуемом товаре [02:18:55]line ИТОГО: 0.00 [02:18:55]line НСП 1% : 0.00 [02:18:55]line НДС 12% : 0.00 [02:18:55]line Наличными: 0.00 [02:18:55]line Безнал.: 0.00 [02:18:55]line Место: АЗС № 113 "Партнер Нефть" [02:18:55]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [02:18:55]line СНО: Общий режим [02:18:55]line Чек 4 31.10.2024 02:18 [02:18:55]line Смена: 557 ФФД: 1.0 [02:18:55]line ЗНМ: 0300000087 [02:18:55]line РНМ: 0000000000091644 [02:18:55]line Версия ККМ: 001 [02:18:55]line Талоны: Топливная Карта [02:18:55]line 73046 [02:18:55]line ФМ: 0000000000874662 [02:18:55]line ФД: 72929 [02:18:55]line ФПД: 198511069618582 [02:18:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T021855&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72929&fm=198511069618582&tin=02508201610067®Number=0000000000091644&sum=0 [02:18:55]written 0, free lines is 4095 [02:18:55]OFD Sender: Processing packet 72929 [packets to send 279, broken 278] [02:18:55]ProducePacketName [02:18:55]name=ofd_packets/00072929 [02:18:55]OFD Sender: To server: pG, [02:18:55]CommunicateWithHost lk.salyk.kg:30040 [02:18:55]ConnectInit lk.salyk.kg [02:18:56]Write to MH i2c: 01 00 00 8D 02 8F [02:18:56]Write i2c OK [02:18:56]MH_I2C_Read... [02:18:56]Read from MH i2c: 01 [02:18:56]MH_I2C_Read... [02:18:56]Read from MH i2c: 01 07 00 [02:18:56]MH_I2C_Read... [02:18:56]Read from MH i2c: 01 07 00 8D 02 00 00 00 00 00 DB 0C 7D [02:18:56]RasterBufferAndPrint [02:18:56]line [02:18:56]line [02:18:56]line [02:18:56]line [02:18:56]line [02:18:56]written 0, free lines is 3297 [02:18:56]MH_Cut [02:18:56]Write to MH i2c: D1 01 00 94 02 01 68 [02:18:56]Write i2c OK [02:18:56]MH_I2C_Read... [02:18:56]Read from MH i2c: D1 [02:18:56]MH_I2C_Read... [02:18:56]Read from MH i2c: D1 01 00 [02:18:56]MH_I2C_Read... [02:18:56]Read from MH i2c: D1 01 00 94 02 00 67 [02:18:56]Write to MH i2c: 01 00 00 95 02 97 [02:18:56]Write i2c OK [02:18:56]MH_I2C_Read... [02:18:57]*** Cut start [02:18:57]*** Partial cut [02:18:57]*** CUTSNS_PIN = 1 [02:18:57]*** CUTSNS_PIN = 0 [02:18:57]*** Brake cut motor [02:18:57]Read from MH i2c: 01 [02:18:57]MH_I2C_Read... [02:18:57]*** Stop cut motor [02:18:57]*** Cut end [02:18:57]Read from MH i2c: 01 07 00 [02:18:57]MH_I2C_Read... [02:18:57]Read from MH i2c: 01 07 00 95 02 00 00 00 00 00 FF 0F AC [02:18:57]process_action close_receipt done [02:18:57]requested_data is exist [02:18:57]produce_requested_data [02:18:57]requested_item fm.sn is exist - process it [02:18:57]wFMCommunicate request_size=4 [02:18:57]MH_SAM_APDU [02:18:57]CAPDU: 80 11 00 00 [02:18:57]Write to MH i2c: E2 08 00 96 02 80 11 00 00 00 00 00 00 12 [02:18:57]Write i2c OK [02:18:57]MH_I2C_Read... [02:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:57]Read from MH i2c: E2 [02:18:57]MH_I2C_Read... [02:18:57]Read from MH i2c: E2 17 00 [02:18:57]MH_I2C_Read... [02:18:57]Read from MH i2c: E2 17 00 96 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [02:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:18:57]wFMCommunicate OK [02:18:57]requested_item fd.num is exist - process it [02:18:57]SAM_PROTO_GetFieldsCounters [02:18:57]wFMCommunicate request_size=4 [02:18:57]MH_SAM_APDU [02:18:57]CAPDU: 80 13 00 00 [02:18:57]Write to MH i2c: E2 08 00 97 02 80 13 00 00 00 00 00 00 15 [02:18:57]Write i2c OK [02:18:57]MH_I2C_Read... [02:18:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:18:57]Read from MH i2c: E2 [02:18:57]MH_I2C_Read... [02:18:57]Read from MH i2c: E2 62 00 [02:18:57]MH_I2C_Read... [02:18:57]Read from MH i2c: E2 62 00 97 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E1 1C 01 00 0E 04 04 00 2D 02 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 6F [02:18:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E1 1C 01 00 0E 04 04 00 2D 02 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 [02:18:57]wFMCommunicate OK [02:18:57]SAM_PROTO_GetFieldsCounters done [02:18:57]requested_item shift.num is exist - process it [02:18:57]requested_item shift.opened is exist - process it [02:18:57]req_shift_opened [02:18:57]FM_GetShiftState [02:18:57]SAM_PROTO_GetShiftState [02:18:57]wFMCommunicate request_size=4 [02:18:57]MH_SAM_APDU [02:18:57]CAPDU: 80 13 01 00 [02:18:57]Write to MH i2c: E2 08 00 98 02 80 13 01 00 00 00 00 00 17 [02:18:57]Write i2c OK [02:18:57]MH_I2C_Read... [02:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:57]Read from MH i2c: E2 [02:18:57]MH_I2C_Read... [02:18:57]Read from MH i2c: E2 0E 00 [02:18:57]MH_I2C_Read... [02:18:57]Read from MH i2c: E2 0E 00 98 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C0 [02:18:57]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [02:18:57]wFMCommunicate OK [02:18:57]SAM_PROTO_GetShiftState done [02:18:57]FM_GetShiftState done [02:18:57]req_shift_opened done [02:18:57]requested_item shift.open_date is exist - process it [02:18:57]req_shift_open_date [02:18:57]req_shift_open_date done [02:18:57]produce_requested_data done [02:18:57]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72929,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [02:18:57]process_action_free close_receipt [02:18:57]json_value_free [02:18:57]json_value_free done [02:18:57]process_json_proto returns [02:18:57]Send response to host [02:18:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72929,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [02:18:57]free response buf [02:18:57]execute_script done [02:18:57]execute_script returns [02:18:57]free content buf [02:18:57]Sock 9.Close socket [02:18:57]Sock 9.Thread stoped [02:18:59]Connected sock=11 [02:18:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 CE E2 08 01 A0 52 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 CA 99 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 04 00 00 00 F4 03 04 00 0F E9 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E1 1C 01 00 35 04 06 00 B4 8B 75 C9 E1 96 67 89 09 99 64 96 3D 17 [02:18:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 79 76 47 00 A3 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E1 1C 01 00 F4 03 04 00 C9 93 22 67 B6 04 01 00 00 91 2E D4 2C C1 A9 D3 43 [02:18:59]CommunicateWithHost err = 0 [02:18:59]CheckOFDResponse [02:18:59]1017 (14) - 77093643461234 [02:18:59]1041 (16) - 0000000000874662 [02:18:59]1040 (4) - 72929 [02:18:59]1012 (4) - 30.10.2024 20:15 [02:18:59]1206 (1) - 0 [02:18:59]OFD Sender: Remove packet 72929 [02:18:59]ProducePacketName [02:18:59]name=ofd_packets/00072929 [02:18:59]NVStorageDeleteData [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]recv_with_timeout no data received [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:35]recv_with_timeout no data received [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:03]recv_with_timeout no data received [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]recv_with_timeout no data received [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:54]recv_with_timeout no data received [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25: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:25:56]OFD Sender: No OFD packet to send [02:25:58]recv_with_timeout no data received [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:25]recv_with_timeout no data received [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:22]recv_with_timeout no data received [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:16]recv_with_timeout no data received [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:33]recv_with_timeout no data received [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:20]recv_with_timeout no data received [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:38]recv_with_timeout no data received [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:07]accept exits with 7 [02:35:07]New connection [02:35:07]New thread 3066617188 created [02:35:07]Thread 3066473828 joined [02:35:07]Waiting for new connection... [02:35:07] Sock 7.Parse request [02:35:07]Sock 7.Check first char [02:35:07]Sock 7.First char is OK [02:35:07]request: POST /json_proto HTTP/1.0 [02:35:07]Method: POST [02:35:07]URL: /json_proto [02:35:07]Method is POST - this is cgi request [02:35:07]url: /json_proto [02:35:07]query_string will be loaded in cgi processing [02:35:07]execute_cgi json_proto POST (null) [02:35:07]execute_cgi path=json_proto method=POST [02:35:07]POST find Content-Length [02:35:07]Host: 172.17.43.195:8080 [02:35:07]Content-Length: 792 [02:35:07]Content-Type: application/json [02:35:07] [02:35:07]POST finish read [02:35:07]Found Content-Length = 792 [02:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 44.850, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:07]execute_script... [02:35:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 44.850, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:07]POST & json_proto [02:35:07]process_json_proto [02:35:07]json parsed OK: [02:35:07]protocol is kg_v1.0 [02:35:07]action value=close_receipt [02:35:07]process_action close_receipt [02:35:07]cmd_close_receipt [02:35:07]MH_GetDate [02:35:07]Write to MH i2c: F0 00 00 99 02 8A [02:35:07]Write i2c OK [02:35:07]MH_I2C_Read... [02:35:07]Read from MH i2c: F0 [02:35:07]MH_I2C_Read... [02:35:07]Read from MH i2c: F0 09 00 [02:35:07]MH_I2C_Read... [02:35:07]Read from MH i2c: F0 09 00 99 02 00 DD EC 22 67 74 2C AD 66 98 [02:35:07]GetLastDocTimeStamp 1730341135 [02:35:07]current date 1730342109 [02:35:07]FM_GetShiftState [02:35:07]SAM_PROTO_GetShiftState [02:35:07]wFMCommunicate request_size=4 [02:35:07]MH_SAM_APDU [02:35:07]CAPDU: 80 13 01 00 [02:35:07]Write to MH i2c: E2 08 00 9A 02 80 13 01 00 00 00 00 00 19 [02:35:07]Write i2c OK [02:35:07]MH_I2C_Read... [02:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:07]Read from MH i2c: E2 [02:35:07]MH_I2C_Read... [02:35:07]Read from MH i2c: E2 0E 00 [02:35:07]MH_I2C_Read... [02:35:07]Read from MH i2c: E2 0E 00 9A 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 C2 [02:35:07]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [02:35:07]wFMCommunicate OK [02:35:07]SAM_PROTO_GetShiftState done [02:35:07]FM_GetShiftState done [02:35:07]opened in 1730333258 [02:35:07]opened+sec_in_day 1730419658 [02:35:07]quantity*price = 0 [02:35:07]sum+1 = 1 [02:35:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 5 31.10.2024 02:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72930 ФПД: 35792644211344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T023509&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72930&fm=35792644211344&tin=02508201610067®Number=0000000000091644&sum=0 [02:35:09]StoreToDocumentArchive [02:35:09]shift 557 fd 72930 [02:35:09]save to /storage/0557/doc_00072930 [02:35:09]save last doc name /storage/0557/doc_00072930 to /storage/kkm_last_doc_name [02:35:09]save OK [02:35:09]Clear old archive folders... [02:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:35:09]tlvbuf is 016144E0 [02:35:09]SAM_PROTO_ClearQueue [02:35:09]wFMCommunicate request_size=4 [02:35:09]MH_SAM_APDU [02:35:09]CAPDU: 80 09 00 00 [02:35:09]Write to MH i2c: E2 08 00 A7 02 80 09 00 00 00 00 00 00 1B [02:35:09]Write i2c OK [02:35:09]MH_I2C_Read... [02:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:35:09]Read from MH i2c: E2 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 03 00 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 03 00 A7 02 00 90 00 1D [02:35:09]RAPDU: 90 00 [02:35:09]wFMCommunicate OK [02:35:09]SAM_PROTO_ClearQueue done [02:35:09]KKMCreateOFDPacket [02:35:09]OFDProtocolAddRootSTLVToBuf [02:35:09]FM_MakeSignedData [02:35:09]FM_MakeSignedData [02:35:09]SAM_PROTO_SignData [02:35:09]wFMCommunicate request_size=4 [02:35:09]MH_SAM_APDU [02:35:09]CAPDU: 80 0D 01 02 [02:35:09]Write to MH i2c: E2 08 00 A8 02 80 0D 01 02 00 00 00 00 23 [02:35:09]Write i2c OK [02:35:09]MH_I2C_Read... [02:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:35:09]Read from MH i2c: E2 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 03 00 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 03 00 A8 02 00 90 00 1E [02:35:09]RAPDU: 90 00 [02:35:09]wFMCommunicate OK [02:35:09]wFMCommunicate request_size=255 [02:35:09]MH_SAM_APDU [02:35:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DD EC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E2 1C 01 00 35 04 06 00 20 [02:35:09]Write to MH i2c: E2 02 01 A9 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 32 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DD EC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E2 1C 01 00 35 04 06 00 20 00 00 B3 [02:35:09]Write i2c OK [02:35:09]MH_I2C_Read... [02:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:09]Read from MH i2c: E2 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 03 00 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 03 00 A9 02 00 90 00 1F [02:35:09]RAPDU: 90 00 [02:35:09]wFMCommunicate OK [02:35:09]wFMCommunicate request_size=10 [02:35:09]MH_SAM_APDU [02:35:09]CAPDU: 80 0D 02 02 05 8D 9F D8 02 90 [02:35:09]Write to MH i2c: E2 0D 00 AA 02 80 0D 02 02 05 00 8D 9F D8 02 90 00 00 C6 [02:35:09]Write i2c OK [02:35:09]MH_I2C_Read... [02:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:09]Read from MH i2c: E2 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 03 00 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 03 00 AA 02 00 90 00 20 [02:35:09]RAPDU: 90 00 [02:35:09]wFMCommunicate OK [02:35:09]wFMCommunicate request_size=4 [02:35:09]MH_SAM_APDU [02:35:09]CAPDU: 80 0D 03 02 [02:35:09]Write to MH i2c: E2 08 00 AB 02 80 0D 03 02 00 00 00 00 28 [02:35:09]Write i2c OK [02:35:09]MH_I2C_Read... [02:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:35:09]Read from MH i2c: E2 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 0B 00 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 0B 00 AB 02 00 96 28 61 FC 56 C9 A8 6D 90 00 78 [02:35:09]RAPDU: 96 28 61 FC 56 C9 A8 6D 90 00 [02:35:09]wFMCommunicate OK [02:35:09]SAM_PROTO_SignData done [02:35:09]FM_MakeSignedData done [02:35:09]CreateOFDProtocolMessage [02:35:09]wFMCommunicate request_size=4 [02:35:09]MH_SAM_APDU [02:35:09]CAPDU: 80 11 00 00 [02:35:09]Write to MH i2c: E2 08 00 AC 02 80 11 00 00 00 00 00 00 28 [02:35:09]Write i2c OK [02:35:09]MH_I2C_Read... [02:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:09]Read from MH i2c: E2 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 17 00 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: E2 17 00 AC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [02:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:35:09]wFMCommunicate OK [02:35:09]CreateOFDProtocolMessage done [02:35:09]OFDSenderStorePacket 72930 [02:35:09]StoreOFDPacket docnum=72930 [02:35:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 61 A8 07 01 26 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DD EC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E2 1C 01 00 35 04 06 00 20 8D 9F D8 02 90 96 28 61 FC 56 C9 A8 6D [02:35:09]CheckFolder [02:35:09]dirname=/storage/ofd_packets [02:35:09]CheckFolder done [02:35:09]ProducePacketName [02:35:09]name=ofd_packets/00072930 [02:35:09]NVStorageSaveData ofd_packets/00072930 [02:35:09]File name is /storage/ofd_packets/00072930 [02:35:09]Write 301 bytes [02:35:09]NVStorageSaveData done [02:35:09]OFDSenderStorePacket done [02:35:09]KKMCreateOFDPacket done [02:35:09]NVStorageSaveData kkm_last_timestamp [02:35:09]File name is /storage/kkm_last_timestamp [02:35:09]Write 4 bytes [02:35:09]NVStorageSaveData done [02:35:09]ExternCall_PrintAddStr [02:35:09]wPrintStart [02:35:09]Write to MH i2c: 01 00 00 AD 02 AF [02:35:09]Write i2c OK [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: 01 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: 01 07 00 [02:35:09]MH_I2C_Read... [02:35:09]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 FF 0F C4 [02:35:09]RasterBufferAndPrint [02:35:09]line Счет N : (1)952530 [02:35:09]line ИНН: 02508201610067 [02:35:09]line Контрольно-Кассовый Чек [02:35:09]line ПРОДАЖА [02:35:09]line ТРК (МРК, ГНК) : 53 [02:35:09]line Товар: 2710124130 [02:35:09]line Аи-92-К-5 [02:35:09]line 44.850 * 0.00 [02:35:09]line = 0.00 [02:35:09]line НДС 12% НСП 1% [02:35:09]line > о реализуемом товаре [02:35:09]line ИТОГО: 0.00 [02:35:09]line НСП 1% : 0.00 [02:35:09]line НДС 12% : 0.00 [02:35:09]line Наличными: 0.00 [02:35:09]line Безнал.: 0.00 [02:35:09]line Место: АЗС № 113 "Партнер Нефть" [02:35:09]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [02:35:09]line СНО: Общий режим [02:35:09]line Чек 5 31.10.2024 02:35 [02:35:09]line Смена: 557 ФФД: 1.0 [02:35:09]line ЗНМ: 0300000087 [02:35:09]line РНМ: 0000000000091644 [02:35:09]line Версия ККМ: 001 [02:35:09]line Талоны: Топливная Карта [02:35:09]line 03047 [02:35:09]line ФМ: 0000000000874662 [02:35:09]line ФД: 72930 [02:35:09]line ФПД: 35792644211344 [02:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T023509&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72930&fm=35792644211344&tin=02508201610067®Number=0000000000091644&sum=0 [02:35:09]written 0, free lines is 4095 [02:35:09]OFD Sender: Processing packet 72930 [packets to send 279, broken 278] [02:35:09]ProducePacketName [02:35:09]name=ofd_packets/00072930 [02:35:09]OFD Sender: To server: pG, [02:35:09]CommunicateWithHost lk.salyk.kg:30040 [02:35:09]ConnectInit lk.salyk.kg [02:35:10]Write to MH i2c: 01 00 00 D7 02 D9 [02:35:10]Write i2c OK [02:35:10]MH_I2C_Read... [02:35:10]Read from MH i2c: 01 [02:35:10]MH_I2C_Read... [02:35:10]Read from MH i2c: 01 07 00 [02:35:10]MH_I2C_Read... [02:35:10]Read from MH i2c: 01 07 00 D7 02 00 00 00 00 00 DF 0C CB [02:35:10]RasterBufferAndPrint [02:35:10]line [02:35:10]line [02:35:10]line [02:35:10]line [02:35:10]line [02:35:10]written 0, free lines is 3301 [02:35:10]MH_Cut [02:35:10]Write to MH i2c: D1 01 00 DE 02 01 B2 [02:35:10]Write i2c OK [02:35:10]MH_I2C_Read... [02:35:10]Read from MH i2c: D1 [02:35:10]MH_I2C_Read... [02:35:10]Read from MH i2c: D1 01 00 [02:35:10]MH_I2C_Read... [02:35:10]Read from MH i2c: D1 01 00 DE 02 00 B1 [02:35:10]Write to MH i2c: 01 00 00 DF 02 E1 [02:35:10]Write i2c OK [02:35:10]MH_I2C_Read... [02:35:10]Connected sock=9 [02:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 61 A8 07 01 26 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DD EC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E2 1C 01 00 35 04 06 00 20 8D 9F D8 02 90 96 28 61 FC 56 C9 A8 6D [02:35:10]*** Cut start [02:35:10]*** Partial cut [02:35:10]*** CUTSNS_PIN = 1 [02:35:10]*** CUTSNS_PIN = 0 [02:35:11]*** Brake cut motor [02:35:11]Read from MH i2c: 01 [02:35:11]MH_I2C_Read... [02:35:11]*** Stop cut motor [02:35:11]*** Cut end [02:35:11]Read from MH i2c: 01 07 00 [02:35:11]MH_I2C_Read... [02:35:11]Read from MH i2c: 01 07 00 DF 02 00 00 00 00 00 FF 0F F6 [02:35:11]process_action close_receipt done [02:35:11]requested_data is exist [02:35:11]produce_requested_data [02:35:11]requested_item fm.sn is exist - process it [02:35:11]wFMCommunicate request_size=4 [02:35:11]MH_SAM_APDU [02:35:11]CAPDU: 80 11 00 00 [02:35:11]Write to MH i2c: E2 08 00 E0 02 80 11 00 00 00 00 00 00 5C [02:35:11]Write i2c OK [02:35:11]MH_I2C_Read... [02:35:11]Read from MH i2c: E2 [02:35:11]MH_I2C_Read... [02:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:11]Read from MH i2c: E2 17 00 [02:35:11]MH_I2C_Read... [02:35:11]Read from MH i2c: E2 17 00 E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B0 [02:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:35:11]wFMCommunicate OK [02:35:11]requested_item fd.num is exist - process it [02:35:11]SAM_PROTO_GetFieldsCounters [02:35:11]wFMCommunicate request_size=4 [02:35:11]MH_SAM_APDU [02:35:11]CAPDU: 80 13 00 00 [02:35:11]Write to MH i2c: E2 08 00 E1 02 80 13 00 00 00 00 00 00 5F [02:35:11]Write i2c OK [02:35:11]MH_I2C_Read... [02:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C8 8A 47 00 70 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 38 37 34 36 36 32 10 04 04 00 E2 1C 01 00 F4 03 04 00 94 97 22 67 B6 04 01 00 00 C0 94 ED D8 8E F9 5B 5E [02:35:11]CommunicateWithHost err = 0 [02:35:11]CheckOFDResponse [02:35:11]1017 (14) - 77093643461234 [02:35:11]1041 (16) - 0000000000874662 [02:35:11]1040 (4) - 72930 [02:35:11]1012 (4) - 30.10.2024 20:31 [02:35:11]1206 (1) - 0 [02:35:11]OFD Sender: Remove packet 72930 [02:35:11]ProducePacketName [02:35:11]name=ofd_packets/00072930 [02:35:11]NVStorageDeleteData [02:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:35:11]Read from MH i2c: E2 [02:35:11]MH_I2C_Read... [02:35:11]Read from MH i2c: E2 62 00 [02:35:11]MH_I2C_Read... [02:35:11]Read from MH i2c: E2 62 00 E1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E2 1C 01 00 0E 04 04 00 2D 02 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 BD [02:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E2 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:35:11]wFMCommunicate OK [02:35:11]SAM_PROTO_GetFieldsCounters done [02:35:11]requested_item shift.num is exist - process it [02:35:11]requested_item shift.opened is exist - process it [02:35:11]req_shift_opened [02:35:11]FM_GetShiftState [02:35:11]SAM_PROTO_GetShiftState [02:35:11]wFMCommunicate request_size=4 [02:35:11]MH_SAM_APDU [02:35:11]CAPDU: 80 13 01 00 [02:35:11]Write to MH i2c: E2 08 00 E2 02 80 13 01 00 00 00 00 00 61 [02:35:11]Write i2c OK [02:35:11]MH_I2C_Read... [02:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:11]Read from MH i2c: E2 [02:35:11]MH_I2C_Read... [02:35:11]Read from MH i2c: E2 0E 00 [02:35:11]MH_I2C_Read... [02:35:11]Read from MH i2c: E2 0E 00 E2 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0A [02:35:11]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [02:35:11]wFMCommunicate OK [02:35:11]SAM_PROTO_GetShiftState done [02:35:11]FM_GetShiftState done [02:35:11]req_shift_opened done [02:35:11]requested_item shift.open_date is exist - process it [02:35:11]req_shift_open_date [02:35:11]req_shift_open_date done [02:35:11]produce_requested_data done [02:35:11]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72930,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [02:35:11]process_action_free close_receipt [02:35:11]json_value_free [02:35:11]json_value_free done [02:35:11]process_json_proto returns [02:35:11]Send response to host [02:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72930,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [02:35:11]free response buf [02:35:11]execute_script done [02:35:11]execute_script returns [02:35:11]free content buf [02:35:11]Sock 7.Close socket [02:35:11]Sock 7.Thread stoped [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:53]recv_with_timeout no data received [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:54]recv_with_timeout no data received [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:05]recv_with_timeout no data received [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:36]recv_with_timeout no data received [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:04]recv_with_timeout no data received [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:37]recv_with_timeout no data received [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]recv_with_timeout no data received [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:42]recv_with_timeout no data received [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:11]recv_with_timeout no data received [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:28]recv_with_timeout no data received [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:11]recv_with_timeout no data received [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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]accept exits with 10 [02:43:27]New connection [02:43:27]New thread 3066473828 created [02:43:27]Thread 3066617188 joined [02:43:27]Waiting for new connection... [02:43:27] Sock 10.Parse request [02:43:27]Sock 10.Check first char [02:43:27]Sock 10.First char is OK [02:43:27]request: POST /json_proto HTTP/1.0 [02:43:27]Method: POST [02:43:27]URL: /json_proto [02:43:27]Method is POST - this is cgi request [02:43:27]url: /json_proto [02:43:27]query_string will be loaded in cgi processing [02:43:27]execute_cgi json_proto POST (null) [02:43:27]execute_cgi path=json_proto method=POST [02:43:27]POST find Content-Length [02:43:27]Host: 172.17.43.195:8080 [02:43:27]Content-Length: 658 [02:43:27]Content-Type: application/json [02:43:27] [02:43:27]POST finish read [02:43:27]Found Content-Length = 658 [02:43:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:27]execute_script... [02:43:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:27]POST & json_proto [02:43:27]process_json_proto [02:43:27]json parsed OK: [02:43:27]protocol is kg_v1.0 [02:43:27]action value=close_receipt [02:43:27]process_action close_receipt [02:43:27]cmd_close_receipt [02:43:27]MH_GetDate [02:43:27]Write to MH i2c: F0 00 00 E3 02 D4 [02:43:27]Write i2c OK [02:43:27]MH_I2C_Read... [02:43:27]Read from MH i2c: F0 [02:43:27]MH_I2C_Read... [02:43:27]Read from MH i2c: F0 09 00 [02:43:27]MH_I2C_Read... [02:43:27]Read from MH i2c: F0 09 00 E3 02 00 D0 EE 22 67 74 2C AD 66 D7 [02:43:27]GetLastDocTimeStamp 1730342109 [02:43:27]current date 1730342608 [02:43:27]FM_GetShiftState [02:43:27]SAM_PROTO_GetShiftState [02:43:27]wFMCommunicate request_size=4 [02:43:27]MH_SAM_APDU [02:43:27]CAPDU: 80 13 01 00 [02:43:27]Write to MH i2c: E2 08 00 E4 02 80 13 01 00 00 00 00 00 63 [02:43:27]Write i2c OK [02:43:27]MH_I2C_Read... [02:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:27]Read from MH i2c: E2 [02:43:27]MH_I2C_Read... [02:43:27]Read from MH i2c: E2 0E 00 [02:43:27]MH_I2C_Read... [02:43:27]Read from MH i2c: E2 0E 00 E4 02 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 0C [02:43:27]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [02:43:27]wFMCommunicate OK [02:43:27]SAM_PROTO_GetShiftState done [02:43:27]FM_GetShiftState done [02:43:27]opened in 1730333258 [02:43:27]opened+sec_in_day 1730419658 [02:43:27]quantity*price = 40014 [02:43:27]sum+1 = 40015 [02:43:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 6 31.10.2024 02:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72931 ФПД: 137809041848903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024328&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72931&fm=137809041848903&tin=02508201610067®Number=0000000000091644&sum=40000 [02:43:28]StoreToDocumentArchive [02:43:28]shift 557 fd 72931 [02:43:28]save to /storage/0557/doc_00072931 [02:43:28]save last doc name /storage/0557/doc_00072931 to /storage/kkm_last_doc_name [02:43:28]save OK [02:43:28]Clear old archive folders... [02:43:28]ProcessDocumentItem done err = 0, tmpTLVsize=244 [02:43:28]tlvbuf is 013F40C0 [02:43:28]SAM_PROTO_ClearQueue [02:43:28]wFMCommunicate request_size=4 [02:43:28]MH_SAM_APDU [02:43:28]CAPDU: 80 09 00 00 [02:43:28]Write to MH i2c: E2 08 00 F1 02 80 09 00 00 00 00 00 00 65 [02:43:28]Write i2c OK [02:43:28]MH_I2C_Read... [02:43:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:43:28]Read from MH i2c: E2 [02:43:28]MH_I2C_Read... [02:43:28]Read from MH i2c: E2 03 00 [02:43:28]MH_I2C_Read... [02:43:28]Read from MH i2c: E2 03 00 F1 02 00 90 00 67 [02:43:28]RAPDU: 90 00 [02:43:28]wFMCommunicate OK [02:43:28]SAM_PROTO_ClearQueue done [02:43:28]KKMCreateOFDPacket [02:43:28]OFDProtocolAddRootSTLVToBuf [02:43:28]FM_MakeSignedData [02:43:28]FM_MakeSignedData [02:43:28]SAM_PROTO_SignData [02:43:28]wFMCommunicate request_size=4 [02:43:28]MH_SAM_APDU [02:43:28]CAPDU: 80 0D 01 02 [02:43:28]Write to MH i2c: E2 08 00 F2 02 80 0D 01 02 00 00 00 00 6D [02:43:28]Write i2c OK [02:43:28]MH_I2C_Read... [02:43:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:43:28]Read from MH i2c: E2 [02:43:28]MH_I2C_Read... [02:43:28]Read from MH i2c: E2 03 00 [02:43:28]MH_I2C_Read... [02:43:28]Read from MH i2c: E2 03 00 F2 02 00 90 00 68 [02:43:28]RAPDU: 90 00 [02:43:28]wFMCommunicate OK [02:43:28]wFMCommunicate request_size=253 [02:43:28]MH_SAM_APDU [02:43:28]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 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 06 00 00 00 F4 03 04 00 D0 EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E3 1C 01 00 35 04 06 00 7D 56 2A FC 7A 47 [02:43:28]Write to MH i2c: E2 00 01 F3 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 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 06 00 00 00 F4 03 04 00 D0 EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E3 1C 01 00 35 04 06 00 7D 56 2A FC 7A 47 00 00 86 [02:43:28]Write i2c OK [02:43:28]MH_I2C_Read... [02:43:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:29]Read from MH i2c: E2 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: E2 03 00 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: E2 03 00 F3 02 00 90 00 69 [02:43:29]RAPDU: 90 00 [02:43:29]wFMCommunicate OK [02:43:29]wFMCommunicate request_size=4 [02:43:29]MH_SAM_APDU [02:43:29]CAPDU: 80 0D 03 02 [02:43:29]Write to MH i2c: E2 08 00 F4 02 80 0D 03 02 00 00 00 00 71 [02:43:29]Write i2c OK [02:43:29]MH_I2C_Read... [02:43:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:43:29]Read from MH i2c: E2 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: E2 0B 00 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: E2 0B 00 F4 02 00 31 13 05 D8 96 84 8C 17 90 00 50 [02:43:29]RAPDU: 31 13 05 D8 96 84 8C 17 90 00 [02:43:29]wFMCommunicate OK [02:43:29]SAM_PROTO_SignData done [02:43:29]FM_MakeSignedData done [02:43:29]CreateOFDProtocolMessage [02:43:29]wFMCommunicate request_size=4 [02:43:29]MH_SAM_APDU [02:43:29]CAPDU: 80 11 00 00 [02:43:29]Write to MH i2c: E2 08 00 F5 02 80 11 00 00 00 00 00 00 71 [02:43:29]Write i2c OK [02:43:29]MH_I2C_Read... [02:43:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:29]Read from MH i2c: E2 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: E2 17 00 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: E2 17 00 F5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [02:43:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:43:29]wFMCommunicate OK [02:43:29]CreateOFDProtocolMessage done [02:43:29]OFDSenderStorePacket 72931 [02:43:29]StoreOFDPacket docnum=72931 [02:43:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 05 EA 00 01 30 CE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 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 06 00 00 00 F4 03 04 00 D0 EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E3 1C 01 00 35 04 06 00 7D 56 2A FC 7A 47 31 13 05 D8 96 84 8C 17 [02:43:29]CheckFolder [02:43:29]dirname=/storage/ofd_packets [02:43:29]CheckFolder done [02:43:29]ProducePacketName [02:43:29]name=ofd_packets/00072931 [02:43:29]NVStorageSaveData ofd_packets/00072931 [02:43:29]File name is /storage/ofd_packets/00072931 [02:43:29]Write 294 bytes [02:43:29]NVStorageSaveData done [02:43:29]OFDSenderStorePacket done [02:43:29]KKMCreateOFDPacket done [02:43:29]NVStorageSaveData kkm_last_timestamp [02:43:29]File name is /storage/kkm_last_timestamp [02:43:29]Write 4 bytes [02:43:29]NVStorageSaveData done [02:43:29]ExternCall_PrintAddStr [02:43:29]wPrintStart [02:43:29]Write to MH i2c: 01 00 00 F6 02 F8 [02:43:29]Write i2c OK [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: 01 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: 01 07 00 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: 01 07 00 F6 02 00 00 00 00 00 FF 0F 0D [02:43:29]RasterBufferAndPrint [02:43:29]line Счет N : (1)952531 [02:43:29]line ИНН: 02508201610067 [02:43:29]line Контрольно-Кассовый Чек [02:43:29]line ПРОДАЖА [02:43:29]line ТРК (МРК, ГНК) : 61 [02:43:29]line Товар: 50.50.0 [02:43:29]line Super 92 [02:43:29]line 5.850 * 68.40 [02:43:29]line = 400.14 [02:43:29]line НДС 12% НСП 1% [02:43:29]line > о реализуемом товаре [02:43:29]line ОКРУГЛЕНИЕ: -0.14 [02:43:29]line ИТОГО: 400.00 [02:43:29]line Внесено: 400.00 [02:43:29]line СДАЧА: 0.00 [02:43:29]line НСП 1% : 3.54 [02:43:29]line НДС 12% : 42.49 [02:43:29]line Наличными: 400.00 [02:43:29]line Безнал.: 0.00 [02:43:29]line Место: АЗС № 113 "Партнер Нефть" [02:43:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [02:43:29]line СНО: Общий режим [02:43:29]line Чек 6 31.10.2024 02:43 [02:43:29]line Смена: 557 ФФД: 1.0 [02:43:29]line ЗНМ: 0300000087 [02:43:29]line РНМ: 0000000000091644 [02:43:29]line Версия ККМ: 001 [02:43:29]line ФМ: 0000000000874662 [02:43:29]line ФД: 72931 [02:43:29]line ФПД: 137809041848903 [02:43:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024328&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72931&fm=137809041848903&tin=02508201610067®Number=0000000000091644&sum=40000 [02:43:29]written 0, free lines is 4095 [02:43:29]OFD Sender: Processing packet 72931 [packets to send 279, broken 278] [02:43:29]ProducePacketName [02:43:29]name=ofd_packets/00072931 [02:43:29]OFD Sender: To server: pG, [02:43:29]CommunicateWithHost lk.salyk.kg:30040 [02:43:29]ConnectInit lk.salyk.kg [02:43:29]Write to MH i2c: 01 00 00 21 03 24 [02:43:29]Write i2c OK [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: 01 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: 01 07 00 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: 01 07 00 21 03 00 00 00 00 00 D5 0C 0C [02:43:29]RasterBufferAndPrint [02:43:29]line [02:43:29]line [02:43:29]line [02:43:29]line [02:43:29]line [02:43:29]written 0, free lines is 3292 [02:43:29]MH_Cut [02:43:29]Write to MH i2c: D1 01 00 28 03 01 FD [02:43:29]Write i2c OK [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: D1 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: D1 01 00 [02:43:29]MH_I2C_Read... [02:43:29]Read from MH i2c: D1 01 00 28 03 00 FC [02:43:29]Write to MH i2c: 01 00 00 29 03 2C [02:43:29]Write i2c OK [02:43:29]MH_I2C_Read... [02:43:30]*** Cut start [02:43:30]*** Partial cut [02:43:30]*** CUTSNS_PIN = 1 [02:43:30]*** CUTSNS_PIN = 0 [02:43:30]*** Brake cut motor [02:43:30]Read from MH i2c: 01 [02:43:30]MH_I2C_Read... [02:43:30]*** Stop cut motor [02:43:30]*** Cut end [02:43:30]Read from MH i2c: 01 07 00 [02:43:30]MH_I2C_Read... [02:43:30]Read from MH i2c: 01 07 00 29 03 00 00 00 00 00 FF 0F 41 [02:43:30]process_action close_receipt done [02:43:30]requested_data is exist [02:43:30]produce_requested_data [02:43:30]requested_item fm.sn is exist - process it [02:43:30]wFMCommunicate request_size=4 [02:43:30]MH_SAM_APDU [02:43:30]CAPDU: 80 11 00 00 [02:43:30]Write to MH i2c: E2 08 00 2A 03 80 11 00 00 00 00 00 00 A7 [02:43:30]Write i2c OK [02:43:30]MH_I2C_Read... [02:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:31]Read from MH i2c: E2 [02:43:31]MH_I2C_Read... [02:43:31]Read from MH i2c: E2 17 00 [02:43:31]MH_I2C_Read... [02:43:31]Read from MH i2c: E2 17 00 2A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FB [02:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:43:31]wFMCommunicate OK [02:43:31]requested_item fd.num is exist - process it [02:43:31]SAM_PROTO_GetFieldsCounters [02:43:31]wFMCommunicate request_size=4 [02:43:31]MH_SAM_APDU [02:43:31]CAPDU: 80 13 00 00 [02:43:31]Write to MH i2c: E2 08 00 2B 03 80 13 00 00 00 00 00 00 AA [02:43:31]Write i2c OK [02:43:31]MH_I2C_Read... [02:43:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:43:31]Read from MH i2c: E2 [02:43:31]MH_I2C_Read... [02:43:31]Read from MH i2c: E2 62 00 [02:43:31]MH_I2C_Read... [02:43:31]Read from MH i2c: E2 62 00 2B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E3 1C 01 00 0E 04 04 00 2D 02 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 0C [02:43:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E3 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:43:31]wFMCommunicate OK [02:43:31]SAM_PROTO_GetFieldsCounters done [02:43:31]requested_item shift.num is exist - process it [02:43:31]requested_item shift.opened is exist - process it [02:43:31]req_shift_opened [02:43:31]FM_GetShiftState [02:43:31]SAM_PROTO_GetShiftState [02:43:31]wFMCommunicate request_size=4 [02:43:31]MH_SAM_APDU [02:43:31]CAPDU: 80 13 01 00 [02:43:31]Write to MH i2c: E2 08 00 2C 03 80 13 01 00 00 00 00 00 AC [02:43:31]Write i2c OK [02:43:31]MH_I2C_Read... [02:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:31]Read from MH i2c: E2 [02:43:31]MH_I2C_Read... [02:43:31]Read from MH i2c: E2 0E 00 [02:43:31]MH_I2C_Read... [02:43:31]Read from MH i2c: E2 0E 00 2C 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 55 [02:43:31]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [02:43:31]wFMCommunicate OK [02:43:31]SAM_PROTO_GetShiftState done [02:43:31]FM_GetShiftState done [02:43:31]req_shift_opened done [02:43:31]requested_item shift.open_date is exist - process it [02:43:31]req_shift_open_date [02:43:31]req_shift_open_date done [02:43:31]produce_requested_data done [02:43:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72931,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [02:43:31]process_action_free close_receipt [02:43:31]json_value_free [02:43:31]json_value_free done [02:43:31]process_json_proto returns [02:43:31]Send response to host [02:43:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72931,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [02:43:31]free response buf [02:43:31]execute_script done [02:43:31]execute_script returns [02:43:31]free content buf [02:43:31]Sock 10.Close socket [02:43:31]Sock 10.Thread stoped [02:43:31]Connected sock=9 [02:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 05 EA 00 01 30 CE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 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 06 00 00 00 F4 03 04 00 D0 EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E3 1C 01 00 35 04 06 00 7D 56 2A FC 7A 47 31 13 05 D8 96 84 8C 17 [02:43:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7E 55 47 00 72 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E3 1C 01 00 F4 03 04 00 8D 99 22 67 B6 04 01 00 00 59 58 6B C8 C6 BA 53 DF [02:43:35]CommunicateWithHost err = 0 [02:43:35]CheckOFDResponse [02:43:35]1017 (14) - 77093643461234 [02:43:35]1041 (16) - 0000000000874662 [02:43:35]1040 (4) - 72931 [02:43:35]1012 (4) - 30.10.2024 20:39 [02:43:35]1206 (1) - 0 [02:43:35]OFD Sender: Remove packet 72931 [02:43:35]ProducePacketName [02:43:35]name=ofd_packets/00072931 [02:43:35]NVStorageDeleteData [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:18]recv_with_timeout no data received [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:30]recv_with_timeout no data received [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:49]recv_with_timeout no data received [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:12]recv_with_timeout no data received [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:22]recv_with_timeout no data received [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:39]recv_with_timeout no data received [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:34]recv_with_timeout no data received [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:52]recv_with_timeout no data received [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:21]recv_with_timeout no data received [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:25]recv_with_timeout no data received [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]recv_with_timeout no data received [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:13]recv_with_timeout no data received [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:43]recv_with_timeout no data received [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:22]recv_with_timeout no data received [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:23]recv_with_timeout no data received [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:15]recv_with_timeout no data received [02:58:17]OFD Sender: No OFD packet to send [02:58:20]accept exits with 7 [02:58:20]New connection [02:58:20]New thread 3066617188 created [02:58:20]Thread 3066473828 joined [02:58:20]Waiting for new connection... [02:58:20] Sock 7.Parse request [02:58:20]Sock 7.Check first char [02:58:20]Sock 7.First char is OK [02:58:20]request: POST /json_proto HTTP/1.0 [02:58:20]Method: POST [02:58:20]URL: /json_proto [02:58:20]Method is POST - this is cgi request [02:58:20]url: /json_proto [02:58:20]query_string will be loaded in cgi processing [02:58:20]execute_cgi json_proto POST (null) [02:58:20]execute_cgi path=json_proto method=POST [02:58:20]POST find Content-Length [02:58:20]Host: 172.17.43.195:8080 [02:58:20]Content-Length: 848 [02:58:20]Content-Type: application/json [02:58:20] [02:58:20]POST finish read [02:58:20]Found Content-Length = 848 [02:58:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952532", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:20]execute_script... [02:58:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952532", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:20]POST & json_proto [02:58:20]process_json_proto [02:58:20]json parsed OK: [02:58:20]protocol is kg_v1.0 [02:58:20]action value=close_receipt [02:58:20]process_action close_receipt [02:58:20]cmd_close_receipt [02:58:20]MH_GetDate [02:58:20]Write to MH i2c: F0 00 00 2D 03 1F [02:58:20]Write i2c OK [02:58:20]MH_I2C_Read... [02:58:20]Read from MH i2c: F0 [02:58:20]MH_I2C_Read... [02:58:20]Read from MH i2c: F0 09 00 [02:58:20]MH_I2C_Read... [02:58:20]Read from MH i2c: F0 09 00 2D 03 00 4E F2 22 67 74 2C AD 66 A4 [02:58:20]GetLastDocTimeStamp 1730342608 [02:58:20]current date 1730343502 [02:58:20]FM_GetShiftState [02:58:20]SAM_PROTO_GetShiftState [02:58:20]wFMCommunicate request_size=4 [02:58:20]MH_SAM_APDU [02:58:20]CAPDU: 80 13 01 00 [02:58:20]Write to MH i2c: E2 08 00 2E 03 80 13 01 00 00 00 00 00 AE [02:58:20]Write i2c OK [02:58:20]MH_I2C_Read... [02:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:20]Read from MH i2c: E2 [02:58:20]MH_I2C_Read... [02:58:20]Read from MH i2c: E2 0E 00 [02:58:20]MH_I2C_Read... [02:58:20]Read from MH i2c: E2 0E 00 2E 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 57 [02:58:20]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [02:58:20]wFMCommunicate OK [02:58:20]SAM_PROTO_GetShiftState done [02:58:20]FM_GetShiftState done [02:58:20]opened in 1730333258 [02:58:20]opened+sec_in_day 1730419658 [02:58:20]quantity*price = 300075 [02:58:20]sum+1 = 300077 [02:58:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 7 31.10.2024 02:58 Смена: 557 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72932 ФПД: 83665868892892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T025822&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72932&fm=83665868892892&tin=02508201610067®Number=0000000000091644&sum=300076 [02:58:22]StoreToDocumentArchive [02:58:22]shift 557 fd 72932 [02:58:22]save to /storage/0557/doc_00072932 [02:58:22]save last doc name /storage/0557/doc_00072932 to /storage/kkm_last_doc_name [02:58:22]save OK [02:58:22]Clear old archive folders... [02:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:58:22]tlvbuf is 01626080 [02:58:22]SAM_PROTO_ClearQueue [02:58:22]wFMCommunicate request_size=4 [02:58:22]MH_SAM_APDU [02:58:22]CAPDU: 80 09 00 00 [02:58:22]Write to MH i2c: E2 08 00 3B 03 80 09 00 00 00 00 00 00 B0 [02:58:22]Write i2c OK [02:58:22]MH_I2C_Read... [02:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:58:22]Read from MH i2c: E2 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 03 00 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 03 00 3B 03 00 90 00 B2 [02:58:22]RAPDU: 90 00 [02:58:22]wFMCommunicate OK [02:58:22]SAM_PROTO_ClearQueue done [02:58:22]KKMCreateOFDPacket [02:58:22]OFDProtocolAddRootSTLVToBuf [02:58:22]FM_MakeSignedData [02:58:22]FM_MakeSignedData [02:58:22]SAM_PROTO_SignData [02:58:22]wFMCommunicate request_size=4 [02:58:22]MH_SAM_APDU [02:58:22]CAPDU: 80 0D 01 02 [02:58:22]Write to MH i2c: E2 08 00 3C 03 80 0D 01 02 00 00 00 00 B8 [02:58:22]Write i2c OK [02:58:22]MH_I2C_Read... [02:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:58:22]Read from MH i2c: E2 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 03 00 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 03 00 3C 03 00 90 00 B3 [02:58:22]RAPDU: 90 00 [02:58:22]wFMCommunicate OK [02:58:22]wFMCommunicate request_size=255 [02:58:22]MH_SAM_APDU [02:58: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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 4E F2 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E4 1C 01 00 35 04 06 00 [02:58:22]Write to MH i2c: E2 02 01 3D 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 4E F2 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E4 1C 01 00 35 04 06 00 00 00 F6 [02:58:22]Write i2c OK [02:58:22]MH_I2C_Read... [02:58:22]OFD Sender: No OFD packet to send [02:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:22]Read from MH i2c: E2 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 03 00 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 03 00 3D 03 00 90 00 B4 [02:58:22]RAPDU: 90 00 [02:58:22]wFMCommunicate OK [02:58:22]wFMCommunicate request_size=11 [02:58:22]MH_SAM_APDU [02:58:22]CAPDU: 80 0D 02 02 06 4C 17 FA 65 2A DC [02:58:22]Write to MH i2c: E2 0E 00 3E 03 80 0D 02 02 06 00 4C 17 FA 65 2A DC 00 00 8F [02:58:22]Write i2c OK [02:58:22]MH_I2C_Read... [02:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:22]Read from MH i2c: E2 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 03 00 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 03 00 3E 03 00 90 00 B5 [02:58:22]RAPDU: 90 00 [02:58:22]wFMCommunicate OK [02:58:22]wFMCommunicate request_size=4 [02:58:22]MH_SAM_APDU [02:58:22]CAPDU: 80 0D 03 02 [02:58:22]Write to MH i2c: E2 08 00 3F 03 80 0D 03 02 00 00 00 00 BD [02:58:22]Write i2c OK [02:58:22]MH_I2C_Read... [02:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:58:22]Read from MH i2c: E2 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 0B 00 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 0B 00 3F 03 00 84 7C 9C 9F 23 27 D4 F4 90 00 0B [02:58:22]RAPDU: 84 7C 9C 9F 23 27 D4 F4 90 00 [02:58:22]wFMCommunicate OK [02:58:22]SAM_PROTO_SignData done [02:58:22]FM_MakeSignedData done [02:58:22]CreateOFDProtocolMessage [02:58:22]wFMCommunicate request_size=4 [02:58:22]MH_SAM_APDU [02:58:22]CAPDU: 80 11 00 00 [02:58:22]Write to MH i2c: E2 08 00 40 03 80 11 00 00 00 00 00 00 BD [02:58:22]Write i2c OK [02:58:22]MH_I2C_Read... [02:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:22]Read from MH i2c: E2 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 17 00 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: E2 17 00 40 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [02:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:58:22]wFMCommunicate OK [02:58:22]CreateOFDProtocolMessage done [02:58:22]OFDSenderStorePacket 72932 [02:58:22]StoreOFDPacket docnum=72932 [02:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 60 6D 08 01 49 D0 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 4E F2 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E4 1C 01 00 35 04 06 00 4C 17 FA 65 2A DC 84 7C 9C 9F 23 27 D4 F4 [02:58:22]CheckFolder [02:58:22]dirname=/storage/ofd_packets [02:58:22]CheckFolder done [02:58:22]ProducePacketName [02:58:22]name=ofd_packets/00072932 [02:58:22]NVStorageSaveData ofd_packets/00072932 [02:58:22]File name is /storage/ofd_packets/00072932 [02:58:22]Write 302 bytes [02:58:22]NVStorageSaveData done [02:58:22]OFDSenderStorePacket done [02:58:22]KKMCreateOFDPacket done [02:58:22]NVStorageSaveData kkm_last_timestamp [02:58:22]File name is /storage/kkm_last_timestamp [02:58:22]Write 4 bytes [02:58:22]NVStorageSaveData done [02:58:22]ExternCall_PrintAddStr [02:58:22]wPrintStart [02:58:22]Write to MH i2c: 01 00 00 41 03 44 [02:58:22]Write i2c OK [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: 01 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: 01 07 00 [02:58:22]MH_I2C_Read... [02:58:22]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 FF 0F 59 [02:58:22]RasterBufferAndPrint [02:58:22]line Счет N : (1)952532 [02:58:22]line ИНН: 02508201610067 [02:58:22]line Контрольно-Кассовый Чек [02:58:22]line ПРОДАЖА [02:58:22]line ТРК (МРК, ГНК) : 43 [02:58:22]line Товар: 2710194210 [02:58:22]line ДТ(л)-К-5 [02:58:22]line 39.380 * 76.20 [02:58:22]line = 3000.76 [02:58:22]line НДС 12% НСП 1% [02:58:22]line > о реализуемом товаре [02:58:22]line ИТОГО: 3000.76 [02:58:22]line НСП 1% : 26.55 [02:58:22]line НДС 12% : 318.66 [02:58:22]line Наличными: 0.00 [02:58:22]line Безнал.: 3000.76 [02:58:22]line Место: АЗС № 113 "Партнер Нефть" [02:58:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [02:58:22]line СНО: Общий режим [02:58:22]line Чек 7 31.10.2024 02:58 [02:58:22]line Смена: 557 ФФД: 1.0 [02:58:22]line ЗНМ: 0300000087 [02:58:22]line РНМ: 0000000000091644 [02:58:22]line Версия ККМ: 001 [02:58:22]line Платежная система: АКБ Кыргызстан [02:58:22]line ФМ: 0000000000874662 [02:58:22]line ФД: 72932 [02:58:22]line ФПД: 83665868892892 [02:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T025822&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72932&fm=83665868892892&tin=02508201610067®Number=0000000000091644&sum=300076 [02:58:22]OFD Sender: Processing packet 72932 [packets to send 279, broken 278] [02:58:22]ProducePacketName [02:58:22]name=ofd_packets/00072932 [02:58:22]OFD Sender: To server: pG, [02:58:22]CommunicateWithHost lk.salyk.kg:30040 [02:58:22]ConnectInit lk.salyk.kg [02:58:22]written 0, free lines is 4095 [02:58:23]Write to MH i2c: 01 00 00 6B 03 6E [02:58:23]Write i2c OK [02:58:23]MH_I2C_Read... [02:58:23]Read from MH i2c: 01 [02:58:23]MH_I2C_Read... [02:58:23]Read from MH i2c: 01 07 00 [02:58:23]MH_I2C_Read... [02:58:23]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 ED 0C 6E [02:58:23]RasterBufferAndPrint [02:58:23]line [02:58:23]line [02:58:23]line [02:58:23]line [02:58:23]line [02:58:23]written 0, free lines is 3316 [02:58:23]MH_Cut [02:58:23]Write to MH i2c: D1 01 00 72 03 01 47 [02:58:23]Write i2c OK [02:58:23]MH_I2C_Read... [02:58:23]Read from MH i2c: D1 [02:58:23]MH_I2C_Read... [02:58:23]Read from MH i2c: D1 01 00 [02:58:23]MH_I2C_Read... [02:58:23]Read from MH i2c: D1 01 00 72 03 00 46 [02:58:23]Write to MH i2c: 01 00 00 73 03 76 [02:58:23]Write i2c OK [02:58:23]MH_I2C_Read... [02:58:23]Connected sock=6 [02:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 60 6D 08 01 49 D0 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 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 4E F2 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E4 1C 01 00 35 04 06 00 4C 17 FA 65 2A DC 84 7C 9C 9F 23 27 D4 F4 [02:58:24]*** Cut start [02:58:24]*** Partial cut [02:58:24]*** CUTSNS_PIN = 1 [02:58:24]*** CUTSNS_PIN = 0 [02:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 67 F2 47 00 6D 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 E4 1C 01 00 F4 03 04 00 06 9D 22 67 B6 04 01 00 00 53 8D 95 C2 39 E0 27 5C [02:58:24]CommunicateWithHost err = 0 [02:58:24]CheckOFDResponse [02:58:24]1017 (14) - 77093643461234 [02:58:24]1041 (16) - 0000000000874662 [02:58:24]1040 (4) - 72932 [02:58:24]1012 (4) - 30.10.2024 20:54 [02:58:24]1206 (1) - 0 [02:58:24]OFD Sender: Remove packet 72932 [02:58:24]ProducePacketName [02:58:24]name=ofd_packets/00072932 [02:58:24]NVStorageDeleteData [02:58:24]*** Brake cut motor [02:58:24]Read from MH i2c: 01 [02:58:24]MH_I2C_Read... [02:58:24]*** Stop cut motor [02:58:24]*** Cut end [02:58:24]Read from MH i2c: 01 07 00 [02:58:24]MH_I2C_Read... [02:58:24]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 FF 0F 8B [02:58:24]process_action close_receipt done [02:58:24]requested_data is exist [02:58:24]produce_requested_data [02:58:24]requested_item fm.sn is exist - process it [02:58:24]wFMCommunicate request_size=4 [02:58:24]MH_SAM_APDU [02:58:24]CAPDU: 80 11 00 00 [02:58:24]Write to MH i2c: E2 08 00 74 03 80 11 00 00 00 00 00 00 F1 [02:58:24]Write i2c OK [02:58:24]MH_I2C_Read... [02:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:24]Read from MH i2c: E2 [02:58:24]MH_I2C_Read... [02:58:24]Read from MH i2c: E2 17 00 [02:58:24]MH_I2C_Read... [02:58:24]Read from MH i2c: E2 17 00 74 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 45 [02:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:58:24]wFMCommunicate OK [02:58:24]requested_item fd.num is exist - process it [02:58:24]SAM_PROTO_GetFieldsCounters [02:58:24]wFMCommunicate request_size=4 [02:58:24]MH_SAM_APDU [02:58:24]CAPDU: 80 13 00 00 [02:58:24]Write to MH i2c: E2 08 00 75 03 80 13 00 00 00 00 00 00 F4 [02:58:24]Write i2c OK [02:58:24]MH_I2C_Read... [02:58:24]OFD Sender: No OFD packet to send [02:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:58:25]Read from MH i2c: E2 [02:58:25]MH_I2C_Read... [02:58:25]Read from MH i2c: E2 62 00 [02:58:25]MH_I2C_Read... [02:58:25]Read from MH i2c: E2 62 00 75 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E4 1C 01 00 0E 04 04 00 2D 02 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 5A [02:58:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 E4 1C 01 00 0E 04 04 00 2D 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:58:25]wFMCommunicate OK [02:58:25]SAM_PROTO_GetFieldsCounters done [02:58:25]requested_item shift.num is exist - process it [02:58:25]requested_item shift.opened is exist - process it [02:58:25]req_shift_opened [02:58:25]FM_GetShiftState [02:58:25]SAM_PROTO_GetShiftState [02:58:25]wFMCommunicate request_size=4 [02:58:25]MH_SAM_APDU [02:58:25]CAPDU: 80 13 01 00 [02:58:25]Write to MH i2c: E2 08 00 76 03 80 13 01 00 00 00 00 00 F6 [02:58:25]Write i2c OK [02:58:25]MH_I2C_Read... [02:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:25]Read from MH i2c: E2 [02:58:25]MH_I2C_Read... [02:58:25]Read from MH i2c: E2 0E 00 [02:58:25]MH_I2C_Read... [02:58:25]Read from MH i2c: E2 0E 00 76 03 00 09 00 01 4A CA 22 67 00 00 00 00 90 00 9F [02:58:25]RAPDU: 09 00 01 4A CA 22 67 00 00 00 00 90 00 [02:58:25]wFMCommunicate OK [02:58:25]SAM_PROTO_GetShiftState done [02:58:25]FM_GetShiftState done [02:58:25]req_shift_opened done [02:58:25]requested_item shift.open_date is exist - process it [02:58:25]req_shift_open_date [02:58:25]req_shift_open_date done [02:58:25]produce_requested_data done [02:58:25]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72932,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258} [02:58:25]process_action_free close_receipt [02:58:25]json_value_free [02:58:25]json_value_free done [02:58:25]process_json_proto returns [02:58:25]Send response to host [02:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72932,"shift.num":557,"shift.opened":1,"shift.open_date":1730333258}}} [02:58:25]free response buf [02:58:25]execute_script done [02:58:25]execute_script returns [02:58:25]free content buf [02:58:25]Sock 7.Close socket [02:58:25]Sock 7.Thread stoped [02:58:29]OFD Sender: No OFD packet to send [02:58:32]recv_with_timeout no data received [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:43]recv_with_timeout no data received [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:42]recv_with_timeout no data received [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send